[JBoss Web Services] - Need little help with isolation configuration and class loading
by Nikolay Karasev
Nikolay Karasev [http://community.jboss.org/people/nkarasev] created the discussion
"Need little help with isolation configuration and class loading"
To view the discussion, visit: http://community.jboss.org/message/575291#575291
--------------------------------------------------------------
Hi,
I am new here. If this is not correct forum (location) please suggest the better one.
Our company has jboss installed on some QA and Prod servers and accessing and modifying any files on server is less than desirable for stability reasons.
However the installed version (4.2.3.GA) is using older hibernate libraries (/server/default/lib/hibernate3.jar,...). I have to use newer libraries to be able to use hibernate annotations. I have set up maven project(s) so that I am downloading correct versions of hibernate, hibernate-annotations and hibernate-commons-annotations. These are getting bundled into the WAR and then into EAR files and are extracted properly into application's /lib directory. However jboss is picking up the default libraries (I can see that in logs) and AnnotationConfiguration is probably not the correct class (configure() method is not found).
If I remove the default jar files from jboss installation on my dev box, all works fine, all newer versions of hibernate libraries are loaded and my app works as expected. But like I said - modifying anything on the server side is not desired at all, I would like to force jboss to pick those hibernate libraries from supplied WAR/EAR files.
While trying to investigate and find the remedy, the only way I see is to do something with class loader in jboss-web.xml file. Maybe I am wrong here, but I cannot find anything close enough. However I am not able to understand how this file is organized. I have assumption that <loader-repository>com.example.loaderrepository:loader=my.war needs to be properly assigned, but I am not sure to what? "com.example" - is this a placeholder for the class that I need to load, or is this for something else? Currently my domain is just "localhost" but in QA or Prod environment it will be xxxxx.com
Also do I need to use java2ParentDelegation=false?
Thanks,
Nikolay
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/575291#575291]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 7 months
[JNDI and Naming] - Lookup bean from AS 4.0.5 to 5.1.0
by Gabriel Valencia
Gabriel Valencia [http://community.jboss.org/people/gvalenc] created the discussion
"Lookup bean from AS 4.0.5 to 5.1.0"
To view the discussion, visit: http://community.jboss.org/message/575250#575250
--------------------------------------------------------------
I have an EJB3 stateless session bean deployed in AS 5.1.0 that I am trying to look up from some client code deployed in a remote AS 4.0.5 installation. The client isn't a true EJB client, just something that happens to be running within the context of a 3rd party EJB in that server. Should this be possible? The client has the same class files inside its jar as those in the 5.1.0 bean's jar. I specifically set the JNDI provider URL to be the remote 5.1.0 server in the InitialContext properties before lookup.
I get this exception during the narrow() call:
Caused by: java.lang.ClassCastException
at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:229)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
at com.venetica.vbr.res.ejb.EJBLocator.locateDirector(EJBLocator.java:115)
... 23 more
Caused by: java.lang.ClassCastException: javax.naming.Reference
at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:212)
... 25 more
Caused by: java.lang.ClassCastException
at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:229)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
at ****(****.java:115)
... 23 more
Caused by: java.lang.ClassCastException: javax.naming.Reference
at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:212)
... 25 more
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/575250#575250]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 7 months
[jBPM] - Re: Create a flexible workflow and deploy it in JBPM on the fly
by Justin Lee
Justin Lee [http://community.jboss.org/people/justin.l] created the discussion
"Re: Create a flexible workflow and deploy it in JBPM on the fly"
To view the discussion, visit: http://community.jboss.org/message/575197#575197
--------------------------------------------------------------
We had the same kind of requirement that an admin in system can update the workflow at any time.
The solution we provided was as we know jBPM supports the version number for process definitions and whenever an admin makes updates to the workflow, the updated workflow will be saved with new version number. Admin has to choose whether the system should go with the executions of older version which is already created for the users or should go with the new version. If it is with new version, admin user has to force close all the executions for the old version and then allow the system to create the new instances for workflow with latest version, for all the users.
This is the workaround we provided in our system for client requirement.
Applying workflow updates on the fly to the running executions(process instances) is not supported by jBPM.
Thanks!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/575197#575197]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 7 months
[Beginner's Corner] - Re: Clustering an application that uses Spring singletons
by Ghazanfer Ali
Ghazanfer Ali [http://community.jboss.org/people/ghazanfer] created the discussion
"Re: Clustering an application that uses Spring singletons"
To view the discussion, visit: http://community.jboss.org/message/575160#575160
--------------------------------------------------------------
I have tried your solution its works for the first node of my jboss 5.1 cluster, but when i start my 2nd node it does not deploy my ear and throws following error:--
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "jboss.j2ee:ear=vtp.ear,jar=vtpEnterpriseBeans.jar,name=JobService,service=EJB3" is missing the following dependencies:
Dependency "<UNKNOWN jboss.j2ee:ear=vtp.ear,jar=vtpEnterpriseBeans.jar,name=JobService,service=EJB3>" (should be in state "Described", but is actually in st
ate "** UNRESOLVED Demands 'jboss.ha:service=HASingletonDeployer,type=Barrier' **")
Deployment "jboss.j2ee:ear=vtp.ear,jar=vtpEnterpriseBeans.jar,name=JobService,service=EJB3_endpoint" is missing the following dependencies:
Dependency "jboss.j2ee:ear=vtp.ear,jar=vtpEnterpriseBeans.jar,name=JobService,service=EJB3" (should be in state "Configured", but is actually in state "PreI
nstall")
DEPLOYMENTS IN ERROR:
Deployment "<UNKNOWN jboss.j2ee:ear=vtp.ear,jar=vtpEnterpriseBeans.jar,name=JobService,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVE
D Demands 'jboss.ha:service=HASingletonDeployer,type=Barrier' **
can u please help with this?
ghazanfer
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/575160#575160]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 7 months