Browsing Server Exception

Using Hermes with JBoss

Browsing Server Exception

Postby nick » Thu Apr 24, 2008 11:09 am

Hi,

I'm new to JBoss and Messaging, however i have to connect Hermes from my WindowsXP Computer to a
JBoss Computer running Solaris Sun 5.8, JBoss Version is 4.0.2.

I'm developing under Java and have setup the JAVA_HOME and Classpath Variable.

I unpacked JBoxx 4.0.2 on my WindowsXP Computer too, because hermes needs the jar files for the provider.

When i double click on the context i've created i get the message javax.jms.JMSException "Could not create InitialContext:
Cannot instantiate class: org.jnp.interfaces.NamingContextFactory.

On the JBoss Computer i found the jndi.properties file and type the info into Hermes.

I just want you to please point me into the right direction where the source of this exception lies.

Thanx !


Nick
nick
 
Posts: 12
Joined: Thu Apr 24, 2008 11:03 am

Re: Browsing Server Exception

Postby nick » Tue Apr 29, 2008 7:39 am

OK I solved it somehow by my own.

I just edited the session settings manually without jndi, and now i can connect and browse :-)
nick
 
Posts: 12
Joined: Thu Apr 24, 2008 11:03 am

Re: Browsing Server Exception

Postby nick » Tue Apr 29, 2008 7:55 am

Hi,


Now i have another problem, i can connect and i see the queues, but when i klick browse/auto refresh, after some time
i geht the following error (copied from the log):
Code: Select all
2008-04-29 09:51:10,978 [Hermes ThreadPool-0] ERROR hermes.browser.tasks.HermesBrowserTaskListener - Cannot browse the Queue; - nested throwable: (java.lang.InterruptedException)
org.jboss.mq.SpyJMSException: Cannot browse the Queue; - nested throwable: (java.lang.InterruptedException)
   at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:66)
   at org.jboss.mq.SpyJMSException.rethrowAsJMSException(SpyJMSException.java:51)
   at org.jboss.mq.Connection.browse(Connection.java:861)
   at org.jboss.mq.SpyQueueBrowser.getEnumeration(SpyQueueBrowser.java:83)
   at hermes.browser.tasks.BrowseDestinationTask.invoke(BrowseDestinationTask.java:145)
   at hermes.browser.tasks.TaskSupport.run(TaskSupport.java:175)
   at hermes.browser.tasks.ThreadPool.run(ThreadPool.java:170)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.InterruptedException
   at EDU.oswego.cs.dl.util.concurrent.LinkedQueue.put(LinkedQueue.java:94)
   at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:250)
   at org.jboss.mq.il.uil2.SocketManager.sendMessage(SocketManager.java:206)
   at org.jboss.mq.il.uil2.UILServerIL.browse(UILServerIL.java:284)
   at org.jboss.mq.Connection.browse(Connection.java:857)
   ... 5 more


do i have to add some more username password settings ?

it is not clear to me the whol thing, i just wish that it'll work sometime ;-)

nick
nick
 
Posts: 12
Joined: Thu Apr 24, 2008 11:03 am

Re: Browsing Server Exception

Postby nick » Tue Apr 29, 2008 8:49 am

Again i solved the problem, i used admin for the security authentication, but now it say it cannot read the fix message:

Code: Select all
Unable to display message:
javax.jms.MessageFormatException: IOException: quickfix.fix44.Message$Header; local class incompatible: stream classdesc serialVersionUID = 409223065869025117, local class serialVersionUID = 4058455441974543383
   at org.jboss.mq.SpyObjectMessage.getObject(SpyObjectMessage.java:140)
   at hermes.renderers.DefaultMessageRenderer.handleObjectMessage(DefaultMessageRenderer.java:319)
   at hermes.renderers.DefaultMessageRenderer.render(DefaultMessageRenderer.java:503)
   at hermes.browser.components.MessagePayloadPanel.setMessage(MessagePayloadPanel.java:90)
   at hermes.browser.actions.BrowserAction.valueChanged(BrowserAction.java:873)
   at hermes.browser.actions.BrowserAction$2.run(BrowserAction.java:567)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.run(Unknown Source)
nick
 
Posts: 12
Joined: Thu Apr 24, 2008 11:03 am

Re: Browsing Server Exception

Postby Colin » Thu May 01, 2008 2:52 pm

Hi,

