Hi Charles, thanks for suggestion. Sorry for my translation if you missed something in my previous post.
I added three jars in my C:\Tomcat6\conf\Catalina\localhost\Alfresco.xml (alfresco is my webapp): <Context> <WatchedResource>WEB-INF/lib/myClasses.jar</WatchedResource> <WatchedResource>WEB-INF/lib/myClasses1.jar</WatchedResource> <WatchedResource>WEB-INF/lib/myClasses2.jar</WatchedResource> .... </Context> but when I export modified jar from eclipse tomcat fails reloading and stop with error: Caused by: org.springframework.beans.factory.BeanCreationException: Error creati ng bean with name 'transactionService' defined in class path resource [alfresco/ core-services-context.xml]: Instantiation of bean failed; nested exception is ja va.lang.ExceptionInInitializerError Caused by: java.lang.ExceptionInInitializerError 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:513) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:8 5) at org.springframework.beans.factory.support.SimpleInstantiationStrategy .instantiate(SimpleInstantiationStrategy.java:61) at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.instantiateBean(AbstractAutowireCapableBeanFactory.java:757) at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:722) at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.createBean(AbstractAutowireCapableBeanFactory.java:386) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb ject(AbstractBeanFactory.java:249) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr y.getSingleton(DefaultSingletonBeanRegistry.java:155) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:246) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.BeanDefinitionValueResolver ecc... Any suggestion? Anyway thanks for help! :-) Caldarale, Charles R wrote: > >> From: Nowhere [mailto:spina.r...@gmail.com] >> Subject: Tomcat restart and jar >> >> I have a very stuoid question, but I'm bored by it... > > We'll assume something has been lost in translation here... > >> Can't I avoid restarting and having tomcat seeing changing? > > Create a <WatchedResource> element inside the <Context> element of your > webapp; the value should be the path to the .jar you're constantly > updating, relative to the base of the webapp. For example: > > <Context ...> > <WatchedResource>WEB-INF/lib/myClasses.jar</WatchedResource> > </Context> > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you > received this in error, please contact the sender and delete the e-mail > and its attachments from all computers. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://www.nabble.com/Tomcat-restart-and-jar-tp23990248p23994515.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org