[Persistence,JBoss/CMP, Hibernate, Database] - Re: javax.ejb.EJBException: Could not passivate; failed to s
by cypnsv
Please help below is the error details
javax.ejb.EJBException: Could not passivate; failed to save state
at org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:423)
at org.jboss.ejb.plugins.StatefulSessionInstanceCache.passivate(StatefulSessionInstanceCache.java:107)
at org.jboss.ejb.plugins.AbstractInstanceCache.tryToPassivate(AbstractInstanceCache.java:209)
at org.jboss.ejb.plugins.AbstractInstanceCache.tryToPassivate(AbstractInstanceCache.java:162)
at org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy$OveragerTask.run(LRUEnterpriseContextCachePolicy.java:450)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: java.io.NotSerializableException: com.tlc.utils.ClientInfo
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
at org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:414)
... 6 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036813#4036813
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036813
19 years
[Installation, Configuration & Deployment] - Re: Setting/Finding Class Path Location
by AggressiveFish
Sorry I thought you worked for JBoss (thought I saw it under your name that you did or something). What kind of development do you mainly do then? I dib and dab in a little of everything (until about 2 years ago it was mainly desktop apps). I've been trying to learn more and more about the different web technologies out there lately (starting with Perl and PHP and moving "up" to Java). Since we are a small company we don't get into higher tech much but I'm trying on my own time (mostly - except for a scatter project here) to familarize myself more through reading and trying it at home (i.e. killed me to pay so much for my XP upgrade). Once I'm able to get this up and running in skeleton form here I hope to continue reading and trying stuff out at home. I've done a little reading into RMI and it's something I'd like to start getting into and fooling around with (once I can get another system to act as the host or client). Thanks again for the help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036809#4036809
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036809
19 years
[Beginners Corner] - Using Hibernate 3 in JBOSS 4.0.1sp1
by mailinator
Hi,
I'm trying to move a web app I've got from Tomcat to JBOSS. The app makes use of Hibernate 3. When I start up JBOSS I get the error below. If I simply remove cglib-full-2.0.1.jar from jboss-4.0.1sp1\server\[default|all]\deploy\jboss-hibernate.deployer then everything is happy (i.e., it starts up but I haven't tested much). That seems like too much of a hack though and it leaves behind other Hibernate 2 jar files in the same directories. My question: Is there a proper way of solving this problem? Any help would be appreciated.
Thanks
Andy
16:40:20,921 INFO [SettingsFactory] Default entity-mode: pojo
16:40:20,968 INFO [SessionFactoryImpl] building session factory
16:40:21,687 INFO [STDOUT] java.lang.NoSuchMethodError: net.sf.cglib.proxy.Enhancer.setInterceptDuringConstruction(Z)V
16:40:21,687 INFO [STDOUT] at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:116)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036802#4036802
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036802
19 years
[JBoss Seam] - Extracting service. Joining tables across schemas. Using Hib
by kummer
Hello Seamers
I'm doing a pilot Seam application for my employer, which already uses Hibernate and Spring. We like the ease of use, but we are wrestling with some questions.
1. We would like to factor out any reusable "business logic" into a service layer, possibly in a different EAR. It is clear that we can access EJBs remotely from Seam, but can we deploy Seam's session beans to a different EAR and access it from the rest of the application. Is it advisable?
2. We have concerns about hardcoding the OR-mapping in the Java annotations. Is it possible to use Hibernate xml mappning files for part of the mappings along with the annotations?
3. Is it possible to map tables in different schemas to the same network of objects, without hardcoding the schema names in the Java source files?
We will be grateful for any input (and RTFM advice as long as it includes page numbers).
TKummer
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036798#4036798
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036798
19 years