-
1. Re: JBoss seam and Hibernate
peterj Jun 3, 2008 5:10 PM (in response to mitabhushan)Please provide this information for both your machine and the server:
1) Operating system
2) JDK version
3) JBossAS version
4) Where is the JDK installed
5) Where is JBossAS installed
How are you running and packaging your application? Is it an EAR or a WAR? Exploded directory or archive file? On your machine are you running from within an IDE?
Can you post the contents of the EAR or WAR. Use "jar -ft xxx" where xxx is the name of the ear or war.
Also if, you have an ear, post the contents of the application.xml file. -
2. Re: JBoss seam and Hibernate
mitabhushan Jun 6, 2008 11:40 AM (in response to mitabhushan)
1) Operating system (M) XP ( S)2003 R2
2) JDK version (M S) jdk1.5.0_11
3) JBossAS version (M S)jboss-4.2.2.GA
4) Where is the JDK installed (M S)C:\Program Files\Java
5) Where is JBossAS installed (M S)C:\JBoss\jboss-4.2.2.GA
It is a EAR.
No I did use IDE.
application.xml
<display-name>tracker</display-name>
<web-uri>tracker.war</web-uri>
<context-root>/tracker</context-root>
tracker.jar
<!-- Seam and EL -->
jboss-seam.jar
Thank you for looking into it! -
3. Re: JBoss seam and Hibernate
peterj Jun 6, 2008 12:21 PM (in response to mitabhushan)You did not post the contents of your ear file.
Where is the class com.med.session.OpeningHome located?
When posting XML text, surround it with [ code ]..[ /code ] tags (select the text and click the Code button). And preview the reply to verify the formatting before posting. -
4. Re: JBoss seam and Hibernate
peterj Jun 6, 2008 12:22 PM (in response to mitabhushan)And one more thing - post the first 20 or so lines of the exception stack trace.
-
5. Re: JBoss seam and Hibernate
mitabhushan Jun 6, 2008 2:15 PM (in response to mitabhushan)EAR
tracker.jar
--com.med.hrtracker.session
--META-INF
----ejb-jar.xml
----persistence.xml
--seam.properties
--security.drl
tracker.war
lib
META-INF
--application.xml
--jboss-app.xml
--LDAP-login-config.xml
--LDAP-login-service.xml
jboss-seam.jar
error message that I get while I try any query to the database from my applicaton
[org.jboss.seam.deployment.ComponentDeploymentHandler] could not load class: com.med.hrtracker.session.OpeningHome
java.lang.ClassNotFoundException: com.med.hrtracker.session.OpeningHome
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
at org.jboss.seam.deployment.ComponentDeploymentHandler.handle(ComponentDeploymentHandler.java:75)
at org.jboss.seam.deployment.DeploymentStrategy.handle(DeploymentStrategy.java:81)
at org.jboss.seam.deployment.AbstractScanner.handleItem(AbstractScanner.java:30)
at org.jboss.seam.deployment.URLScanner.handleDirectory(URLScanner.java:133)
at org.jboss.seam.deployment.URLScanner.handleDirectory(URLScanner.java:129)
at org.jboss.seam.deployment.URLScanner.handleDirectory(URLScanner.java:129)
at org.jboss.seam.deployment.URLScanner.handleDirectory(URLScanner.java:129)
at org.jboss.seam.deployment.URLScanner.handleDirectory(URLScanner.java:129)
at org.jboss.seam.deployment.URLScanner.handleDirectory(URLScanner.java:129)
at org.jboss.seam.deployment.URLScanner.handle(URLScanner.java:94)
at org.jboss.seam.deployment.URLScanner.scanResources(URLScanner.java:81)
at org.jboss.seam.deployment.StandardDeploymentStrategy.scan(StandardDeploymentStrategy.java:67)
at org.jboss.seam.init.Initialization.create(Initialization.java:102)
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
at org.jboss.web.WebModule.startModule(WebModule.java:83)
at org.jboss.web.WebModule.startService(WebModule.java:61)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) -
6. Re: JBoss seam and Hibernate
mitabhushan Jun 6, 2008 4:51 PM (in response to mitabhushan)I Kind of got it to work!
On my machine I started the server from eclipse and I could query the datbase.
If I run directly, I got the same error as on server.
The application is working on the sever too if I run it from the eclipe IDE.
Do you why?
What do I need to do run it directly -
7. Re: JBoss seam and Hibernate
peterj Jun 6, 2008 11:12 PM (in response to mitabhushan)Please use "jar -ft xxx.ear" to post the contents of the ear file.
-
8. Re: JBoss seam and Hibernate
mitabhushan Jun 21, 2008 4:03 PM (in response to mitabhushan)I got an error trying to use "jar -ft xxx.ear"
C:\ProServers\jboss-4.2.2.GA\server\default\deploy\Emp.ear>jar -ft Emp.ear
java.io.FileNotFoundException: Emp.ear (The system cannot find the file specifie
d)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:106)
at java.io.FileInputStream.(FileInputStream.java:66)
at sun.tools.jar.Main.run(Main.java:184)
at sun.tools.jar.Main.main(Main.java:903)