There is a version mismatch between the quickfixj.jar bundled with Herms and the quickfixj.jar you've used to create the FIX message and serialise it into an ObjectMessage.

However. It's a little odd to send the FIX message and a serialised Java object as obviously FIX has its own encoding that is cross platform and so on. You'd be better off sending it as a TextMessage or BytesMessage and then Hermes will also be able to render it properly and you won't have this dependency on sharing the same version of quickfixj.jar

Java serialised objects are ikky and couple your distributed system in unexpected ways, its best to avoid them...

Regards,

Colin.
Colin
Site Admin
 
Posts: 913
Joined: Sun Sep 19, 2004 4:49 pm
Location: London, UK

Re: Browsing Server Exception

Postby nick » Mon May 05, 2008 12:15 pm

Hi Colin,

Thanks for the reply !

I want to go back to the roots and not manually browse the JBoss Server instead using the JNDI Technology.

Why comes the message "Could not create InitialContext: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory

Is it because of some missing library or classpath ?

For Info: The JBoss Server is NOT locally, so in order to let Hermes find the JAR's I just installed the JBoss and JEE on
my computer for this, but I don't "use" my local installed JBoss.

My classpath looks like this:
.;C:\Program Files\Java\jre1.5.0_10\lib\ext\QTJava.zip;C:\EBJStudio3\JBoss-3.2.3\client\jnp-client.jar;C:\Program Files\Java\jre1.6.0_05\lib;C:\jboss-4.0.2\client\jnp-client.jar;C:\jboss-4.0.2\client\jbossall-client.jar

