I'm curious to know why FDS with integrated JRun doesn't have this problem with the samples, yet it has the same jars in the same place.

Thanks,

Tom

On 7/6/06, Tom Bray <[EMAIL PROTECTED]> wrote:
Thanks, Carson.  I removed commons-logging.jar from samples/WEB-INF/lib and everything is working great now.  It's also in samples/WEB-INF/flex/jars.

-Tom


On 7/6/06, Carson Hager <[EMAIL PROTECTED]> wrote:

You have commons logging classes in more than one place which is causing the classloader to choke.  The likely cause of this is a commons logging jar in the server level classpath.  If you don't need it there for other applications, remove it and restart JRun.
 
 
Carson

____________________________________________
 
Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com
 
Email:  [EMAIL PROTECTED]
Office:  866-CYNERGY
Mobile: 1.703.489.6466

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tom Bray
Sent: Thursday, July 06, 2006 10:21 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] when I deploy samples in JRun, I get: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy

The most detailed instructions I've found for deploying FDS and the samples on JRun is this:

"For example, for JRun 4 u6, expand the flex.war, samples.war, and flex-admin.war files to directories named flex, samples, and flex-admin, respectively. Then copy these directories to the root of your JRun server instance."

I assume that means this:

C:\JRun4\servers\default\flex
C:\JRun4\servers\default\flex-admin
C:\JRun4\servers\default\samples

But there must be something else I have to do for the samples because I can't deploy them without the following exceptions:

07/06 10:13:43 error Could not pre-load servlet: MessageBrokerServlet
[1]org.apache.commons.logging.LogConfigurationException: org.apache.commons.logg
ing.LogConfigurationException: org.apache.commons.logging.LogConfigurationExcept
ion: Invalid class loader hierarchy.  You have more than one version of 'org.apa
che.commons.logging.Log' visible, which is not allowed. (Caused by org.apache.co
mmons.logging.LogConfigurationException : Invalid class loader hierarchy.  You ha
ve more than one version of 'org.apache.commons.logging.Log' visible, which is n
ot allowed.) (Caused by org.apache.commons.logging.LogConfigurationException: or
g.apache.commons.logging.LogConfigurationException : Invalid class loader hierarc
hy.  You have more than one version of 'org.apache.commons.logging.Log' visible,
 which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationExc
eption: Invalid class loader hierarchy.  You have more than one version of 'org.
apache.commons.logging.Log' visible, which is not allowed.))
        at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
Impl.java:543)
        at org.apache.commons.logging.impl.LogFactoryImpl.getInstance (LogFactory
Impl.java:235)
        at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
Impl.java:209)
        at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
        at org.apache.commons.httpclient.params.DefaultHttpParams.<clinit>(Defau
ltHttpParams.java:53)
        at flex.messaging.services.http.HTTPProxyAdapter.<init>(HTTPProxyAdapter
.java:111)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java :27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at java.lang.Class.newInstance0(Class.java:350)
        at java.lang.Class.newInstance(Class.java:303)
        at flex.messaging.util.ClassUtil.createDefaultInstance (ClassUtil.java:71
)
        at flex.messaging.Destination.createAdapter(Destination.java:277)
        at flex.messaging.Destination.initDestination(Destination.java:103)
        at flex.messaging.services.HTTPProxyService.createDestination (HTTPProxyS
ervice.java:78)
        at flex.messaging.services.AbstractService.createDestinations(AbstractSe
rvice.java:82)
        at flex.messaging.config.MessagingConfiguration.createServices(Messaging
Configuration.java :187)
        at flex.messaging.config.MessagingConfiguration.configureBroker(Messagin
gConfiguration.java:84)
        at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:10
5)
        at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.
java:1200)
        at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationServ
ice.java:791)
        at jrun.servlet.WebApplicationService.postStart (WebApplicationService.ja
va:293)
        at jrun.deployment.DeployerService.initModules(DeployerService.java:711)

        at jrun.deployment.DeployerService.createWatchedDeployment(DeployerServi
ce.java:242)
        at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
        at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerServi
ce.java:179)
        at jrun.deployment.DeployerService.run (DeployerService.java:891)
        at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java
:230)
        at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
ava:428)
        at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.comm
ons.logging.LogConfigurationException: Invalid class loader hierarchy.  You have
 more than one version of 'org.apache.commons.logging.Log' visible, which is not
 allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Inval
id class loader hierarchy.  You have more than one version of ' org.apache.common
s.logging.Log' visible, which is not allowed.)
        at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogF
actoryImpl.java:397)
        at org.apache.commons.logging.impl.LogFactoryImpl.newInstance (LogFactory
Impl.java:529)
        ... 30 more
Caused by: org.apache.commons.logging.LogConfigurationException: Invalid class l
oader hierarchy.  You have more than one version of 'org.apache.commons.logging.
Log' visible, which is not allowed.
        at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogF
actoryImpl.java:385)
        ... 31 more
[0]flex.messaging.config.ConfigurationException: Unable to create service 'flex.
messaging.services.HTTPProxyService' for 'proxy-service' due to the following er
ror: org.apache.commons.logging.LogConfigurationException: org.apache.commons.lo
gging.LogConfigurationException: Invalid class loader hierarchy.  You have more
than one version of 'org.apache.commons.logging.Log' visible, which is not allow
ed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid cla
ss loader hierarchy.  You have more than one version of ' org.apache.commons.logg
ing.Log' visible, which is not allowed.) (Caused by org.apache.commons.logging.L
ogConfigurationException: org.apache.commons.logging.LogConfigurationException:
Invalid class loader hierarchy.  You have more than one version of ' org.apache.c
ommons.logging.Log' visible, which is not allowed. (Caused by org.apache.commons
.logging.LogConfigurationException: Invalid class loader hierarchy.  You have mo
re than one version of 'org.apache.commons.logging.Log ' visible, which is not al
lowed.)).
        at flex.messaging.config.MessagingConfiguration.createServices(Messaging
Configuration.java:202)
        at flex.messaging.config.MessagingConfiguration.configureBroker (Messagin
gConfiguration.java:84)
        at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:10
5)
        at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.
java:1200)
        at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationServ
ice.java:791)
        at jrun.servlet.WebApplicationService.postStart(WebApplicationService.ja
va:293)
        at jrun.deployment.DeployerService.initModules (DeployerService.java:711)

        at jrun.deployment.DeployerService.createWatchedDeployment(DeployerServi
ce.java:242)
        at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
07/06 10:13:43 user FlexSwfServlet: init
        at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerServi
ce.java:179)
        at jrun.deployment.DeployerService.run(DeployerService.java:891)
        at jrunx.scheduler.SchedulerService.invokeRunnable (SchedulerService.java
:230)
        at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
ava:428)
        at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

07/06 10:13:43 user FlexInternalServlet: init
07/06 10:13:43 info Deploying enterprise application "JRun 4.0 Internal J2EE Com
ponents" from: file:/C:/JRun4/lib/jrun-comp.ear
07/06 10:13:44 info Deploying EJB "JRunSQLInvoker" from: file:/C:/JRun4/lib/jrun
-comp.ear
07/06 10:13:44 info Deploying enterprise application "Flash Remoting EAR" from:
file:/C:/JRun4/lib/flashgateway.ear
07/06 10:13:44 info Deploying web application "Flash Remoting" from: file:/C:/JR
un4/lib/flashgateway.ear
07/06 10:13:44 user JSPServlet: init
07/06 10:13:44 user FlashGatewayServlet: init
Server default ready (startup time: 16 seconds)



__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to