Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gemini » Exception Occurs when putting sample application of tomcat into Gemini Web
Exception Occurs when putting sample application of tomcat into Gemini Web [message #910935] Mon, 10 September 2012 16:54 Go to next message
Ruici Luo is currently offline Ruici Luo
Messages: 6
Registered: March 2012
Junior Member
I get the sample application at tomcat.apache.org/tomcat-6.0-doc/appdev/sample/ (http, I cannot links to external site, sorry...)
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)

[Updated on: Mon, 10 September 2012 17:09]

Report message to a moderator

Re: Exception Occurs when putting sample application of tomcat into Gemini Web [message #911193 is a reply to message #910935] Tue, 11 September 2012 07:00 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta Georgieva
Messages: 242
Registered: October 2010
Senior Member
Hi,

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
Re: Exception Occurs when putting sample application of tomcat into Gemini Web [message #911202 is a reply to message #911193] Tue, 11 September 2012 07:18 Go to previous messageGo to next message
Ruici Luo is currently offline Ruici Luo
Messages: 6
Registered: March 2012
Junior Member
Thank you for reply
but when I use "install webbundle:file:sample.war?Web-ContextPath=sample", the issue still exists.
Re: Exception Occurs when putting sample application of tomcat into Gemini Web [message #911206 is a reply to message #911202] Tue, 11 September 2012 07:26 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta Georgieva
Messages: 242
Registered: October 2010
Senior Member
can you paste here the original Manifest.mf

and then can you execute in the console the command:

"h <bundle-id>"

and give us the result

Regards
Violeta

[Updated on: Tue, 11 September 2012 07:27]

Report message to a moderator

Re: Exception Occurs when putting sample application of tomcat into Gemini Web [message #911321 is a reply to message #911206] Tue, 11 September 2012 10:54 Go to previous messageGo to next message
Ruici Luo is currently offline Ruici Luo
Messages: 6
Registered: March 2012
Junior Member
The original MANIFEST.MF is:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: 1.5.0_06-b05 (Sun Microsystems Inc.)


and entering h <bundle id> in console shows that:


Bundle headers:
Ant-Version = Apache Ant 1.6.5
Bundle-ClassPath = WEB-INF/classes
Bundle-ManifestVersion = 2
Bundle-SymbolicName = sample
Created-By = 1.5.0_06-b05 (Sun Microsystems Inc.)
Import-Package = javax.servlet;version="2.5.0",javax.servlet.annotation;version="2.6.0",javax.servlet.descriptor;version="2.6.0",javax.servlet.http;version="2.5.0",javax.servlet.jsp;version="2.1.0",javax.servlet.jsp.el;version="2.1.0",javax.servlet.jsp.tagext;version="2.1.0",javax.el;version="1.0.0",javax.crypto.interfaces;version="[0.0.0, 0.0.0]",org.omg.CosNaming.NamingContextPackage;version="[0.0.0, 0.0.0]",org.omg.DynamicAny.DynAnyFactoryPackage;version="[0.0.0, 0.0.0]",javax.management.timer;version="[0.0.0, 0.0.0]",org.eclipse.osgi.internal.provisional.verifier;version="[0.0.0, 0.0.0]",javax.jws;version="[0.0.0, 0.0.0]",org.eclipse.osgi.baseadaptor.hooks;version="[0.0.0, 0.0.0]",org.osgi.framework.wiring;version="[1.0.0, 1.0.0]",javax.rmi.ssl;version="[0.0.0, 0.0.0]",org.w3c.dom.ranges;version="[0.0.0, 0.0.0]",javax.naming.spi;version="[0.0.0, 0.0.0]",javax.xml.stream;version="[0.0.0, 0.0.0]",javax.swing.filechooser;version="[0.0.0, 0.0.0]",javax.swing.plaf;version="[0.0.0, 0.0.0]",javax.lang.model;version="[0.0.0, 0.0.0]",org.w3c.dom.xpath;version="[0.0.0, 0.0.0]",javax.lang.model.util;version="[0.0.0, 0.0.0]",org.eclipse.osgi.framework.eventmgr;version="[1.2.0, 1.2.0]",javax.naming.ldap;version="[0.0.0, 0.0.0]",javax.security.auth.kerberos;version="[0.0.0, 0.0.0]",org.omg.PortableServer.CurrentPackage;version="[0.0.0, 0.0.0]",javax.crypto;version="[0.0.0, 0.0.0]",javax.naming.event;version="[0.0.0, 0.0.0]",javax.print.attribute.standard;version="[0.0.0, 0.0.0]",javax.imageio.plugins.bmp;version="[0.0.0, 0.0.0]",org.eclipse.osgi.baseadaptor.bundlefile;version="[0.0.0, 0.0.0]",org.osgi.service.permissionadmin;version="[1.2.0, 1.2.0]",javax.annotation;version="[0.0.0, 0.0.0]",javax.xml.ws.handler.soap;version="[0.0.0, 0.0.0]",org.osgi.service.url;version="[1.0.0, 1.0.0]",javax.print.attribute;version="[0.0.0, 0.0.0]",javax.xml.transform.dom;version="[0.0.0, 0.0.0]",org.w3c.dom.traversal;version="[0.0.0, 0.0.0]",javax.sql.rowset.serial;version="[0.0.0, 0.0.0]",org.omg.PortableServer.POAManagerPackage;version="[0.0.0, 0.0.0]",org.osgi.framework.hooks.resolver;version="[1.0.0, 1.0.0]",org.eclipse.core.runtime.internal.adaptor;version="[0.0.0, 0.0.0]",javax.sound.midi;version="[0.0.0, 0.0.0]",org.eclipse.osgi.service.pluginconversion;version="[1.0.0, 1.0.0]",javax.swing.event;version="[0.0.0, 0.0.0]",javax.xml.ws.spi;version="[0.0.0, 0.0.0]",org.eclipse.osgi.util;version="[1.1.0, 1.1.0]",javax.net;version="[0.0.0, 0.0.0]",javax.xml.stream.util;version="[0.0.0, 0.0.0]",javax.security.auth.spi;version="[0.0.0, 0.0.0]",javax.management.loading;version="[0.0.0, 0.0.0]",javax.print;version="[0.0.0, 0.0.0]",org.omg.Messaging;version="[0.0.0, 0.0.0]",javax.xml.crypto.dsig.keyinfo;version="[0.0.0, 0.0.0]",org.omg.CORBA.ORBPackage;version="[0.0.0, 0.0.0]",javax.swing.plaf.multi;version="[0.0.0, 0.0.0]",javax.xml.namespace;version="[0.0.0, 0.0.0]",org.osgi.service.startlevel;version="[1.1.0, 1.1.0]",org.osgi.service.log;version="[1.3.0, 1.3.0]",org.eclipse.osgi.framework.internal.protocol;version="[0.0.0, 0.0.0]",javax.swing;version="[0.0.0, 0.0.0]",org.eclipse.osgi.internal.loader;version="[0.0.0, 0.0.0]",javax.xml.transform.sax;version="[0.0.0, 0.0.0]",org.eclipse.osgi.service.localization;version="[1.1.0, 1.1.0]",javax.management.relation;version="[0.0.0, 0.0.0]",javax.naming;version="[0.0.0, 0.0.0]",javax.xml.transform.stax;version="[0.0.0, 0.0.0]",org.eclipse.core.runtime.internal.stats;version="[0.0.0, 0.0.0]",org.omg.stub.java.rmi;version="[0.0.0, 0.0.0]",javax.xml.crypto.dsig.dom;version="[0.0.0, 0.0.0]",javax.xml.parsers;version="[0.0.0, 0.0.0]",org.ietf.jgss;version="[0.0.0, 0.0.0]",javax.xml.xpath;version="[0.0.0, 0.0.0]",javax.xml.bind.attachment;version="[0.0.0, 0.0.0]",org.eclipse.osgi.internal.composite;version="[0.0.0, 0.0.0]",org.eclipse.osgi.framework.console;version="[1.1.0, 1.1.0]",org.osgi.framework;version="[1.6.0, 1.6.0]",org.eclipse.osgi.storagemanager;version="[1.0.0, 1.0.0]",javax.xml.crypto.dsig.spec;version="[0.0.0, 0.0.0]",org.eclipse.osgi.internal.permadmin;version="[0.0.0, 0.0.0]",javax.swing.undo;version="[0.0.0, 0.0.0]",javax.swing.text;version="[0.0.0, 0.0.0]",javax.print.event;version="[0.0.0, 0.0.0]",javax.imageio.spi;version="[0.0.0, 0.0.0]",org.osgi.service.framework;version="[1.0.0, 1.0.0]",org.w3c.dom.stylesheets;version="[0.0.0, 0.0.0]",javax.script;version="[0.0.0, 0.0.0]",org.w3c.dom.ls;version="[0.0.0, 0.0.0]",org.omg.PortableInterceptor;version="[0.0.0, 0.0.0]",org.omg.CORBA.TypeCodePackage;version="[0.0.0, 0.0.0]",org.osgi.framework.launch;version="[1.0.0, 1.0.0]",org.eclipse.osgi.framework.util;version="[0.0.0, 0.0.0]",org.eclipse.osgi.service.environment;version="[1.3.0, 1.3.0]",javax.xml.bind.annotation.adapters;version="[0.0.0, 0.0.0]",org.eclipse.osgi.internal.serviceregistry;version="[0.0.0, 0.0.0]",javax.xml.stream.events;version="[0.0.0, 0.0.0]",javax.sql;version="[0.0.0, 0.0.0]",org.eclipse.equinox.log.internal;version="[0.0.0, 0.0.0]",javax.transaction;version="[0.0.0, 0.0.0]",org.omg.CORBA_2_3;version="[0.0.0, 0.0.0]",javax.rmi;version="[0.0.0, 0.0.0]",org.eclipse.osgi.service.datalocation;version="[1.3.0, 1.3.0]",org.eclipse.osgi.internal.resolver;version="[0.0.0, 0.0.0]",org.eclipse.osgi.baseadaptor;version="[0.0.0, 0.0.0]",javax.xml.soap;version="[0.0.0, 0.0.0]",javax.management.modelmbean;version="[0.0.0, 0.0.0]",javax.xml.bind;version="[0.0.0, 0.0.0]",javax.xml.ws;version="[0.0.0, 0.0.0]",org.w3c.dom.html;version="[0.0.0, 0.0.0]",org.eclipse.osgi.framework.debug;version="[0.0.0, 0.0.0]",javax.swing.tree;version="[0.0.0, 0.0.0]",javax.sound.midi.spi;version="[0.0.0, 0.0.0]",org.eclipse.equinox.log;version="[1.0.0, 1.0.0]",org.w3c.dom.css;version="[0.0.0, 0.0.0]",org.omg.PortableServer;version="[0.0.0, 0.0.0]",org.eclipse.osgi.event;version="[1.0.0, 1.0.0]",org.xml.sax;version="[0.0.0, 0.0.0]",org.eclipse.osgi.framework.internal.protocol.reference;version="[0.0.0, 0.0.0]",javax.xml.ws.handler;version="[0.0.0, 0.0.0]",org.eclipse.osgi.service.runnable;version="[1.1.0, 1.1.0]",org.eclipse.osgi.internal.service.security;version="[0.0.0, 0.0.0]",org.omg.IOP.CodecFactoryPackage;version="[0.0.0, 0.0.0]",org.omg.IOP;version="[0.0.0, 0.0.0]",org.eclipse.osgi.framework.adaptor;version="[0.0.0, 0.0.0]",org.eclipse.osgi.framework.internal.reliablefile;version="[0.0.0, 0.0.0]",javax.sql.rowset;version="[0.0.0, 0.0.0]",org.eclipse.core.runtime.adaptor;version="[0.0.0, 0.0.0]",javax.swing.plaf.basic;version="[0.0.0, 0.0.0]",javax.swing.border;version="[0.0.0, 0.0.0]",javax.management.openmbean;version="[0.0.0, 0.0.0]",org.omg.CORBA.portable;version="[0.0.0, 0.0.0]",org.omg.Dynamic;version="[0.0.0, 0.0.0]",javax.security.auth;version="[0.0.0, 0.0.0]",org.eclipse.osgi.service.security;version="[1.0.0, 1.0.0]",org.w3c.dom;version="[0.0.0, 0.0.0]",javax.imageio.event;version="[0.0.0, 0.0.0]",org.omg.DynamicAny.DynAnyPackage;version="[0.0.0, 0.0.0]",javax.xml.datatype;version="[0.0.0, 0.0.0]",javax.imageio.metadata;version="[0.0.0, 0.0.0]",javax.management.remote;version="[0.0.0, 0.0.0]",org.omg.CORBA.DynAnyPackage;version="[0.0.0, 0.0.0]",javax.swing.table;version="[0.0.0, 0.0.0]",javax.xml.transform.stream;version="[0.0.0, 0.0.0]",javax.xml.crypto;version="[0.0.0, 0.0.0]",org.eclipse.osgi.service.resolver;version="[1.5.0, 1.5.0]",javax.annotation.processing;version="[0.0.0, 0.0.0]",javax.security.auth.login;version="[0.0.0, 0.0.0]",javax.imageio.stream;version="[0.0.0, 0.0.0]",org.omg.CORBA;version="[0.0.0, 0.0.0]",org.osgi.framework.hooks.service;version="[1.1.0, 1.1.0]",org.omg.IOP.CodecPackage;version="[0.0.0, 0.0.0]",javax.jws.soap;version="[0.0.0, 0.0.0]",javax.xml.ws.http;version="[0.0.0, 0.0.0]",javax.imageio;version="[0.0.0, 0.0.0]",javax.xml.bind.helpers;version="[0.0.0, 0.0.0]",org.omg.PortableServer.portable;version="[0.0.0, 0.0.0]",javax.swing.text.rtf;version="[0.0.0, 0.0.0]",javax.security.cert;version="[0.0.0, 0.0.0]",org.eclipse.osgi.service.debug;version="[1.2.0, 1.2.0]",javax.lang.model.element;version="[0.0.0, 0.0.0]",javax.rmi.CORBA;version="[0.0.0, 0.0.0]",javax.xml.ws.soap;version="[0.0.0, 0.0.0]",org.w3c.dom.events;version="[0.0.0, 0.0.0]",org.omg.CosNaming;version="[0.0.0, 0.0.0]",org.omg.CosNaming.NamingContextExtPackage;version="[0.0.0, 0.0.0]",javax.swing.text.html.parser;version="[0.0.0, 0.0.0]",javax.xml.ws.wsaddressing;version="[0.0.0, 0.0.0]",org.osgi.service.condpermadmin;version="[1.1.1, 1.1.1]",javax.crypto.spec;version="[0.0.0, 0.0.0]",org.omg.PortableServer.POAPackage;version="[0.0.0, 0.0.0]",org.eclipse.osgi.internal.module;version="[0.0.0, 0.0.0]",org.eclipse.osgi.signedcontent;version="[1.0.0, 1.0.0]",javax.swing.plaf.metal;version="[0.0.0, 0.0.0]",javax.accessibility;version="[0.0.0, 0.0.0]",org.eclipse.osgi.framework.internal.protocol.bundleresource;version="[0.0.0, 0.0.0]",org.eclipse.osgi.framework.log;version="[1.1.0, 1.1.0]",org.eclipse.osgi.framework.internal.core;version="[0.0.0, 0.0.0]",org.eclipse.osgi.internal.baseadaptor;version="[0.0.0, 0.0.0]",org.osgi.framework.startlevel;version="[1.0.0, 1.0.0]",org.omg.PortableServer.ServantLocatorPackage;version="[0.0.0, 0.0.0]",javax.management;version="[0.0.0, 0.0.0]",org.eclipse.osgi.framework.internal.protocol.bundleentry;version="[0.0.0, 0.0.0]",javax.swing.colorchooser;version="[0.0.0, 0.0.0]",org.omg.SendingContext;version="[0.0.0, 0.0.0]",javax.naming.directory;version="[0.0.0, 0.0.0]",org.w3c.dom.views;version="[0.0.0, 0.0.0]",org.xml.sax.ext;version="[0.0.0, 0.0.0]",javax.xml.bind.util;version="[0.0.0, 0.0.0]",javax.transaction.xa;version="[0.0.0, 0.0.0]",javax.security.auth.x500;version="[0.0.0, 0.0.0]",javax.net.ssl;version="[0.0.0, 0.0.0]",javax.management.monitor;version="[0.0.0, 0.0.0]",javax.swing.text.html;version="[0.0.0, 0.0.0]",org.osgi.service.packageadmin;version="[1.2.0, 1.2.0]",javax.imageio.plugins.jpeg;version="[0.0.0, 0.0.0]",org.eclipse.osgi.service.internal.composite;version="[0.0.0, 0.0.0]",org.w3c.dom.bootstrap;version="[0.0.0, 0.0.0]",org.eclipse.osgi.baseadaptor.loader;version="[0.0.0, 0.0.0]",javax.xml.bind.annotation;version="[0.0.0, 0.0.0]",org.eclipse.osgi.launch;version="[1.0.0, 1.0.0]",javax.xml.validation;version="[0.0.0, 0.0.0]",javax.sound.sampled;version="[0.0.0, 0.0.0]",org.xml.sax.helpers;version="[0.0.0, 0.0.0]",javax.lang.model.type;version="[0.0.0, 0.0.0]",javax.management.remote.rmi;version="[0.0.0, 0.0.0]",org.eclipse.osgi.internal.loader.buddy;version="[0.0.0, 0.0.0]",javax.sound.sampled.spi;version="[0.0.0, 0.0.0]",javax.activity;version="[0.0.0, 0.0.0]",javax.sql.rowset.spi;version="[0.0.0, 0.0.0]",org.eclipse.osgi.internal.signedcontent;version="[0.0.0, 0.0.0]",org.osgi.util.tracker;version="[1.5.0, 1.5.0]",org.omg.DynamicAny;version="[0.0.0, 0.0.0]",org.omg.PortableInterceptor.ORBInitInfoPackage;version="[0.0.0, 0.0.0]",org.eclipse.osgi.internal.profile;version="[0.0.0, 0.0.0]",javax.security.sasl;version="[0.0.0, 0.0.0]",javax.security.auth.callback;version="[0.0.0, 0.0.0]",org.eclipse.osgi.internal.provisional.service.security;version="[1.0.0, 1.0.0]",javax.tools;version="[0.0.0, 0.0.0]",org.osgi.framework.hooks.bundle;version="[1.0.0, 1.0.0]",javax.xml;version="[0.0.0, 0.0.0]",javax.activation;version="[0.0.0, 0.0.0]",org.eclipse.osgi.service.urlconversion;version="[1.0.0, 1.0.0]",javax.xml.transform;version="[0.0.0, 0.0.0]",org.omg.CORBA_2_3.portable;version="[0.0.0, 0.0.0]",javax.xml.crypto.dsig;version="[0.0.0, 0.0.0]",org.osgi.framework.hooks.weaving;version="[1.0.0, 1.0.0]",javax.swing.plaf.synth;version="[0.0.0, 0.0.0]",javax.xml.crypto.dom;version="[0.0.0, 0.0.0]"
Manifest-Version = 1.0
Web-ContextPath = /sample

[Updated on: Tue, 11 September 2012 10:55]

Report message to a moderator

Re: Exception Occurs when putting sample application of tomcat into Gemini Web [message #911399 is a reply to message #911321] Tue, 11 September 2012 14:17 Go to previous message
Violeta Georgieva is currently offline Violeta Georgieva
Messages: 242
Registered: October 2010
Senior Member
The Manifest.mf looks good I can see that the classpath that is created contains Web-Inf/classes
Can you verify that class mypackage.Hello is in Web-inf/classes

If the answer is yes then please create a bug and attach an example there.
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Gemini.Web

[Updated on: Tue, 11 September 2012 14:21]

Report message to a moderator

Previous Topic:JUnit - GeminiJPARunner
Next Topic:Deploy Spring-based war into Gemini Web.
Goto Forum:
  


Current Time: Tue Oct 21 15:13:39 GMT 2014

Powered by FUDForum. Page generated in 0.02852 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software