The log file says this:
Code: Select all
2008.05.05 14:08:50 [Hermes ThreadPool-2] hermes.browser.tasks.ThreadPool task hermes.browser.tasks.JNDIBrowseTask@19bb8e3 starting
2008.05.05 14:08:50 [Hermes ThreadPool-2] hermes.impl.SimpleClassLoaderManager creating new classLoader for  System
2008.05.05 14:08:50 [Hermes ThreadPool-2] org.apache.commons.beanutils.BeanUtils   setProperty(hermes.JNDIContextFactory@1d359c7, securityCredentials, admin)
2008.05.05 14:08:50 [Hermes ThreadPool-2] org.apache.commons.beanutils.ConvertUtils Convert string 'admin' to class 'java.lang.String'
2008.05.05 14:08:50 [Hermes ThreadPool-2] org.apache.commons.beanutils.ConvertUtils   Using converter org.apache.commons.beanutils.converters.StringConverter@1633ac3
2008.05.05 14:08:50 [Hermes ThreadPool-2] org.apache.commons.beanutils.PropertyUtils setSimpleProperty: Invoking method public void hermes.JNDIContextFactory.setSecurityCredentials(java.lang.String) with value admin (class java.lang.String)
2008.05.05 14:08:50 [Hermes ThreadPool-2] hermes.impl.LoaderSupport set hermes.JNDIContextFactory securityCredentials=admin
2008.05.05 14:08:50 [Hermes ThreadPool-2] org.apache.commons.beanutils.BeanUtils   setProperty(hermes.JNDIContextFactory@1d359c7, securityAuthentication, admin)
2008.05.05 14:08:50 [Hermes ThreadPool-2] org.apache.commons.beanutils.ConvertUtils Convert string 'admin' to class 'java.lang.String'
2008.05.05 14:08:50 [Hermes ThreadPool-2] org.apache.commons.beanutils.ConvertUtils   Using converter org.apache.commons.beanutils.converters.StringConverter@1633ac3
2008.05.05 14:08:50 [Hermes ThreadPool-2] org.apache.commons.beanutils.PropertyUtils setSimpleProperty: Invoking method public void hermes.JNDIContextFactory.setSecurityAuthentication(java.lang.String) with value admin (class java.lang.String)
2008.05.05 14:08:50 [Hermes ThreadPool-2] hermes.impl.LoaderSupport set hermes.JNDIContextFactory securityAuthentication=admin
2008.05.05 14:08:50 [Hermes ThreadPool-2] org.apache.commons.beanutils.BeanUtils   setProperty(hermes.JNDIContextFactory@1d359c7, host, jnp://Fix2.gc.spardat.at:20199)
2008.05.05 14:08:50 [Hermes ThreadPool-2] org.apache.commons.beanutils.ConvertUtils Convert string 'jnp://Fix2.gc.spardat.at:20199' to class 'java.lang.String'
2008.05.05 14:08:50 [Hermes ThreadPool-2] org.apache.commons.beanutils.ConvertUtils   Using converter org.apache.commons.beanutils.converters.StringConverter@1633ac3
2008.05.05 14:08:50 [Hermes ThreadPool-2] org.apache.commons.beanutils.PropertyUtils setSimpleProperty: Invoking method public void hermes.JNDIContextFactory.setHost(java.lang.String) with value jnp://Fix2.gc.spardat.at:20199 (class java.lang.String)
2008.05.05 14:08:50 [Hermes ThreadPool-2] hermes.impl.LoaderSupport set hermes.JNDIContextFactory host=jnp://Fix2.gc.spardat.at:20199
2008.05.05 14:08:50 [Hermes ThreadPool-2] org.apache.commons.beanutils.BeanUtils   setProperty(hermes.JNDIContextFactory@1d359c7, initialContextFactory, org.jnp.interfaces.NamingContextFactory)
2008.05.05 14:08:50 [Hermes ThreadPool-2] org.apache.commons.beanutils.ConvertUtils Convert string 'org.jnp.interfaces.NamingContextFactory' to class 'java.lang.String'
2008.05.05 14:08:50 [Hermes ThreadPool-2] org.apache.commons.beanutils.ConvertUtils   Using converter org.apache.commons.beanutils.converters.StringConverter@1633ac3
2008.05.05 14:08:50 [Hermes ThreadPool-2] org.apache.commons.beanutils.PropertyUtils setSimpleProperty: Invoking method public void hermes.JNDIContextFactory.setInitialContextFactory(java.lang.String) with value org.jnp.interfaces.NamingContextFactory (class java.lang.String)
2008.05.05 14:08:50 [Hermes ThreadPool-2] hermes.impl.LoaderSupport set hermes.JNDIContextFactory initialContextFactory=org.jnp.interfaces.NamingContextFactory
2008.05.05 14:08:50 [Hermes ThreadPool-2] org.apache.commons.beanutils.BeanUtils   setProperty(hermes.JNDIContextFactory@1d359c7, urlPkgPrefixes, org.jnp.interfaces:org.jboss.naming)
2008.05.05 14:08:50 [Hermes ThreadPool-2] org.apache.commons.beanutils.ConvertUtils Convert string 'org.jnp.interfaces:org.jboss.naming' to class 'java.lang.String'
2008.05.05 14:08:50 [Hermes ThreadPool-2] org.apache.commons.beanutils.ConvertUtils   Using converter org.apache.commons.beanutils.converters.StringConverter@1633ac3
2008.05.05 14:08:50 [Hermes ThreadPool-2] org.apache.commons.beanutils.PropertyUtils setSimpleProperty: Invoking method public void hermes.JNDIContextFactory.setUrlPkgPrefixes(java.lang.String) with value org.jnp.interfaces:org.jboss.naming (class java.lang.String)
2008.05.05 14:08:50 [Hermes ThreadPool-2] hermes.impl.LoaderSupport set hermes.JNDIContextFactory urlPkgPrefixes=org.jnp.interfaces:org.jboss.naming
2008.05.05 14:08:50 [Hermes ThreadPool-2] hermes.JNDIContextFactory properties: {java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jnp.interfaces:org.jboss.naming, java.naming.security.authentication=admin, java.naming.factory.host=jnp://Fix2.gc.spardat.at:20199, java.naming.security.credentials=admin}
2008.05.05 14:08:50 [Hermes ThreadPool-2] hermes.JNDIContextFactory javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory
2008.05.05 14:08:50 [Hermes ThreadPool-2] hermes.browser.tasks.HermesBrowserTaskListener Could not create InitialContext: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory
2008.05.05 14:08:50 [Hermes ThreadPool-2] hermes.browser.tasks.ThreadPool task hermes.browser.tasks.JNDIBrowseTask@19bb8e3  stopped
nick
 
Posts: 12
Joined: Thu Apr 24, 2008 11:03 am

Re: Browsing Server Exception

Postby Colin » Tue May 06, 2008 2:43 pm

Hi,

Have you looked at this?

http://hermesjms.com/confluence/display ... s+Tutorial

Also, your system classpath has both JBoss 3 and JBoss 4 libraries in it - is that intentional?

Regards,

Colin.
Colin
Site Admin
 
Posts: 913
Joined: Sun Sep 19, 2004 4:49 pm
Location: London, UK

Re: Browsing Server Exception

Postby nick » Wed May 07, 2008 8:50 am

Hi Colin,

I have tried the tutorial but i got stuck with connecting to the jboss server via jndi, so i opened another issue.

i have java sdk 1.6 installed, it should have the jndi available. but when i try to connect hermes says it can't
instantiate the NamingContextFactory.

Code: Select all
2008-05-06 15:25:30,130 [Hermes ThreadPool-1] DEBUG hermes.impl.LoaderSupport - set hermes.JNDIContextFactory urlPkgPrefixes=org.jboss.naming:org.jnp.interfaces
2008-05-06 15:25:30,130 [Hermes ThreadPool-1] DEBUG hermes.JNDIContextFactory - properties: {java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces, java.naming.security.authentication=admin, java.naming.factory.host=fix2.gc.spardat.at:20199, java.naming.security.credentials=admin}
2008-05-06 15:25:30,130 [Hermes ThreadPool-1] ERROR hermes.JNDIContextFactory - javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory
javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory]
   at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
   at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
   at javax.naming.InitialContext.init(InitialContext.java:223)
   at javax.naming.InitialContext.<init>(InitialContext.java:197)
   at hermes.JNDIContextFactory.createContext(JNDIContextFactory.java:260)
   at hermes.browser.components.ContextTreeModelFactory.create(ContextTreeModelFactory.java:58)
   at hermes.browser.tasks.JNDIBrowseTask.invoke(JNDIBrowseTask.java:59)
   at hermes.browser.tasks.TaskSupport.run(TaskSupport.java:175)
   at hermes.browser.tasks.ThreadPool.run(ThreadPool.java:170)
   at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory
   at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:247)
   at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:46)
   at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
   ... 9 more
