[jboss-user] [Installation, Configuration & DEPLOYMENT] - problem deploying witha jar, class not found

calgacus do-not-reply at jboss.com
Wed Jul 16 16:46:39 EDT 2008


Hi,
I am trying to deploy a very small simple app with a jar file, but it fails, the server log gives :
2008-07-16 16:37:07,395 WARN  [org.jboss.web.tomcat.service.TomcatInjectionContainer] (HDScanner) could not find servlet class
9108       ca.BookStore.BookStoreServlet18                                                                                                     9109      in classpath when processing annotations.
9110 2008-07-16 16:37:07,398 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (HDScanner) Creating ENC using ClassLoader: BaseClassLoader at 1419a47{vfszip:/usr/share/jboss/jboss-5.0.0.CR1/server/default/deploy/BookStore.jar}
9111 2008-07-16 16:37:07,403 DEBUG 
...
9195 2008-07-16 16:37:07,406 WARN  [org.jboss.web.tomcat.service.TomcatInjectionContainer] (HDScanner) could not find servlet class
9196       ca.BookStore.BookStoreServlet18
9197      in classpath when processing annotations.
9198 2008-07-16 16:37:07,411 DEBUG 
[org.jboss.web.tomcat.filters.ReplyHeaderFilter] (HDScanner) Adding header name: X-Powered-By='Servlet 2.5;
     JBoss-5.0/JBossWeb-2.0/Tomcat-6.0'
9199 2008-07-16 16:37:07,415 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (HDScanner) Initialized: {WebApplication: /usr/share/jboss/jboss-5.0.0.CR1/server/default/tmp/deploy/BookStore.jar53941-exp.war/, URL: file:/usr/share/jboss/jboss-5.0.0.CR1/server/default/
     tmp/deploy/BookStore.jar53941-exp.war/, classLoader: BaseClassLoader at 1419a47{vfszip:/usr/share/jboss/jboss-5.0.0.CR1/server/default/deploy
     /BookStore.jar}:21076551} jboss.web:j2eeType=WebModule,name=//localhost/BookStore.jar,J2EEApplication=none,J2EEServer=none
9200 2008-07-16 16:37:07,416 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (HDScanner) Fully Deployed vfszip:/usr/share/jboss/jbo
     ss-5.0.0.CR1/server/default/deploy/BookStore.jar
9201 2008-07-16 16:37:56,437 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-11) Periodic recovery - first pass <Wed, 16 Jul 2008 16:37
     :56>
9202 2008-07-16 16:37:56,437 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-11) StatusModule: first pass
9203 2008-07-16 16:37:56,437 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] (Thread-11) [com.arjuna.ats.internal.txoj.recovery.TORecoveryMo
     dule_3] - TORecoveryModule - first pass
9204 2008-07-16 16:37:56,437 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] (Thread-11) [com.arjuna.ats.internal.jta.recovery.info.firstpass] Lo
     cal XARecoveryModule - first pass
9205 2008-07-16 16:38:06,441 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-11) Periodic recovery - second pass <Wed, 16 Jul 2008 16:3
     8:06>
9206 2008-07-16 16:38:06,441 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-11) AtomicActionRecoveryModule: Second pass
9207 2008-07-16 16:38:06,441 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] (Thread-11) [com.arjuna.ats.internal.txoj.recovery.TORecoveryMo
     dule_6] - TORecoveryModule - second pass
9208 2008-07-16 16:38:06,441 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] (Thread-11) [com.arjuna.ats.internal.jta.recovery.info.secondpass] Local XARecoveryModule - second pass

My JBoss config is just the default, i just yesterday installed jboss 5.
My web.xml file is:
 <?xml version="1.0"?>
  2
  3 <!DOCTYPE web-app PUBLIC
  4           "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
  5           "http://java.sun.com/dtd/web-app_2_3.dtd">
  6 <web-app>
  7
  8   
  9     <servlet-name>BookStore</servlet-name>
 10     <servlet-class>
 11       ca.BookStore.BookStoreServlet18
 12     </servlet-class>
 13   
 14
 15   <servlet-mapping>
 16     <servlet-name>BookStore</servlet-name>
 17     <url-pattern>/listbooks.servlet</url-pattern>
 18   </servlet-mapping>
 19
 20 </web-app>

and my jar file contents are:
jar tf BookStore.jar
META-INF/
META-INF/MANIFEST.MF
WEB-INF/
WEB-INF/classes/
WEB-INF/classes/ca/
WEB-INF/classes/ca/BookStore/
WEB-INF/classes/ca/utoronto/
WEB-INF/classes/ca/utoronto/deeds/
WEB-INF/classes/ca/utoronto/deeds/util/
WEB-INF/lib/
WEB-INF/classes/ca/BookStore/Book18.class
WEB-INF/classes/ca/BookStore/BookDAO18.class
WEB-INF/classes/ca/BookStore/BookStore18.class
WEB-INF/classes/ca/BookStore/BookStoreServlet18.class
WEB-INF/classes/ca/BookStore/Customer18.class
WEB-INF/classes/ca/BookStore/CustomerDAO18.class
WEB-INF/classes/ca/BookStore/CustomerList18.class
WEB-INF/classes/ca/BookStore/Genre18.class
WEB-INF/classes/ca/BookStore/GenreDAO18.class
WEB-INF/classes/ca/BookStore/InputUtility18.class
WEB-INF/classes/ca/BookStore/Prov18.class
WEB-INF/classes/ca/BookStore/ProvDAO18.class
WEB-INF/classes/ca/utoronto/deeds/util/JdbcUtils.class
WEB-INF/web.xml


Is there some special structure for the  jar file I am supposed to use? I think I seen something like that earlier today but now I can't find it again.

Thanks for any help.








View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4164844#4164844

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4164844



More information about the jboss-user mailing list