Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
- seam 1.2.1 on WAS: NoClassDefFoundError: org.jboss.s

- seam 1.2.1 on WAS: NoClassDefFoundError: org.jboss.s

2007-07-13       - By titou09

 Back
Running seam 1.2.1 on WebSphere v6.1.0.9, I get this exception:

 | java.lang.NoClassDefFoundError Source code of java.lang.NoClassDefFoundError: org.jboss.system.ServiceMBeanSupport Source code of org.jboss.system.ServiceMBeanSupport
 |   at java.lang.ClassLoader Source code of java.lang.ClassLoader(Native Method)
 |   at java.lang.ClassLoader Source code of java.lang.ClassLoader(ClassLoader.java:228)
 |   at java.security.SecureClassLoader Source code of java.security.SecureClassLoader(SecureClassLoader.java:148)
 |   at com.ibm.ws.classloader.CompoundClassLoader._defineClass
(CompoundClassLoader.java:526)
 |   at com.ibm.ws.classloader.CompoundClassLoader.findClass
(CompoundClassLoader.java:477)
 |   at com.ibm.ws.classloader.CompoundClassLoader.loadClass
(CompoundClassLoader.java:382)
 |   at java.lang.ClassLoader Source code of java.lang.ClassLoader(ClassLoader.java:573)
 |   at java.lang.ClassLoader Source code of java.lang.ClassLoader(Native Method)
 |   at java.lang.ClassLoader Source code of java.lang.ClassLoader(ClassLoader.java:228)
 |   at java.security.SecureClassLoader Source code of java.security.SecureClassLoader(SecureClassLoader.java:148)
 |   at com.ibm.ws.classloader.CompoundClassLoader._defineClass
(CompoundClassLoader.java:526)
 |   at com.ibm.ws.classloader.CompoundClassLoader.findClass
(CompoundClassLoader.java:477)
 |   at com.ibm.ws.classloader.CompoundClassLoader.loadClass
(CompoundClassLoader.java:382)
 |   at java.lang.ClassLoader Source code of java.lang.ClassLoader(ClassLoader.java:573)
 |   at org.jboss.seam.util.Reflections.classForName(Reflections.java:159)
 |   at org.jboss.seam.init.Initialization.addSpecialComponents(Initialization
.java:774)
 |   at org.jboss.seam.init.Initialization.init(Initialization.java:502)
 |   at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener
.java:33)
 |   at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated
(WebApp.java:637)
 |   at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp
.java:295)
 |   at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:285)
 |   at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup
.java:88)
 |   at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost
.java:157)
 |   at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:655)
 |   at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer
.java:608)
 |   at com.ibm.ws.webcontainer.component.WebContainerImpl.install
(WebContainerImpl.java:335)
 |   at com.ibm.ws.webcontainer.component.WebContainerImpl.start
(WebContainerImpl.java:551)
 |   at com.ibm.ws.runtime.component.ApplicationMgrImpl.start
(ApplicationMgrImpl.java:1312)
 |   at com.ibm.ws.runtime.component.DeployedApplicationImpl
.fireDeployedObjectStart(DeployedApplicationImpl.java:1129)
 |   at com.ibm.ws.runtime.component.DeployedModuleImpl.start
(DeployedModuleImpl.java:569)
 |   at com.ibm.ws.runtime.component.DeployedApplicationImpl.start
(DeployedApplicationImpl.java:814)
 |   at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication
(ApplicationMgrImpl.java:965)
 |   at com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run
(ApplicationMgrImpl.java:1495)
 |   at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl
.java:3995)
 |   at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem
(ContextManagerImpl.java:4092)
 |   at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext
.java:245)
 |   at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication
(ApplicationMgrImpl.java:1500)
 |   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 |   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
.java:64)
 |   at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
 |   at java.lang.reflect.Method Source code of java.lang.reflect.Method(Method.java:615)
 |   at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:62)
 |   at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
 |   at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
 |   at java.lang.reflect.Method Source code of java.lang.reflect.Method(Method.java:615)
 |   at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:265)
 |   at javax.management.modelmbean.RequiredModelMBean Source code of javax.management.modelmbean.RequiredModelMBean
(RequiredModelMBean.java:1089)
 |   at javax.management.modelmbean.RequiredModelMBean Source code of javax.management.modelmbean.RequiredModelMBean
(RequiredModelMBean.java:971)
 |   at com.sun.jmx.mbeanserver.DynamicMetaDataImpl Source code of com.sun.jmx.mbeanserver.DynamicMetaDataImpl(DynamicMetaDataImpl
.java:231)
 |   at com.sun.jmx.mbeanserver.MetaDataImpl Source code of com.sun.jmx.mbeanserver.MetaDataImpl(MetaDataImpl.java:238)
 |   at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor Source code of com.sun.jmx.interceptor.DefaultMBeanServerInterceptor
(DefaultMBeanServerInterceptor.java:833)
 |   at com.sun.jmx.mbeanserver.JmxMBeanServer Source code of com.sun.jmx.mbeanserver.JmxMBeanServer(JmxMBeanServer.java:802)
 |   at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1080)
 |   at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController
.java:118)
 |   at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:973)
 |   at com.ibm.ws.management.connector.AdminServiceDelegator.invoke
(AdminServiceDelegator.java:139)
 |   at com.ibm.ws.management.connector.rmi.RMIConnectorService.invoke
(RMIConnectorService.java:179)
 |   at com.ibm.ws.management.connector.rmi._RMIConnectorService_Tie.invoke(
_RMIConnectorService_Tie.java:395)
 |   at com.ibm.ws.management.connector.rmi._RMIConnectorService_Tie._invoke(
_RMIConnectorService_Tie.java:160)
 |   at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate
.java:613)
 |   at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:466)
 |   at com.ibm.rmi.iiop.ORB.process(ORB.java:503)
 |   at com.ibm.CORBA.iiop.ORB.process(ORB.java:1553)
 |   at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2680)
 |   at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2554)
 |   at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:62)
 |   at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)
 |   at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
 |
The only place where I see this class ,is in ajar called "lib/jboss-ejb3-all
.jar"
I don't want to include this jar on my classpath because:
- I'm running on WebSphere, not Jboss
- I don'T use EJB3 but plain POJOs
The classe I have on my classpath (which is , to me, the minimal set opf jar to
run seam + hibernate + POJOs):

 | WAR: axis.jar;el-api.jar;el-ri.jar;jboss-cache-jdk50.jar;jboss-seam-ui.jar
;jboss-seam.jar;jsf-api.jar;jsf-facelets.jar;jsf-impl.jar
 | EAR: commons-logging-1 (See http://ing-1.ora-code.com).1.jar;hibernate-validator.jar;dom4j-1.6.1.jar
;javassist.jar;hibernate-annotations.jar;hibernate-commons-annotations.jar
;commons-collections-3 (See http://ons-3.ora-code.com).1.jar;commons-beanutils-1 (See http://ils-1.ora-code.com).7.0.jar;commons-codec-1 (See http://dec-1.ora-code.com).3.jar
;commons-digester-1 (See http://ter-1.ora-code.com).6.jar;commons-lang-2 (See http://ang-2.ora-code.com).1.jar;log4j-1.2.14.jar;antlr-2 (See http://tlr-2.ora-code.com).7.6.jar
;asm-attrs.jar;asm.jar;cglib-2 (See http://lib-2.ora-code.com).1.3.jar;ejb3-persistence.jar;hibernate3.jar;junit
-4.3.1.jar
 |
It seems that there is a dependency problem here

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode
=reply&p=4063953
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user

©2008 junlu.com - Jax Systems, LLC, U.S.A.