You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to HotswapAgent
G'day guys,
I'm new to using Hotswap (configured it today). After following the steps in the Quick Setup guide I tried to start a local Tomcat server and received the following exception:
HOTSWAP AGENT: 10:56:17.448 ERROR (org.hotswap.agent.annotation.handler.OnClassLoadedHandler) - InvocationTargetException in transform method on plugin 'class org.hotswap.agent.plugin.tomcat.TomcatPlugin' class 'org/apache/catalina/loader/WebappClassLoader'. java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.hotswap.agent.annotation.handler.OnClassLoadedHandler.transform(OnClassLoadedHandler.java:157) at org.hotswap.agent.annotation.handler.OnClassLoadedHandler$1.transform(OnClassLoadedHandler.java:76) at org.hotswap.agent.util.HotswapTransformer.transform(HotswapTransformer.java:129) at sun.instrument.TransformerManager.transform(TransformerManager.java:188) at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:428) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:760) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) at java.net.URLClassLoader.access$100(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:368) at java.net.URLClassLoader$1.run(URLClassLoader.java:362) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:361) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.apache.catalina.loader.WebappLoader.<init>(WebappLoader.java:116) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4978) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1096) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1756) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.hotswap.agent.javassist.NotFoundException: getResource(..) is not found in org.apache.catalina.loader.WebappClassLoader at org.hotswap.agent.javassist.CtClassType.getDeclaredMethod(CtClassType.java:1186) at org.hotswap.agent.plugin.tomcat.WebappLoaderTransformer.patchWebappClassLoader(WebappLoaderTransformer.java:188) ... 33 more
After splatting this in the command window, Tomcat then goes on to start up successfully. Everything in the app seems to work.
So is this exception something to worry about? Is Hotswap still operating successfully in the background?
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to HotswapAgent
Hi, it was supported until 8.0.23. There was an internal api change in version 8.0.24, that caused this fail. cheers, Vladimir
Shadab Ambat
unread,
Jan 13, 2016, 5:29:38 PM1/13/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to HotswapAgent
Hi Vladimir just wanted to check if Tomcat 8 was supported now? I downloaded the current dcevm and hotswap agent but getting this exception (using Tomcat 8.28) HOTSWAP AGENT: 17:19:30.576 ERROR (org.hotswap.agent.annotation.handler.OnClassLoadedHandler) - InvocationTargetException in transform method on plugin 'class org.hotswap.agent.plugin.tomcat.TomcatPlugin' class 'org/apache/catalina/webresources/StandardRoot'
Would I need to downgrade to Tomcat 8.0.23 to get it to work?
thanks
Shadab Ambat
unread,
Jan 13, 2016, 10:29:47 PM1/13/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to HotswapAgent
Hmm I tried with Tomcat 8.0.23 but that gave me the same error. It seems to be some other issue with the Hotswap agent I noticed that the original poster was using 8.0.21 as well so they might be seeing a different problem too. Unless none of the Tomcat 8 versions work?
Message has been deleted
vladimir dvorak
unread,
Jan 17, 2016, 1:54:14 AM1/17/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to HotswapAgent
You can use last version from repository (git clone) and build HA by (mvn package). According current (1/2016) stability: plugins that were already in 0.3 are stable.
According new plugins - these are activated only if you use appropriate
framework (GAE, RESTeasy) , so there is no problem if you don't use
them.