2008-05-06 15:25:30,130 [Hermes ThreadPool-1] ERROR hermes.browser.tasks.HermesBrowserTaskListener - Could not create InitialContext: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory
javax.jms.JMSException: Could not create InitialContext: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory
   at hermes.JNDIContextFactory.createContext(JNDIContextFactory.java:281)
   at hermes.browser.components.ContextTreeModelFactory.create(ContextTreeModelFactory.java:58)
   at hermes.browser.tasks.JNDIBrowseTask.invoke(JNDIBrowseTask.java:59)
   at hermes.browser.tasks.TaskSupport.run(TaskSupport.java:175)
   at hermes.browser.tasks.ThreadPool.run(ThreadPool.java:170)
   at java.lang.Thread.run(Thread.java:619)
2008-05-06 15:25:30,130 [Hermes ThreadPool-1] DEBUG hermes.browser.tasks.ThreadPool - task hermes.browser.tasks.JNDIBrowseTask@c540d0  stopped

is this because of missing jars, classpath or do i need the JNDI_HOME variable set ?

i appreciate your help

cheers
nick
nick
 
Posts: 12
Joined: Thu Apr 24, 2008 11:03 am

Re: Browsing Server Exception

Postby Colin » Thu May 08, 2008 11:49 am

Hi,

org.jnp.interfaces.NamingContextFactory is a JBoss class so I guess you're missing the JAR file with that in.

Regards,

Colin.
Colin
Site Admin
 
Posts: 913
Joined: Sun Sep 19, 2004 4:49 pm
Location: London, UK

Re: Browsing Server Exception

Postby nick » Fri May 09, 2008 7:09 am

Hi Colin,

I found many threats on the Internat regarding the problem that ContextNamingFactory cannot be instantiated, most
of them are solved with putting the right jars into the classpath and so, the few that still have the problem are not
beeing answered, i'm one of them ;-)

Shouldn't Hermes load the needed JBoss Jar files dynamically ?

I have also tried every imagined kind of classpath adding jar files and so on, but still the application doesn't found the
class.
How can Hermes find the needed class in order to be enable to instantiate ?
I have read something like that jar files don't use the classpath, the need a manifest, but Hermes does load the JBoss Jar's
dynamically ?
Could you reproduce the error ?


Cheers
Nick
nick
 
Posts: 12
Joined: Thu Apr 24, 2008 11:03 am

Re: Browsing Server Exception

