RE: Tomcat does not die
are you sure its not one of the pages in your application that makes it hang? /anton -Original Message- From: Walter do Valle [mailto:[EMAIL PROTECTED] Sent: den 3 december 2003 15:02 To: [EMAIL PROTECTED] Subject: Tomcat does not die Hello all I have a Tomcat 4.1 instaled in a Red Hat Linux 7.3 server. My JDK is JDK 1.3.0 from IBM. My Tomcat was instaled from a RPM package downloaded from jakarta project homepage. When it was installed, rpm created a file called tomcat4 in /etc/init.d. I use this script to start and stop my Tomcat. I have chosen that JDK because RPM package waits for JDK 1.3.0 from IBM. All works well. "tomcat4 start" starts Tomcat, "tomcat4 stop" stops Tomcat. But in some moments Tomcat stops responding (hang) then I try use the command "tomcat4 stop" to stop it but it does not work. Tomcat stops to listen his 8080 port but the processes (threads) stay still running (ps -ef). What can I do to solve this problem? Update Tomcat? Update JDK? Any help is welcome
RE: where to put mssqlserver.jar
Hi http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/deployment.html look at the shared library section -Original Message- From: Swapan Mazumdar [mailto:[EMAIL PROTECTED] Sent: den 13 november 2003 11:14 To: '[EMAIL PROTECTED]' Subject: where to put mssqlserver.jar Hi, I am using tomcat4.1. Where I must put mssqlserver.jar to be shared by all web apps. regards Swapan Mazumdar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: help for tomcat
Hello, Put your driver in common/lib configure server.xml with your database's username/password/driverclass/driveruri also look into the stacktrace to know why the exception is thrown. regards /anton -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: den 11 november 2003 17:47 To: [EMAIL PROTECTED] Subject: help for tomcat Dear all, I am university student in sri lanaka. I want to setup tomacat to access to oracle database.I installed oracle 8i database and apache-tomcat5.0.14 in window 2000 server.Both working individually well. I want to connect thro JSP page. What I have to do? Please tell the which file i have to configure. other wise specify the websites. I ran with sample code but it say this error "org.apache.jasper.JasperException" please help me thanks in advance This message was sent using IMP, the Internet Messaging Program. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: better error messages (was re: Exception at Tomcat startup)
What kind of code? =) Like when they happen? I could try to gather some of it. One is: when you e.g. have web xml entries in the wrong order. Then it will say the correct syntax is ... (it's not even very clear it's the order it is compliaining on) and error has been caught on line .. Which is actually just the last line of the web.xml. Now if you have several web.xmls that will be the clue to which one of them it is. other than that you will have to check every aspect of the file to correct the error. 2: another is mentioned by others, the blank space error 3: it should also check what jvm it runs on and warn if its wrong version before crashing. 4: this is a nice one I get recently: (complaining about docBase? solution unpack the war manually) C:\Servers\jakarta-tomcat-5.0.14\bin>catalina run Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CATALINA_TMPDIR: ..\temp Using JAVA_HOME: c:\Java\j2sdk1.4.0_01 2003-nov-11 11:38:03 org.apache.commons.digester.Digester startElement ALLVARLIG: Begin event threw exception java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1476) at java.lang.String.substring(String.java:1443) at org.apache.catalina.startup.SetDocBaseRule.begin(SetDocBaseRule.java:196) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno wn Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown So urce) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.load(Catalina.java:514) at org.apache.catalina.startup.Catalina.load(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396) Catalina.start: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at org.apache.commons.digester.Digester.startElement(Digester.java:1276) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno wn Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown So urce) etc etc etc... regards, anton -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: den 10 november 2003 15:33 To: Tomcat Users List Subject: RE: better error messages (was re: Exception at Tomcat startup) Howdy, >But tomcat should really try to do something about its exceptions. Care to contribute some code? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: specifying web app classpath in server xml?
Oh, ok sorry, I didn't know you were in tomcat team. Well I got my answer here then. Didn't mean to be impolite. As tomcat is the reference implementation, one does want it to do exactly what the specification says and prefereably nothing more or less , so I understand your point. I guess I didn't think of that but more on its suitablality for development purposes. I think I've heard that sun is planning to make its own reference implementation. Will that make any changes to tomcat's agenda? regards, anton -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: den 10 november 2003 15:54 To: Tomcat Users List Subject: RE: specifying web app classpath in server xml? Howdy, >My point was exactly I would rather like an extra classspath in the webapp >context declaration so I could skip the work of building a jar for one >project and copy it (or somehow link it) to the other project's web- >inf/lib. I understood your point, no need to repeat it ;) >When I change in both projects I'd rather tell tomcat to just look a little >extra. So you say the classpath fixed? Am I the only one who want to use >tomcat in this way? how do I suggest this to developers, write to the other >mailing list? You could write the dev list, but I bet you wouldn't even get a response. I'm one of the developers, and we all really dislike this idea, as well ast he idea someone else suggested of mucking the server's global classpath by editing $CATALINA_HOME/bin/setClasspath.sh. The reason is that the servlet specification lays out a well-defined, well-reasoned classloading scheme. Tomcat goes beyond the requirements of the spec by allowing you to plug in a custom classloader which you'd have known if you read the configuration reference for the Loader element in server.xml. Web applications are supposed to be self-contained and independent. Ideally you should just have one packed WAR file containing everything needed by your webapp. Again tomcat goes beyond the spec here by letting you deploy and run from an unpacked WAR file. And further yet by letting you symlink to other directories for your library resources. The longer I'm around the more I think these leniencies just lead to bad development practices and more requests for hacks like you're asking for. Yoav Shapira > >regards, artin > >-Original Message- >From: Shapira, Yoav [mailto:[EMAIL PROTECTED] >Sent: den 6 november 2003 15:11 >To: Tomcat Users List >Subject: RE: specifying web app classpath in server xml? > > > >Howdy, >Can you symlink your WEB-INF/lib/otherProject.jar to the other's >project's build directory? > >You can't declare classpaths in server.xml. The classpath hierarchy is >fixed. > >Yoav Shapira >Millennium ChemInformatics > > >>-Original Message- >>From: Anton Modaresi [mailto:[EMAIL PROTECTED] >>Sent: Thursday, November 06, 2003 5:29 AM >>To: [EMAIL PROTECTED] >>Subject: specifying web app classpath in server xml? >> >>Hi, >>I would like to specify additional classpaths for a web app >>beside the WEB-INF/lib WEB-INF/classes and common/lib directories. >> >>My reason is I have a project using code from another project. >>In a production environment you would jar the classes from the >>used project and put it in the WEb-INF/lib of the other >> >>but in development, where both projects may be updated all the time, >>I'd prefer to skip the extra overhead of either jaring all files, >>or recompile the classes a second time to the WEB-INF/classes of >>the taget project.. >> >>So I am wondering, is there a way, I can say in my server.xml, >>hey please go and check in this additional classpath too for this >>particular web app. is this possible? >> >>(Im using tomcat 5.0.7) > > > >This e-mail, including any attachments, is a confidential business >communication, and may contain information that is confidential, >proprietary >and/or privileged. This e-mail is intended only for the individual(s) to >whom it is addressed, and may not be saved, copied, printed, disclosed or >used by anyone else. If you are not the(an) intended recipient, please >immediately delete this e-mail from your computer system and notify the >sender. Thank you. > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, an
RE: specifying web app classpath in server xml?
thanks both. I see what I can do =) -Original Message- From: Rodrigo Ruiz [mailto:[EMAIL PROTECTED] Sent: den 7 november 2003 17:47 To: Tomcat Users List Subject: Re: specifying web app classpath in server xml? In server.xml you can specify an alternative class loader for your context webapp (see configuration reference on the tomcat docs). You will have to dig into the Tomcat code, but you may create a subclass of the default class (or use it as a template), and add some mechanisms to include extra directories at the same level as WEB-INF/lib. You could, for example, make it use a system property, or add xml properties for configuring it from server.xml A bit advanced, and very non-standard, but it may work for your development environment :-) Curtis Leach wrote: >I haven't tried this to see if it works, but you can always edit the >catalina.sh or setclasspath.sh files. It's where CLASSPATH is reset during >the Tomcat startup. (Or .bat for windows) > >Curtis > >-----Original Message- >From: Anton Modaresi [mailto:[EMAIL PROTECTED] >Sent: Friday, November 07, 2003 9:31 AM >To: 'Tomcat Users List' >Subject: RE: specifying web app classpath in server xml? > > >My point was exactly I would rather like an extra classspath in the webapp >context declaration so I could skip the work of building a jar for one >project and copy it (or somehow link it) to the other project's web-inf/lib. > >When I change in both projects I'd rather tell tomcat to just look a little >extra. So you say the classpath fixed? Am I the only one who want to use >tomcat in this way? how do I suggest this to developers, write to the other >mailing list? > >regards, artin > >-Original Message- >From: Shapira, Yoav [mailto:[EMAIL PROTECTED] >Sent: den 6 november 2003 15:11 >To: Tomcat Users List >Subject: RE: specifying web app classpath in server xml? > > > >Howdy, >Can you symlink your WEB-INF/lib/otherProject.jar to the other's >project's build directory? > >You can't declare classpaths in server.xml. The classpath hierarchy is >fixed. > >Yoav Shapira >Millennium ChemInformatics > > > > >>-Original Message- >>From: Anton Modaresi [mailto:[EMAIL PROTECTED] >>Sent: Thursday, November 06, 2003 5:29 AM >>To: [EMAIL PROTECTED] >>Subject: specifying web app classpath in server xml? >> >>Hi, >>I would like to specify additional classpaths for a web app >>beside the WEB-INF/lib WEB-INF/classes and common/lib directories. >> >>My reason is I have a project using code from another project. >>In a production environment you would jar the classes from the >>used project and put it in the WEb-INF/lib of the other >> >>but in development, where both projects may be updated all the time, >>I'd prefer to skip the extra overhead of either jaring all files, >>or recompile the classes a second time to the WEB-INF/classes of >>the taget project.. >> >>So I am wondering, is there a way, I can say in my server.xml, >>hey please go and check in this additional classpath too for this >>particular web app. is this possible? >> >>(Im using tomcat 5.0.7) >> >> > > > >This e-mail, including any attachments, is a confidential business >communication, and may contain information that is confidential, proprietary >and/or privileged. This e-mail is intended only for the individual(s) to >whom it is addressed, and may not be saved, copied, printed, disclosed or >used by anyone else. If you are not the(an) intended recipient, please >immediately delete this e-mail from your computer system and notify the >sender. Thank you. > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: error-page redirection
I think you should compile your application with debug information, that way you can see what line in your application causes it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: den 7 november 2003 15:58 To: [EMAIL PROTECTED] Subject: error-page redirection Hello everyone, I am trying to display an error page if user enters a wrong number. The number has to be between 1 an d 10. I get following error: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception LuckyException at LuckyNumber1Servlet.validate_number(Unknown Source) at LuckyNumber1Servlet.doGet(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) Folks, I tried various ways to fix this issue. spent many hours searching thru books and internet, but could not find a way out. Can someone please point out the bug here? Thanks Raju Lokhande * Here is my servlet code: import java.io.*; import java.util.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; /** * This is a simple example of an HTTP Servlet. It responds to the GET * method of the HTTP protocol. */ public class LuckyNumber1Servlet extends HttpServlet { private int inp_int; public void init() throws ServletException { ServletContext servletContext = getServletContext(); servletContext.setAttribute("ServletTotal", new Integer(0)); } // end of init public void validate_number(String in_str) throws LuckyException { inp_int = Integer.parseInt( in_str ); if ( inp_int < 1 || inp_int > 10 ) throw new LuckyException(); } public void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); response.setBufferSize(8192); PrintWriter out = response.getWriter(); // then write the data of the response out.println("" + "Hello"); // then write the data of the response out.println("" + "" + "My lucky number is 7. What's yours?" + "" + "" + "" + "" + "" + ""); String lnumber = request.getParameter("lnumber"); Integer SessionTotal; int temp_int; if ( lnumber != null && lnumber.length() > 0 ) { try { validate_number( lnumber ); } catch ( LuckyException not_ignored) { response.resetBuffer(); throw new ServletException( not_ignored ) ; } HttpSession session = request.getSession( true ); synchronized(session) { SessionTotal = (Integer) session.getAttribute ( "SessionTotal"); if ( SessionTotal == null ) SessionTotal = new Integer(0); temp_int = SessionTotal.intValue() ; int temp_count = temp_int + Integer.parseInt( lnumber); Integer temp_integer = new Integer( temp_count); session.setAttribute ( "SessionTotal", temp_integer ); } ServletContext servletContext = getServletContext (); Integer ServletTotal = (Integer) servletContext.getAttribute ("ServletTotal"); if ( ServletTotal == null ) ServletTotal = new Integer( 0 ); int temp_int2 = ServletTotal.intValue() ; int temp_count2 = temp_int2 + Integer.parseInt( lnumber); Integer temp_integer2 = new Integer( temp_count2 ); servletContext.setAttribute("ServletTotal", temp_integer2); RequestDispatcher dispatcher = getServletContext().getRequestDispatcher ("/lucky2"); if (dispatcher != null) dispatcher.include(request, response); } out.println(""); out.close(); } // end of doGet(). public String getServletInfo() { return "The LuckyNumber1Servlet servlet types a number."; } } // end of class LuckyNumber1Servlet *LuckyException.java *** import javax.servlet.*; public class LuckyException
better error messages (was re: Exception at Tomcat startup)
But tomcat should really try to do something about its exceptions. the error messages if existent at all besides merely an exception, leave lots to wish for. Especially the xml parsers that not even say what xml file is being parsed (like ok its probably a web.xml but which one?), let alone where in there the problem is. I would say it's a blocker for next stable release! :p *my opinion* -Original Message- From: Schalk [mailto:[EMAIL PROTECTED] Sent: den 8 november 2003 02:26 To: 'Tomcat Users List' Subject: RE: Exception at Tomcat startup Het there You may want to have a look at this line in your web.xml: Child name 'ControlSer vlet' is not unique It seems that is should say ControlServlet and not ControlSer vlet Kind Regards Schalk Neethling Web Developer.Designer.Programmer.CEO Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or diclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. :: -Original Message- :: From: Rishikesh Tembe [mailto:[EMAIL PROTECTED] :: Sent: Saturday, November 08, 2003 3:09 AM :: To: [EMAIL PROTECTED] :: Subject: Exception at Tomcat startup :: :: Hi experts, :: :: This is the display I get when I start up Tomcat v4.1.27. As you can see :: an InvocationTargetException gets thrown. I did not make any changes :: anywhere. What could be the cause? :: Is this a known bug? I couldn't find a similar bug in BugZilla... :: :: --- :: Nov 7, 2003 4:51:28 PM org.apache.commons.modeler.Registry loadRegistry :: INFO: Loading registry information :: Nov 7, 2003 4:51:29 PM org.apache.commons.modeler.Registry getRegistry :: INFO: Creating new Registry instance :: Nov 7, 2003 4:51:30 PM org.apache.commons.modeler.Registry getServer :: INFO: Creating MBeanServer :: Nov 7, 2003 4:51:32 PM org.apache.coyote.http11.Http11Protocol init :: INFO: Initializing Coyote HTTP/1.1 on port 8080 :: Starting service Tomcat-Standalone :: Apache Tomcat/4.1.27 :: Nov 7, 2003 4:51:35 PM org.apache.commons.digester.Digester endElement :: SEVERE: End event threw exception :: java.lang.reflect.InvocationTargetException :: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) :: at :: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. :: java:39) :: at :: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces :: sorImpl.java:25) :: at java.lang.reflect.Method.invoke(Method.java:324) :: at :: org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.jav :: a:252) :: at :: org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256) :: at org.apache.commons.digester.Rule.end(Rule.java:276) :: at :: org.apache.commons.digester.Digester.endElement(Digester.java:1058) :: at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown :: Source :: ) :: at :: org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown :: Source) :: at :: org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown :: S :: ource) :: at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown :: Source) :: :: at :: org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement( :: Unknown Source) :: at :: org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent :: Dispatcher.dispatch(Unknown Source) :: at :: org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un :: known Source) :: at org.apache.xerces.parsers.XML11Configuration.parse(Unknown :: Source) :: at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown :: Source) :: at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) :: at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown :: Source) :: at org.apache.commons.digester.Digester.parse(Digester.java:1548) :: at :: org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo :: nfig.java:282) :: at :: org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63 :: 9) :: at :: org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi :: g.java:243) :: at :: org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl :: eSupport.java:166) :: at :: org.apache.catalina.core.StandardContext.start(StandardContext.java:3 :: 568) :: at :: org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) :: :: at :: org.apache.catalina.core.StandardHost.start(StandardHost.java:738) :: at :: org.apache.catal
RE: response.sendRedirect()
you do not lose your session, but you create a new request. /anton -Original Message- From: Duncan [mailto:[EMAIL PROTECTED] Sent: den 7 november 2003 17:36 To: Tomcat User List Subject: response.sendRedirect() Is it normal to loose your session when using the response.sendRedirect() command? If so is there a way to redirect without loosing the session? Cheers, Duncan. Decker Telecom Ltd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat crash
do you get an exception in the console window? If the tomcat window vanishes, you can try starting with the catalina batch file instead of the startup batch file. regards, anton -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: den 7 november 2003 16:34 To: [EMAIL PROTECTED] Subject: Tomcat crash Hello, I'm new to Tomcat and Apache so I'm wasting a lot of time trying to understand why Tomcat sometimes shutdown by itself or better it crash This happen without messages in the log file . can someone have some experience in that solved the problem ? Thanks to all. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: specifying web app classpath in server xml?
My point was exactly I would rather like an extra classspath in the webapp context declaration so I could skip the work of building a jar for one project and copy it (or somehow link it) to the other project's web-inf/lib. When I change in both projects I'd rather tell tomcat to just look a little extra. So you say the classpath fixed? Am I the only one who want to use tomcat in this way? how do I suggest this to developers, write to the other mailing list? regards, artin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: den 6 november 2003 15:11 To: Tomcat Users List Subject: RE: specifying web app classpath in server xml? Howdy, Can you symlink your WEB-INF/lib/otherProject.jar to the other's project's build directory? You can't declare classpaths in server.xml. The classpath hierarchy is fixed. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Anton Modaresi [mailto:[EMAIL PROTECTED] >Sent: Thursday, November 06, 2003 5:29 AM >To: [EMAIL PROTECTED] >Subject: specifying web app classpath in server xml? > >Hi, >I would like to specify additional classpaths for a web app >beside the WEB-INF/lib WEB-INF/classes and common/lib directories. > >My reason is I have a project using code from another project. >In a production environment you would jar the classes from the >used project and put it in the WEb-INF/lib of the other > >but in development, where both projects may be updated all the time, >I'd prefer to skip the extra overhead of either jaring all files, >or recompile the classes a second time to the WEB-INF/classes of >the taget project.. > >So I am wondering, is there a way, I can say in my server.xml, >hey please go and check in this additional classpath too for this >particular web app. is this possible? > >(Im using tomcat 5.0.7) This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
specifying web app classpath in server xml?
Hi, I would like to specify additional classpaths for a web app beside the WEB-INF/lib WEB-INF/classes and common/lib directories. My reason is I have a project using code from another project. In a production environment you would jar the classes from the used project and put it in the WEb-INF/lib of the other but in development, where both projects may be updated all the time, I'd prefer to skip the extra overhead of either jaring all files, or recompile the classes a second time to the WEB-INF/classes of the taget project.. So I am wondering, is there a way, I can say in my server.xml, hey please go and check in this additional classpath too for this particular web app. is this possible?
RE: specifying web app classpath in server xml?
thanks for telling me about the shared/lib folder. I dont know how to make virtual folders either. You can share a folder, but you cant link it in an already existent folder tree as far as I know. -Original Message- From: Francois JEANMOUGIN [mailto:[EMAIL PROTECTED] Sent: den 6 november 2003 11:53 To: Tomcat Users List Subject: RE: specifying web app classpath in server xml? No, I mean that shared/lib is empty, so, I don't know w2k well but I think you could call it a vdir pointing to the other team libs. > -Message d'origine- > De : Anton Modaresi [mailto:[EMAIL PROTECTED] > Envoyé : jeudi 6 novembre 2003 11:40 > À : 'Tomcat Users List' > Objet : RE: specifying web app classpath in server xml? > > Thanks for the reply. > You mean its possible to map several directories to one (the lib > folder) in > unix? > We are using windows 2000 machines however, no can do :( > > -Original Message- > From: Francois JEANMOUGIN > [mailto:[EMAIL PROTECTED] > Sent: den 6 november 2003 11:37 > To: Tomcat Users List > Subject: RE: specifying web app classpath in server xml? > > > I don't know what system you are using and how you are working with > the > other team. I would share the shared directory (via NFS on UNIX). > > François. > > > Hi, > > but in development, where both projects may be updated all the time, > > I'd prefer to skip the extra overhead of either jaring all files, > > or recompile the classes a second time to the WEB-INF/classes of > > the taget project.. > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: specifying web app classpath in server xml?
Thanks for the reply. You mean its possible to map several directories to one (the lib folder) in unix? We are using windows 2000 machines however, no can do :( -Original Message- From: Francois JEANMOUGIN [mailto:[EMAIL PROTECTED] Sent: den 6 november 2003 11:37 To: Tomcat Users List Subject: RE: specifying web app classpath in server xml? I don't know what system you are using and how you are working with the other team. I would share the shared directory (via NFS on UNIX). François. > Hi, > but in development, where both projects may be updated all the time, > I'd prefer to skip the extra overhead of either jaring all files, > or recompile the classes a second time to the WEB-INF/classes of > the taget project.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
specifying web app classpath in server xml?
Hi, I would like to specify additional classpaths for a web app beside the WEB-INF/lib WEB-INF/classes and common/lib directories. My reason is I have a project using code from another project. In a production environment you would jar the classes from the used project and put it in the WEb-INF/lib of the other but in development, where both projects may be updated all the time, I'd prefer to skip the extra overhead of either jaring all files, or recompile the classes a second time to the WEB-INF/classes of the taget project.. So I am wondering, is there a way, I can say in my server.xml, hey please go and check in this additional classpath too for this particular web app. is this possible? (Im using tomcat 5.0.7)