Updateing to 4.2.1.000 from 4.04.001 - java class loader error?

36 views
Skip to first unread message

rushglen

unread,
May 27, 2014, 5:30:54 PM5/27/14
to ra...@googlegroups.com
On Windows - jetty, updated through administator got this error on start up, luckily all I had to do to get it working again was to remove this latest patch and it worked again - phew!

Im updating primarily because I need EncryptBinary() (IVorSalt) which came available in 4.1.....

any suggestions?

java.lang.NoClassDefFoundError: railo/runtime/gateway/GatewayEngine
        at railo.runtime.gateway.CFCGateway.init(CFCGateway.java:30)
        at railo.runtime.gateway.GatewayEntryImpl.createGateway(GatewayEntryImpl
.java:64)
        at railo.runtime.gateway.GatewayEngineImpl.load(GatewayEngineImpl.java:8
2)
        at railo.runtime.gateway.GatewayEngineImpl.addEntry(GatewayEngineImpl.ja
va:69)
        at railo.runtime.gateway.GatewayEngineImpl.addEntries(GatewayEngineImpl.
java:58)
        at railo.runtime.config.ConfigWebImpl.setGatewayEntries(ConfigWebImpl.ja
va:317)
        at railo.runtime.config.ConfigWebFactory.loadGateway(ConfigWebFactory.ja
va:2169)
        at railo.runtime.config.ConfigWebFactory.loadGatewayEL(ConfigWebFactory.
java:2125)
        at railo.runtime.config.ConfigWebFactory.load(ConfigWebFactory.java:375)

        at railo.runtime.config.ConfigWebFactory.newInstance(ConfigWebFactory.ja
va:251)
        at railo.runtime.engine.CFMLEngineImpl.loadJSPFactory(CFMLEngineImpl.jav
a:202)
        at railo.runtime.engine.CFMLEngineImpl.addServletConfig(CFMLEngineImpl.j
ava:159)
        at railo.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.j
ava:80)
        at railo.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.j
ava:132)
        at railo.loader.servlet.CFMLServlet.init(CFMLServlet.java:23)
        at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.jav
a:519)
        at org.eclipse.jetty.servlet.ServletHolder.doStart(ServletHolder.java:33
1)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:64)
        at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.ja
va:742)
        at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletC
ontextHandler.java:265)
        at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.jav
a:1250)
        at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandle
r.java:710)
        at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492
)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:64)
        at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(Stan
dardStarter.java:39)
        at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:1
86)
        at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentM
anager.java:494)
        at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.j
ava:141)
        at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(Scan
ningAppProvider.java:145)
        at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(Sc
anningAppProvider.java:56)
        at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:609)
        at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:540)
        at org.eclipse.jetty.util.Scanner.scan(Scanner.java:403)
        at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:337)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:64)
        at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(Scanni
ngAppProvider.java:121)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:64)
        at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(Deploymen
tManager.java:555)
        at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.
java:230)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:64)
        at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(Aggregate
LifeCycle.java:81)
        at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHand
ler.java:58)
        at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrappe
r.java:96)
        at org.eclipse.jetty.server.Server.doStart(Server.java:280)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:64)
        at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:12
59)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:118
2)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.jetty.start.Main.invokeMain(Main.java:473)
        at org.eclipse.jetty.start.Main.start(Main.java:615)
        at org.eclipse.jetty.start.Main.main(Main.java:96)
Caused by: java.lang.ClassNotFoundException: railo.runtime.gateway.GatewayEngine

        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at railo.loader.classloader.RailoClassLoader.loadClass(RailoClassLoader.
java:155)
        at railo.loader.classloader.RailoClassLoader.loadClass(RailoClassLoader.
java:120)
        ... 55 more
Tue May 27 15:11:49 MDT 2014-263 class railo.runtime.instrumentation.Agent.getIn
strumentation() is not returning a Instrumentation

Igal @ getRailo.org

unread,
May 27, 2014, 5:33:07 PM5/27/14
to ra...@googlegroups.com
hmm...  I think that to upgrade from 4.0.x to 4.1.x+ you need to replace your railo.jar and updating from the Admin is not enough.
--
Did you find this reply useful? Help the Railo community and add it to the Railo Server wiki at https://github.com/getrailo/railo/wiki
---
You received this message because you are subscribed to the Google Groups "Railo" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/railo/0b65b7c3-deb7-4170-87d4-0002f275e80d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
Igal Sapir
Railo Core Developer
http://getRailo.org/

rushglen

unread,
May 28, 2014, 1:48:59 AM5/28/14
to ra...@googlegroups.com
thanks Igal, that was the answer!

had a couple of issues... compared to 4.04.001,
I have a
aws-java-sdk-1.0.002.jar that usually resides in the lib directory but it could not find it until I moved it to lib/ext..strange because under 4.04 it worked in lib/.

The 2nd problem I found a "hack" to get round - I'm going to stat another thread on that one.

Andrew.
Reply all
Reply to author
Forward
0 new messages