Postby nick » Tue May 13, 2008 8:59 am

Hi Colin,

I think it's a problem at Hermes-Startup, look at the log:

Code: Select all
2008-05-13 09:48:24,922 [main] DEBUG hermes.browser.HermesBrowser - Hermes Browser v1.12 starting...
2008-05-13 09:48:25,547 [AWT-EventQueue-0] DEBUG hermes.browser.HermesBrowser - props={java.naming.provider.url=\.hermes\hermes-config.xml, java.naming.factory.initial=hermes.HermesInitialContextFactory, hermes.loader=hermes.JAXBHermesLoader}
2008-05-13 09:48:25,625 [AWT-EventQueue-0] DEBUG hermes.HermesInitialContextFactory - loader=hermes.JAXBHermesLoader
2008-05-13 09:48:25,641 [AWT-EventQueue-0] DEBUG hermes.JAXBHermesLoader - attempting to load from URL: \.hermes\hermes-config.xml
2008-05-13 09:48:25,641 [AWT-EventQueue-0] INFO  hermes.JAXBHermesLoader - failed to load configuration from \.hermes\hermes-config.xml, attempting to load as a file...
2008-05-13 09:48:25,641 [AWT-EventQueue-0] DEBUG hermes.JAXBHermesLoader - trying to load from file: hermes-config.xml
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.SimpleClassLoaderManager - adding new ClasspathGroupConfig JBOSS 4.0.2
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\activation.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\auth.conf
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\avalon-framework.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\axis-ws4ee.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\commons-discovery.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\commons-logging.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\concurrent.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\getopt.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\jacorb.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\jboss-client.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\jboss-common-client.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\jboss-deployment.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\jboss-iiop-client.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\jboss-j2ee.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\jboss-jaxrpc.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\jboss-jsr77-client.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\jboss-juddiaxis.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\jboss-saaj.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\jboss-system-client.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\jboss-transaction-client.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\jboss-ws4ee-client.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\jbossall-client.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\jbosscx-client.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\jbossha-client.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\jbossjmx-ant.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\jbossmq-client.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\jbosssx-client.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\jmx-client.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\jmx-invoker-adaptor-client.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\jnp-client.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\log4j.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\logkit.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\mail.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\namespace.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\scout.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\client\wsdl4j.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\lib\commons-httpclient.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\lib\commons-logging.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\lib\concurrent.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\lib\dom4j.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\lib\getopt.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\lib\gnu-regexp.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\lib\jaxen.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\lib\jboss-common.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\lib\jboss-jmx.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\lib\jboss-system.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\lib\log4j-boot.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\lib\namespace.jar
2008-05-13 09:48:25,891 [AWT-EventQueue-0] DEBUG hermes.impl.LoaderSupport - skipping C:\jboss-4.0.2\lib\webdavlib.jar


First it tries to load the URL \.hermes\hermes-config.xml, actually it's on C:\hermes\hermes-config.xml
The log doesn't say if it fails here or if it finds it later on.

Second is that Hermes is skipping all the Providerclasses that i defined and maybe that's the reason why it can't instantiate the class,
because it doesn't have the jars.


Cheers

Nick
nick
 
Posts: 12
Joined: Thu Apr 24, 2008 11:03 am

Re: Browsing Server Exception

Postby nick » Wed May 14, 2008 12:21 pm

Hi colin,

I think i know now what the problem is:

in the JNDI InitialContext setup windows you can specifie the loader for the jboss classes, but anytime
i klick in another field after selecting my jboss loader, it jumps back to system.

so maybe that's the reason it doesn't find the jboss jars.

cheers
Nick
nick
 
Posts: 12
Joined: Thu Apr 24, 2008 11:03 am

Re: Browsing Server Exception

Postby nick » Wed May 14, 2008 12:27 pm

Hi again,


i solved the problem now, maybe you can debug and fix what's wrong here:

i added a second classloader with the same jboss files, just for trial that i have now 2 class loaders.

then i created a second context and now when i klick on the dropdown menu at loader and select
any of the 2 class loaders it stays the there.

so i filled out the other fields, and still have the loader and not the "System"-loader.

maybe it's an index problem or something

cheers
nick
nick
 
Posts: 12
Joined: Thu Apr 24, 2008 11:03 am


Return to JBoss

Who is online

Users browsing this forum: No registered users and 0 guests