[JBoss/Spring Integration] - Re: Spring Component Auto Detection
by trybik
Tried it, works fine! Thank you, Marius!
There is still one thing pending, though. It is not something I need, but it might be an issue for someone else.
I am talking about scanning for beanRefContext.xml files - see my post on Mon May 11, 2009 10:13 AM.
As I mentioned, I do not need it, since LAMS has currently only one such file and I can give the path explicitly. But one of the features of ContextSingletonBeanFactoryLocator is that it can merge several such files and create contexts based on the result. This can be very useful in some cases.
Right now PathMatchingResourcePatternResolver is used and it causes errors. I am guessing that VFSResourcePatternResolver should be used, but is there a way to make Spring do it? Something similar to "contextClass" parameter?
I tried to set contextClass to VFSClassPathXmlApplicationContex and, as expected, it did not work.
Marcin
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231599#4231599
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231599
16 years, 11 months
[Installation, Configuration & DEPLOYMENT] - Deployment of a J2EE1.3 application fails on JBoss4.2.2
by groovie
Salut,
i have successfully set up a JEE1.4 environment for to test
and run my applications using EJB3. Fine!
Some days ago i started a migration project, where an
old JEE Application has to move from an Oracle-App-Server
to JBoss. So i created a new development-context using
Eclipse&Jboss-Tools transfered also the ole JDevelopper
to Eclipse.
The migration is finished, instread of the oracle-descriptor
now there is jboss.xml file doing the job. EAR-Build
does create a app.ear that i am trying to deploy on my
JBoss 4.2.2 (under Linux, with JAVA 1.6), but i do receive
the following exception:
11:56:32,447 WARN [ServiceController] Problem creating service jboss.j2ee:service=EjbModule,module=myAppEJB.jar
org.jboss.deployment.DeploymentException: Missing or invalid Instance Cache (in jboss.xml or standardjboss.xml); - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: )
at org.jboss.ejb.EjbModule.createInstanceCache(EjbModule.java:1234)
at org.jboss.ejb.EjbModule.createStatefulSessionContainer(EjbModule.java:646)
at org.jboss.ejb.EjbModule.createContainer(EjbModule.java:579)
at org.jboss.ejb.EjbModule.createService(EjbModule.java:342)
The exception seems to occur in the context of a stateful session bean.
Thats right, my application has a couple of stateless and stateful
session beans, that habe been configured on both descriptor file.
Does the error indicate, that the application has problems to
persists the data of a statefull session bean ??
Some postings on the web inidicate, that i do have to do some
<container-configuration> in my jboss.xml, but i do not know how ?
Oh, there is another thing i should tell you. I do have 2 datasources,
one of them is linked to a read-only oracle-access. When i worked
with EJB3 i learned to map persistenc-issues in my persistence.xml
to prevetent ambiguous object mapping, but i do not have any
persistence.xml in my EJB2.x !!!
Thank you in advance for any help!
Groovie
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231582#4231582
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231582
16 years, 11 months
[JBoss Cache: Core Edition] - Clustered Sessions
by mrathod@asite.com
We are using Jboss 4.2.2 with Buddy Replication for clustering.
I have stopped all the cluster nodes running Jboss Application and start it one by one. I get following log on all the nodes of cluster. Shouldn't these session information should be removed if I restart complete cluster ?
Please help....
Server Log
anonymous wrote : 2009-05-18 07:05:23,623 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] Creating an empty ClusteredSession
| 2009-05-18 07:05:23,639 DEBUG [org.jboss.web.tomcat.service.session.SessionIDGenerator] getSessionId called: ixiVryaGqdX0o7IsKmSiUg**
| 2009-05-18 07:05:23,639 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] Session with id=ixiVryaGqdX0o7IsKmSiUg** added. Current active sessions 7
|
jboss-service.xml
anonymous wrote :
|
|
| false
| org.jboss.cache.buddyreplication.NextMemberBuddyLocator
|
| numBuddies = 1
| ignoreColocatedBuddies = true
|
|
| default
| 2000
|
| false
| true
| true
|
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231575#4231575
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231575
16 years, 11 months