[EJB/JBoss] - update from 3.2.8.SP1 to 4.2.2.GA ClassCastException Portab
by bapetc
Hi,
I've a working ear and war file deployed on Jboss 3.2.8.SP1.
When I deploy this application on Jboss 4.2.2.GA, I get a ClassCastException on PortableRemoteObject.narrow()
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.acunia.fleet.asp.util.ServiceLocator.getRemoteHome(ServiceLocator.java:96)
I found this info on the jboss forum:
There are some places where it reports this when it really means ClassNotFoundException, e.g. the CORBA PortableRemoteObject.narrow()
Assuming it is the same class name, this problem relates to classes getting loaded from different classloaders.
So I've checked if my home class (EJB2) is loaded only once via displayClassInfo().
The result:
com.......CustomerProvisioningHome Information:
....
....
....
### Instance0 found in UCL: org.jboss.mx.loading.UnifiedClassLoader3@dfa65c{ url=file:/home/jboss/jboss-4.2.2.GA/server/fleet-server/tmp/deploy/tmp2038fleet-asp.ear ,addedOrder=69}
The remote home class is loaded only once.
Does anyone know what the problem is?
Thanks in advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127281#4127281
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127281
18 years, 2 months
[Remoting] - Re: How to transmit client context info (eg username, host)
by ron.sigal@jboss.com
Each instance of org.jboss.remoting.Client is associated with a unique sessionId, which is transmitted with each invocation. In particular, if you call Client.invoke(), the invocation is wrapped in an instance of org.jboss.remoting.InvocationRequest, which carries the sessionId to the server, where it is passed to org.jboss.remoting.ServerInvocationHandler.invoke().
If you want to add additional application information, you can pass an arbitrary map. E.g.,
| Map metadata = new HashMap();
| metadata.put("user", "monkeyman");
| Object o = ... ;
| client.invoke(o, metadata);
|
and your ServerInvocationHandler can retrieve the map as follows:
| public Object invoke(InvocationRequest invocation) throws Throwable
| {
| Map metadata = invocation.getRequestPayload();
| System.out.println("user: " + metadata.get("user");
| ...
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127279#4127279
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127279
18 years, 2 months
[JBoss jBPM] - jBPM 3.2.2 without suite's AS / on a JBoss AS 4.2.2.GA
by JChief
Hello everybody,
I am currently evaluating JBoss jBPM for its suitability to be integrated in an existing EJB3-JSF-application. But still at the beginning, I am running in problems here. I want to integrate jBPM in the JBoss AS 4.2.2.GA where our application runs on. I don't want to (and even cannot) use the preconfigured JBoss 4.0.2 that is delivered within the jBPM 3.2.2 suite distribution.
I've been searching for an adequate description on how to do this for hours now and yes, there is a lot of information to find about this topic. But neither the user guide, the docs nor miscellaneous entries in this forum could give me a simple, satisfactory reply to my question. So I give it a last try by posting a topic myself with the hope to get a simple step-by-step description. Can't believe that this isn't part of the user guide! Does really everbody who uses or wants to use / evaluate jBPM work with the suite's AS? Or am I just stupidly missing something?
Thanks a lot for your replies in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127267#4127267
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127267
18 years, 2 months