Exception Occurs when putting sample application of tomcat into Gemini Webhttps://www.eclipse.org/forums/index.php/mv/msg/374930/910935/#msg_910935
and deploy it to gemini web container:
install file:sample.war
start xx
I can visit the home page and the jsp correctly
but exception is thrown when requesting the servlet:
java.lang.ClassNotFoundException: mypackage.Hello
org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader.loadClass(BundleWebappClassLoader.java:307)
java.lang.ClassLoader.loadClass(ClassLoader.java:247)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
java.lang.Thread.run(Thread.java:680)

The application is right at tomcat 7.0
I don't know why the exception occurs. Who can help me? Thanks a lot~
(p.s. the version of my Gemini Web is 2.1.0.RELEASE)]]>Ruici Luo2012-09-10T16:54:12-00:00Re: Exception Occurs when putting sample application of tomcat into Gemini Webhttps://www.eclipse.org/forums/index.php/mv/msg/374930/911193/#msg_911193
As I can see you are installing the web application with

"install file:sample.war"

But you can use this approach if the web application is a web application bundle.

If the web application is not a bundle then you should use

"install webbundle:file:sample.war"

Thus Gemini Web will transform the web application to a web application bundle.

Regards
Violeta]]>Violeta Georgieva2012-09-11T07:00:27-00:00Re: Exception Occurs when putting sample application of tomcat into Gemini Webhttps://www.eclipse.org/forums/index.php/mv/msg/374930/911202/#msg_911202
but when I use "install webbundle:file:sample.war?Web-ContextPath=sample", the issue still exists.]]>Ruici Luo2012-09-11T07:18:22-00:00Re: Exception Occurs when putting sample application of tomcat into Gemini Webhttps://www.eclipse.org/forums/index.php/mv/msg/374930/911206/#msg_911206
and then can you execute in the console the command: