[JNDI/Naming/Network] - Re: RMI-IIOP
by One_Special_User
Ok, the status so far:
My C#-Client can lookup the SessionBeans and invoke them.
But I just don't get any Java-Client to retrieve any SessionBean.
Nevertheless, JNDIView states all EJBs are bound to right JNDI-Names.
Now I'm already getting a reference at the clientside, but narrowing causes a NullPointerException:
| public static Properties getJBOSSProperties() {
| Properties props = new Properties();
| String factoryName = "org.jnp.interfaces.NamingContextFactory";
| String providerURL = "iiop://localhost:2255";
| String factoryPkgs = "org.jboss.naming:org.jnp.interfaces";
| props.put(Context.INITIAL_CONTEXT_FACTORY, factoryName);
| props.put(Context.PROVIDER_URL, providerURL);
| props.put(Context.URL_PKG_PREFIXES, factoryPkgs);
| return props;
| }
|
|
| ...
|
| Properties props = getJBOSSProperties();
| Context ctx = new InitialContext( props );
| System.out.println( "Got InitialContext!" );
| // some other SessionBeans-Names, but doesn't matter //
| String jndi = "vfmcontroller/VFMController";
| Object obj_ref = ctx.lookup( jndi );
| System.out.println( "Got Reference: " + jndi );
| System.out.println( "Class: " + obj_ref.getClass() );
|
|
|
| VFMControllerHome home = (VFMControllerHome)PortableRemoteObject.narrow( obj_ref, VFMControllerHome.class );
| VFMController controller = home.create();
| System.out.println( "Got VFMController: " + controller.getTime() );
StackTrace:
Got InitialContext!
| log4j:WARN No appenders could be found for logger (org.jnp.interfaces.NamingContext).
| log4j:WARN Please initialize the log4j system properly.
| Got Reference: vfmcontroller/VFMController
| Class: class org.omg.stub.javax.ejb._EJBHome_Stub
| Exception in thread "main" java.lang.NullPointerException
| at test.TestKlasse.main(TestKlasse.java:93)
I've tried all combinations of Properties (INITIAL_CONTEXT_FACTORY, PROVIDER_URL, URL_PKG_PREFIXES) with corresponding values and I think i have included all clientside-necessary JARs (jbossall-client.jar etc).
WHAT AM I DOING WRONG?
I've searched the web and found all just the same but no solution works for me.
Please tell me, which jar's to be included (serverside/clientside) or specific configurations which might cause problems... :-/
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962496#3962496
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962496
18 years, 5 months
[EJB/JBoss] - java.lang.LinkageError
by bvarianlvr
Good morning. I'm having an odd problem when trying to execute my EJB. It's never happened before:
2006-08-02 08:32:09,618 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException in method: public abstract java.util.Vector webmine.ont1.oip.ejbs.addressparser.ejbeans.POBoxExtractorSLSLC_Local.extractForeignAddress(java.lang.StringBuffer) throws javax.naming.NamingException, causedBy:
javax.ejb.EJBException: Unexpected Error
java.lang.LinkageError: loader constraints violated when linking org/apache/oro/text/regex/MatchResult class
at webmine.ont1.oip.ejbs.addressparser.ejbeans.POBoxExtractorSLSLC_Bean.extractForeignAddress(POBoxExtractorSLSLC_Bean.java:142)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
...
I have jakarta-oro-2.0.8.jar included in the webcheck.jar (which is a bunch of classes that work to parse addresses out of supplied text). But the regular expression code is new in the webcheck.jar.
I did a search on google, and java.sun.com, and didn't find anything that was specific to this issue. I did find something about maybe 2 different versions of jakarta-oro, but a search on the machine showed all versions are the same.
Does anyone have any idea what the issue is?
Thank you,
Jonathan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962494#3962494
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962494
18 years, 5 months
[JBoss Seam] - Pageflow - Dynamic viewID
by connerjohn
I am about to replace a shopping cart application (struts->seam). The application is multi-tenat and one of the features we are hoping to be able to provide with a new architecture is the ability to customize which page is displayed for a given client.
We have a standard page flow for checkout, however, each client would like their own custom L&F (much more than can be offered by changing css). I am just starting to work with pageflow - so sorry if this is a stupid question.
One way I thought might be possible is to change the viewID. Can the viewID of the different pageflow constructs accept an el value and be dynamic? If not, could you point me in the direction of what I would have to modify in order let this happen (or let me know it's not possible so I look for a different way to achieve what I want).
After reading the docs, I was thinking of trying something like:
| <page name="checkout"
| view-id="/#{TENANTID}/checkout.xhtml"
| back="enabled">
| <redirect/>
| <transition to="checkout"/>
| <transition name="complete" to="complete"/>
| </page>
|
--JC
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962493#3962493
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962493
18 years, 5 months