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’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.
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.
import com.itmill.toolkit.Application;
import com.itmill.toolkit.ui.Label;
import com.itmill.toolkit.ui.Layout;
import com.itmill.toolkit.ui.Window;
public class TestApplication extends Application {
private Layout mainLo;
public void init() {
Window mainw = new Window();
this.setMainWindow(mainw);
mainLo = mainw.getLayout();
mainLo.addComponent(new Label("QWERTY"));
}
}
Here is also the simplified procedure how I tested my example application:
I created a ‘Dynamic web application project’ in eclipse with WLS 9.2 target runtime.
Added toolkit jar into lib folder and extracted the ‘ITMILL’ folder from the jar into WebContent folder of the project
Then I, configured the web.xml and exported the project as war file with WLS 9.2 runtime
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?
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)
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.