[Beginners Corner] - Persistence classLoader issue
by jules11
hi all...
i'm getting this issue when trying to jboss 4.2.3.ga (jdk1.6). it works fine in tomcat, so i'm thinking there's a clash in the hibernate jars (or something else). if someone has an idea, would be helpful:
| pleApplicationEventMulticaster@1e48d65]
| 20:32:05,157 INFO [STDOUT] ERROR: org.springframework.web.context.ContextLoader - Context initialization failed
| org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bookingService': Injection of persistence methods failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating be
| an with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/data-source-config.xml]: Invocation of init method failed; nested exception is java.lang.IncompatibleClassChangeError: Class org.hibernate.ejb.Hibernate
| Persistence does not implement the requested interface javax.persistence.spi.PersistenceProvider
| at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(Persiste
| nceAnnotationBeanPostProcessor.java:324)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCap
| ableBeanFactory.java:998)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCap
| ableBeanFactory.java:472)
|
thx in adv...
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210098#4210098
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4210098
17 years, 2 months
[Installation, Configuration & DEPLOYMENT] - ERROR [ServerThread] - Failed to initialize / java.io.Stream
by jsblake
Running JBoss 4.0.5GA on an XServe dual G5 w/ Mac OS X Server 10.4.8. Using mod_jk 1.2.25-httpd-1.3 on Apache 1.3 (Mac OS 10.4 built-in Apache) as connector. Using default server instance - no clustering, etc.
We have over a dozen servers running the above JBoss configuration with no problems for several months, but in the last month or two, 3 of them started spewing the below errors about every second. When we restart JBoss, its fine, but then within a day or two, it starts spewing the errors again.
I've found lots of references to what sounds like the same problem (http://jira.jboss.com/jira/browse/JBAS-4007?page=all), but I haven't been able to find any solutions. I don't know why only 3 of our servers have this problem occurring, and not the rest.
The error seems to start happening at midnight GMT, so we feel like it may be related to the log4j logfile rolling over (we're using the daily rolling log appender), but don't know why none of the other servers are seeing this issue, and why it started happening in the first place.
Any help would be really appreciated.
2009-02-10 06:31:34,642 ERROR [ServerThread] - Failed to initialize
java.io.StreamCorruptedException: invalid stream header
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:764)
at java.io.ObjectInputStream.(ObjectInputStream.java:277)
at org.jboss.invocation.pooled.interfaces.OptimizedObjectInputStream.(OptimizedObjectInputStream.java:131)
at org.jboss.invocation.pooled.server.ServerThread.dorun(ServerThread.java:265)
at org.jboss.invocation.pooled.server.ServerThread.run(ServerThread.java:156)
2009-02-10 06:31:36,670 ERROR [MsgAjp] - BAD packet signature 26481
2009-02-10 06:31:36,670 ERROR [ChannelSocket] - Error, processing connection
java.lang.IndexOutOfBoundsException
at java.io.BufferedInputStream.read(BufferedInputStream.java:306)
at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:577)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:685)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:613)
2009-02-10 06:32:04,403 ERROR [MsgAjp] - BAD packet signature 18254
2009-02-10 06:32:04,403 ERROR [ChannelSocket] - Error, processing connection
java.lang.IndexOutOfBoundsException
at java.io.BufferedInputStream.read(BufferedInputStream.java:306)
at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:577)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:685)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:613)
2009-02-10 06:32:04,523 ERROR [MsgAjp] - BAD packet signature 1025
2009-02-10 06:32:04,523 WARN [ChannelSocket] - Closing ajp connection 0
2009-02-10 06:32:04,583 ERROR [MsgAjp] - BAD packet signature 7424
2009-02-10 06:32:04,643 ERROR [MsgAjp] - BAD packet signature 27648
2009-02-10 06:32:04,703 ERROR [MsgAjp] - BAD packet signature 14408
2009-02-10 06:32:04,703 ERROR [ChannelSocket] - Error, processing connection
java.lang.IndexOutOfBoundsException
at java.io.BufferedInputStream.read(BufferedInputStream.java:306)
at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:577)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:685)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:613)
2009-02-10 06:32:04,764 ERROR [MsgAjp] - BAD packet signature 3
2009-02-10 06:32:04,765 ERROR [ChannelSocket] - Error, processing connection
java.lang.IndexOutOfBoundsException
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210080#4210080
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4210080
17 years, 2 months
[EJB/JBoss] - HELP, PROBLEMS CONNECTING TO MULTIPLE DATASOURCES
by sbarreros
Hello,
I have this ejb that queries one database in one machine, gets the resultset massages the data opens a new connection to another database in a different machine and it is supposed to insert the data. However I get the following error message:
2009-02-13 18:32:50,188 INFO [STDOUT] org.jboss.util.NestedSQLException: Transaction is not active: tx=TransactionImple < ac, BasicAction: 7f000101:e001:4995ebf3:117 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: 7f000101:e001:4995ebf3:117 status: ActionStatus.ABORT_ONLY >)
I know it has to do with the different machine connections, because if I import the table and the data to the target database and use the same datasource to run the EJB it runs with no problem.
JBoss 4.2.2
Mysql database
Thanks for any help
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210076#4210076
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4210076
17 years, 2 months