Jboss and Jvew
mysmellyfoot Nov 18, 2002 1:27 PMHey all, Just wondering if its possable to get some help or a pointer in the right direction.
We have been looking at moving our website from weblogic to jboss and all seems to be working fine except for one part our Com 2 Java bridge which operates under jview.
The bridge enables us to use a IIS/asp front end and java appserver back end. (I know this is bad but there is not much i can do about it at the mo)
Anyway cant seem to be able to get a InitialContext from my appserver when I call the code from Jview.
Heres the code.
java.util.Properties p = new java.util.Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
p.put(Context.PROVIDER_URL,url); //Appserver URL
p.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
return new InitialContext(p);// this is where it errors
The error I keep getting is an odd one:
java.lang.UnsatisfiedLinkError: java/security/AccessController.doPrivileged Possible causes: If you are trying to use J/Direct (@dll.import), check your compiler version (for JVC, requires 4336 or greater.) If you are trying to use RNI, there are new requirements: see documentation.
at java/security/AccessController.doPrivileged (AccessController.java)
at sun/security/util/Debug. (Debug.java:22)
at sun/security/util/Debug.getInstance (Debug.java)
at java/security/SecureClassLoader. (SecureClassLoader.java:34)
at java/lang/Class.forName (Class.java)
at com/sun/naming/internal/VersionHelper. (VersionHelper.java:53)
at com/sun/naming/internal/VersionHelper.getVersionHelper (VersionHelper.java)
at com/sun/naming/internal/ResourceManager. (ResourceManager.java:61)
at com/sun/naming/internal/ResourceManager.getInitialEnvironment (ResourceManager.java)
at javax/naming/InitialContext.init (InitialContext.java:213)
at javax/naming/InitialContext. (InitialContext.java:193)
at com/travelstore/utils/TSInitialContextFactory.getInitialContext (TSInitialContextFactory.java:96)
at com/travelstore/utils/TestTSInitialContextFactory.testTSInitialContextFactoryCommand (TestTSInitialContextFactory.java:76)
My class path is :
D:\java\jboss-3.0.2\lib\jboss-common.jar;D:\java\jboss-3.0.2\lib\jboss-transaction.jar;D:\java\jboss-3.0.2\lib\log4j-boot.jar;D:\java\jboss-3.0.2\server\default\lib\jboss-j2ee.jar;D:\java\jboss-3.0.2\server\default\lib\jnpserver.jar;D:\java\jboss-3.0.2\server\default\lib\jboss.jar;D:\java\jboss-3.0.2\server\default\lib\jboss-transaction.jar;c:\devenvironment\3rdPartyTools\junit3.2\junit.jar;c:\devenvironment\3rdPartyTools\xerces\xerces.jar;c:\devenvironment\3rdPartyTools\lib\RmiForMs.zip;
Thanks in advance for any help.
Cheers
Kev.