|
From: peter e. <pet...@go...> - 2006-11-27 10:50:01
|
Regarding your reply: Peter, The Wrapper works with classpaths in exactly the same way as Java does. It just makes it easier to build them up. When you add jar files, you add their names to the classpath, but for unarchived directories (ie your files) you need to add the root directory of that directory hierarchy. The wrapper also supports wildcards, so you can simplify your configuration. So try this: wrapper.java.classpath.1=../conf wrapper.java.classpath.2=../libs/*.jar Cheers, Leif I have used the following variations: wrapper.java.classpath.1=../conf and wrapper.java.classpath.1=/usr/local/xmlserver/conf and neither work as i get the following.... jvm 1 | Error in WrapperListener.start callback. org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [applicationContext-monitor.xml]; nested exception is java.io.FileNotFoundException: class path resource [applicationContext-monitor.xml] cannot be opened because it does not exist jvm 1 | org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [applicationContext-monitor.xml]; nested exception is java.io.FileNotFoundException: class path resource [applicationContext-monitor.xml] cannot be opened because it does not exist jvm 1 | java.io.FileNotFoundException: class path resource [applicationContext-monitor.xml] cannot be opened because it does not exist jvm 1 | at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:137) note that my project is built using Spring so i require the applicationContext.xml I have go this working previously however i had to copy all xml files to my bin dir which is where i run wrapper -c xmlserver.conf On 11/24/06, wra...@li... <wra...@li...> wrote: > Send Wrapper-user mailing list submissions to > wra...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/wrapper-user > or, via email, send a message with subject or body 'help' to > wra...@li... > > You can reach the person managing the list at > wra...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Wrapper-user digest..." > > > Today's Topics: > > 1. classpath problem (peter ellis) > 2. Re: classpath problem (Leif Mortenson) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 24 Nov 2006 17:21:39 +0000 > From: "peter ellis" <pet...@go...> > Subject: [Wrapper-user] classpath problem > To: wra...@li... > Message-ID: > <470...@ma...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi guys > > Ive got a problem with my wrapper.conf when i specify for example: > > > wrapper.java.classpath.1=../conf/applicationContext-monitor.xml > ... > wrapper.java.classpath.20=../libs/wrapper.jar > wrapper.java.classpath.21=../libs/activation.jar > > it can find the jars which is ok but when it attempts to find anything > like an xml document (i.e. my spring stuff) or a properties file then > it complains. > > Any ideas?! > > > > -- > Peter Ellis > Java Developer > > > > ------------------------------ > > Message: 2 > Date: Sat, 25 Nov 2006 03:30:38 +0900 > From: Leif Mortenson <le...@ta...> > Subject: Re: [Wrapper-user] classpath problem > To: wra...@li... > Message-ID: <456...@ta...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Peter, > The Wrapper works with classpaths in exactly the same way as Java does. > It just > makes it easier to build them up. When you add jar files, you add > their names to > the classpath, but for unarchived directories (ie your files) you need > to add the > root directory of that directory hierarchy. > > The wrapper also supports wildcards, so you can simplify your configuration. > > So try this: > wrapper.java.classpath.1=../conf > wrapper.java.classpath.2=../libs/*.jar > > Cheers, > Leif > > peter ellis wrote: > > Hi guys > > > > Ive got a problem with my wrapper.conf when i specify for example: > > > > > > wrapper.java.classpath.1=../conf/applicationContext-monitor.xml > > ... > > wrapper.java.classpath.20=../libs/wrapper.jar > > wrapper.java.classpath.21=../libs/activation.jar > > > > it can find the jars which is ok but when it attempts to find anything > > like an xml document (i.e. my spring stuff) or a properties file then > > it complains. > > > > Any ideas?! > > > > > > > > > > > > > ------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ------------------------------ > > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > End of Wrapper-user Digest, Vol 6, Issue 16 > ******************************************* > -- Peter Ellis Java Developer |