Vaadin

Join Vaadin Log In
Combination View Flat View Tree View
Threads [ Previous | Next ]
WebLogic 9.2 IT Mill 5.2.15 RC2 Compatibility?
toggle
Hello,

I've created a web application using the IT Mill Toolkit 5.2.15 RC2 and I have deployed my application on Tomcat 6 and it works.

When I try to deploy my application or any of the examples bundled with IT Mill Toolkit on WebLogic 9.2 using JDK 1.5, it fails with the following exception:

Error 500--Internal Server Error

javax.servlet.ServletException: Failed to load application class: MyApplication
at com.itmill.toolkit.terminal.gwt.server.ApplicationServlet.init(ApplicationServlet.java:275)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:278)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
at weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHelper.java:48)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:507)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3231)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2002)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1908)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1362)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)


I looked through the IT Mill Toolkit documentation for any WebLogic specific configuration help but I could not find any.

I am missing something?

Thanks for your help,
Ajay
Flag Flag
Re:WebLogic 9.2 IT Mill 5.3.0 RC5 Compatibility?
12/30/08 2:58 PM as a reply to Anonymous .
Hello again,

I've also attempted to use itmill-toolkit-5.3.0-rc5.jar of the IT Mill Toolkit and I have the same issue.

Has anybody worked with IT Mill Toolkit in WebLogic 9.2 and can offer advice on how to configure it correctly? According to the specs, WebLogic 9.2 appears to be supported.

Any help would be greatly appreciated,
Ajay
Flag Flag
Re:WebLogic 9.2 IT Mill 5.2.15 RC2 Compatibility?
1/2/09 5:13 AM as a reply to Anonymous .
Hello and sorry for the long delay in answer.

I tested the toolkit with BEA WLS 9.2 and it seems that at least the simple example (toolkit 5.3.0RC6) application (see code below) works nicely with it, when it is deployed as a war file in the server.

 1
 2import com.itmill.toolkit.Application;
 3import com.itmill.toolkit.ui.Label;
 4import com.itmill.toolkit.ui.Layout;
 5import com.itmill.toolkit.ui.Window;
 6public class TestApplication extends Application {
 7    private Layout mainLo;
 8    public void init() {
 9        Window mainw = new Window();
10        this.setMainWindow(mainw);
11        mainLo = mainw.getLayout();
12        mainLo.addComponent(new Label("QWERTY"));
13    }
14}


Here is also the simplified procedure how I tested my example application:

1. I created a 'Dynamic web application project' in eclipse with WLS 9.2 target runtime.
2. Added toolkit jar into lib folder and extracted the 'ITMILL' folder from the jar into WebContent folder of the project
3. Then I, configured the web.xml and exported the project as war file with WLS 9.2 runtime
4. Finally, deployed the war file into WLS 9.2 using the administration console, and started the application.

Could you provide more information of your test case? Have you e.g. tried some simple test application (like above) with your WLS 9.2? How you did the deployment of your application?
Flag Flag
Re:WebLogic 9.2 IT Mill 5.2.15 RC2 Compatibility?
1/2/09 6:15 AM as a reply to Anonymous .
Hi Johannes,

Thanks for your response.

I created a new 'Dynamic web application project' in eclipse, added toolkit jar into lib folder and extracted the 'ITMILL' folder from the jar into WebContent folder of the project, added a class with the simple example you described and configured the web.xml. To deploy, I log in to WLS 9.2 administration console and deploy the war file.

I received the same error:

Error 500--Internal Server Error

javax.servlet.ServletException: Failed to load application class: TestApplication
at com.itmill.toolkit.terminal.gwt.server.ApplicationServlet.init(ApplicationServlet.java:291)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:278)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
at weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHelper.java:48)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:507)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3231)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2002)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1908)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1362)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)



The web.xml I used was:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>myservlet</servlet-name>
<servlet-class>com.itmill.toolkit.terminal.gwt.server.ApplicationServlet
</servlet-class>
<init-param>
<param-name>application</param-name>
<param-value>TestApplication</param-value>
</init-param>
</servlet>

<servlet-mapping>
<servlet-name>myservlet</servlet-name>
<url-pattern>/myservlet/*</url-pattern>
</servlet-mapping>

</web-app>

I can't seem to get any IT Mill example to work on WLS 9.2.

Thank you for your help,
Ajay
Flag Flag
Re:WebLogic 9.2 IT Mill 5.2.15 RC2 Compatibility?
1/2/09 7:57 AM as a reply to Anonymous .
Hi Ajay,

I tried my test with your web.xml and it worked with both 5.2.14 and 5.3.0RC6 toolkit jar files. Strange, that your war didn't work.

See the screenshot below of my project in the eclipse wheter it differs from your project.

Flag Flag
Re:WebLogic 9.2 IT Mill 5.2.15 RC2 Compatibility?
1/4/09 4:01 PM as a reply to Anonymous .
Hi Johannes,

I was able to solve my issue.

It appears that I was incorrectly using the JDK 1.6 library instead of the JDK 1.5 library. I modified my eclipse project to include the JDK 1.5 version and now it works.

Thank you for taking the time to help!
Ajay
Flag Flag