load-on-startup tag problem
hello, i try to run 2 servlets on the starting of tomcat 4.0.3. i use this portion of xml code in my web.xml file : servlet servlet-nameOdataJDOinitializer/servlet-name servlet-classlds.odata.web.servlets.OdataJDOinitializer/servlet-class load-on-startup1/load-on-startup /servlet servlet servlet-nameOdataJDBCinitializer/servlet-name servlet-classlds.odata.web.servlets.OdataJDBCinitializer/servlet-class load-on-startup2/load-on-startup /servlet i don't understand why but just the servlet calling OdataJDBCinitializer is launch. is someone could help me ? Patrick PIERRA Linedata Services Luxembourg 00 352 29 56 65 282 [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
problem with ressources and/or class loader
hello, i use tomcat 4.0.3 with an external API (JDO libelis implementation). If i put the API jar files in the WEB-INF/lib directory of my Web appliaction, the API classes can't open a properties file : javax.jdo.JDOFatalDataStoreException: DataSource initialization error NestedThrowables: javax.jdo.JDOFatalUserException: Unable to open dictionary.properties file at com.libelis.lido.ds.jdbc.b.do(JdbcContext.java:36) at com.libelis.lido.ds.jdbc.b.init(JdbcContext.java:28) at com.libelis.lido.ds.jdbc.d.init(JdbcStorage.java:38) at com.libelis.lido.ds.jdbc.JdbcFactory.if(JdbcFactory.java:16) at com.libelis.lido.a.init(PersistenceManagerImpl.java:40) at com.libelis.lido.PersistenceManagerFactory$a.a(PersistenceManagerFactory.java:454) at com.libelis.lido.internal.h.b.a(TrivialPool.java:25) at com.libelis.lido.PersistenceManagerFactory$a.init(PersistenceManagerFactory.java:450) at com.libelis.lido.PersistenceManagerFactory.i(PersistenceManagerFactory.java:88) at com.libelis.lido.PersistenceManagerFactory.getPersistenceManager(PersistenceManagerFactory.java:71) at lds.osl.jdo.JDOContextFactory.getCurrentPersistenceManager(JDOContextFactory.java:87) at lds.osl.jdo.JDOContextFactory.initialize(JDOContextFactory.java:135) at lds.osl.jdo.JDOInstaller.initialize(JDOInstaller.java:87) at lds.odata.web.servlets.OdataJDOinitializer.init(OdataJDOinitializer.java:48) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808) if i put the API jar in the CATALINA_HOME/common/lib directory, the API classes can't find or load ? my businness classes that i have put in the WEB-INF/classes directory of my Web application : javax.jdo.JDOFatalUserException: There's something wrong in the enhanced classes check enhanced class lds.ecm.actor.Post alAddress NestedThrowables: javax.jdo.JDOFatalUserException: Can't locate the lds.ecm.actor.PostalAddress class at com.libelis.lido.metadata.a.a.a(RTMetadataProcessor.java:32) at com.libelis.lido.PersistenceManagerFactory.e(PersistenceManagerFactory.java:96) at com.libelis.lido.PersistenceManagerFactory.i(PersistenceManagerFactory.java:86) at com.libelis.lido.PersistenceManagerFactory.getPersistenceManager(PersistenceManagerFactory.java:71) at lds.osl.jdo.JDOContextFactory.getCurrentPersistenceManager(JDOContextFactory.java:87) at lds.osl.jdo.JDOContextFactory.initialize(JDOContextFactory.java:135) at lds.osl.jdo.JDOInstaller.initialize(JDOInstaller.java:87) at lds.odata.web.servlets.OdataJDOinitializer.init(OdataJDOinitializer.java:48) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3395) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454) I think it's a problem of class loading but i don't know how to resolve this problem Patrick PIERRA Linedata Services Luxembourg 00 352 29 56 65 282 [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
classpath problem
hello, Tomcat 4.0 can't find my classes and my associated resources that are in the Web-inf/lib directory of my Web application. When i set the classpath dynnamically in the catalina.bat for example, Tomcat can'find the HttpServlet.class I can't understand why i have this kind of problem because i believed that Tomcat load automatically the jar file that is put in the Web-inf directory of a web application !!! Patrick PIERRA Linedata Services Luxembourg 00 352 29 56 65 282 [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: classpath problem
When i put WEB-INF instead Web-inf windows reformat the name into Web-inf. Please note that the name Web-inf was created by Tomcat when i deploy the WAR. Patrick PIERRA Linedata Services Luxembourg 00 352 29 56 65 282 [EMAIL PROTECTED] Phillip Morelock subscriptions@phillipmorTo: Tomcat Users List [EMAIL PROTECTED] elock.com cc: Subject: Re: classpath problem 06/03/02 10:23 AM Please respond to Tomcat Users List WEB-INF is case sensitive. can't be Web-inf does this make a difference? fillup On 6/3/02 1:16 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hello, Tomcat 4.0 can't find my classes and my associated resources that are in the Web-inf/lib directory of my Web application. When i set the classpath dynnamically in the catalina.bat for example, Tomcat can'find the HttpServlet.class I can't understand why i have this kind of problem because i believed that Tomcat load automatically the jar file that is put in the Web-inf directory of a web application !!! Patrick PIERRA Linedata Services Luxembourg 00 352 29 56 65 282 [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Class org/w3c/dom/NodeList violates loader constraints
hello, i have a class which try to load an xml file on the startup of tomcat 4.0. i receive this error : if someone could help me to resolve it ? java.lang.LinkageError: Class org/w3c/dom/NodeList violates loader constraints at lds.odata.web.dataconnectivity.JDBC_OdataConnection.initConnectionParameters(JDBC_OdataConnection.java:126) at lds.odata.web.dataconnectivity.JDBC_OdataConnection.proceedConnection(JDBC_OdataConnection.java:153) at lds.odata.web.servlets.OdataJDBCinitializer.init(OdataJDBCinitializer.java:50) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.catalina.core.StandardWrapper.load(Unknown Source) at org.apache.catalina.core.StandardContext.loadOnStartup(Unknown Source) at org.apache.catalina.core.StandardContext.start(Unknown Source) at org.apache.catalina.core.ContainerBase.addChild(Unknown Source) at org.apache.catalina.core.StandardHost.addChild(Unknown Source) at org.apache.catalina.core.StandardHost.install(Unknown Source) at org.apache.catalina.startup.HostConfig.deployApps(Unknown Source) at org.apache.catalina.startup.HostConfig.start(Unknown Source) at org.apache.catalina.startup.HostConfig.lifecycleEvent(Unknown Source) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown Source) at org.apache.catalina.core.ContainerBase.start(Unknown Source) at org.apache.catalina.core.ContainerBase.start(Unknown Source) at org.apache.catalina.core.StandardEngine.start(Unknown Source) at org.apache.catalina.core.StandardService.start(Unknown Source) at org.apache.catalina.core.StandardServer.start(Unknown Source) at org.apache.catalina.startup.Catalina.start(Unknown Source) at org.apache.catalina.startup.Catalina.execute(Unknown Source) at org.apache.catalina.startup.Catalina.process(Unknown Source) 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.main(Unknown Source) Patrick PIERRA Linedata Services Luxembourg 00 352 29 56 65 282 [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
old load-on-startup tag
hello ! i try to use tomcat 4.0. I have an aplication which run on tomcat 3.2.4 but i have a problem with tomcat 4.0. It seems that tomcat 4.0 can't understand the tag : load-on-startup1/load-on-startup in the web.xml file. Could you say me how can i replace this tag to obtain the same result in tomcat 4.0... Patrick PIERRA Linedata Services Luxembourg 00 352 29 56 65 282 [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: old load-on-startup tag
hi, with your suggestion : load-on-startup/load-on-startup without number i get the error : PARSE error at line 154 column -1 org.xml.sax.SAXParseException: Element servlet-mapping allows no further input; load-on-startup is not allowed. when i try to run tomcat with a load-on-startup tag with a number, i don't get any error message because tomcat simply crash here is the concerned part of my web.xml file : servlet servlet-nameOdataJDOinitializer/servlet-name servlet-classlds.odata.web.servlets.OdataJDOinitializer/servlet-class load-on-startup1/load-on-startup /servlet regards, Patrick PIERRA Linedata Services Luxembourg 00 352 29 56 65 282 [EMAIL PROTECTED] Shapira, YoavTo: Tomcat Users List [EMAIL PROTECTED] Yoav.Shapiracc: @mpi.comSubject: RE: old load-on-startup tag 05/31/02 03:00 PM Please respond to Tomcat Users List Hi, Hmm... That should work. Can you send the actual error message from tomcat parsing web.xml? Meanwhile, try just load-on-startup/load-on-startup without a number. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 8:38 AM To: [EMAIL PROTECTED] Subject: old load-on-startup tag hello ! i try to use tomcat 4.0. I have an aplication which run on tomcat 3.2.4 but i have a problem with tomcat 4.0. It seems that tomcat 4.0 can't understand the tag : load-on-startup1/load-on-startup in the web.xml file. Could you say me how can i replace this tag to obtain the same result in tomcat 4.0... Patrick PIERRA Linedata Services Luxembourg 00 352 29 56 65 282 [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: old load-on-startup tag
ok that's help me.. i have another problem. Tomcat crash probably because i have a problem with the servlet which is loaded on startup. The problem is that i can see the trace of the error because the DOS window is closed automatically. How can i change this behaviour ? Patrick PIERRA Linedata Services Luxembourg 00 352 29 56 65 282 [EMAIL PROTECTED] Shapira, YoavTo: Tomcat Users List [EMAIL PROTECTED] Yoav.Shapiracc: @mpi.comSubject: RE: old load-on-startup tag 05/31/02 03:42 PM Please respond to Tomcat Users List Howdy, PARSE error at line 154 column -1 org.xml.sax.SAXParseException: Element servlet-mapping allows no further input; load-on-startup is not allowed. This suggests your put the load-on-startup tag inside a servlet-mapping element. It goes inside the servlet element, not servlet-mapping. See the Servlet Spec (v2.3 for tomcat 4.x) for details... Does that help? Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: old load-on-startup tag
ok i can see the trace of error with your first solution catalina run the problem is : java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet is because all my servlets extends this class. That's work with tomcat 3.2.4 but not with tomcat 4.0. I think that's because tomcat 4.0 implements servlet 2.3 spec. The problem is that i use a test environnement (tomcat 3.2) in visual age. Can i found a test environnement that implements the new servlet 2.3 implementation ? Patrick PIERRA Linedata Services Luxembourg 00 352 29 56 65 282 [EMAIL PROTECTED] John Niven John.Niven@mTo: 'Tomcat Users List' [EMAIL PROTECTED] arcat.com cc: Subject: RE: old load-on-startup tag 05/31/02 04:02 PM Please respond to Tomcat Users List -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 31 May 2002 14:49 To: Tomcat Users List Subject: RE: old load-on-startup tag ok that's help me.. i have another problem. Tomcat crash probably because i have a problem with the servlet which is loaded on startup. The problem is that i can see the trace of the error because the DOS window is closed automatically. How can i change this behaviour ? Patrick Two options: 1. Open up a DOS window (_DON'T_ double-click on startup.bat). Change directory (CD) to $CATALINA_HOME/bin. Type catalina run. Tomcat will run as normal, but the DOS window won't disappear when Tomcat crashes. 2. Install Tomcat as an NT service (check the archives - there are numerous posts on how to do this). The messages you'd normally get in the DOS window will now be logged to $CATALINA_HOME/logs/stderr.txt HTH John -- John Niven Please reply through mailing list Patrick PIERRA Linedata Services Luxembourg 00 352 29 56 65 282 [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Class Not Found Exception in TC4
Hello, I've two problems. First i'm trying to use TC4. I've a jsp which have jsp:useBean ...class =myClass.class tag. I've put this bean in the lib directory of the Web-inf directory of my domain but when i call this page i recieve a class not found exception. I'don't understand why. Second, in TC 3.2.1 I've a servlet which try to access a xml file. To parse this xml file i use jaxp and crimson. But i recieve a java.SecurityException (sealing violation) Why ? Patrick PIERRA
Tomcat JDO
hello, is someone work with Tomcat and JDO (java data object KODO implementation) ? I recieve a java.lang.SecurityException: sealing violation when the jdo try to access my Business classes ! How could i manipulate the tomcat.policy file ? Is a technique to desactivate this aspect of security in Tomcat ? Patrick PIERRA
java.lang.SecurityException: sealing violation
Hi, I use tomcat 3.2 and try to read a xml file throught a servlet but i recieve this error : java.lang.Exception: Exception occurred: java.lang.SecurityException: sealing violation at lds.utils.XMLManager.loadXML(XMLManager.java:168) at lds.utils.XMLManager.loadXML(XMLManager.java:183) at lds.servlets.OdataControllerServlet.init(OdataControllerServlet.java:93) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.core.Handler.service(Handler.java:254) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java:479) any idee to help me Patrick PIERRA
Re: off-topic: Result Set as attribute
you replace the autor and the titre attribute in your session along your while . i thing its better to use a jsp:useBean id=book scope=session tag in your first jsp. Set a collection atrribute of book and pass an index to the second jsp page : % book.set(param1,); i=0; while(book.next()) { i++ % B%=book.getEditor%/BBR %=book.getTitle% %=book.getAuthor% HREF=moreinfos.jsp?index=imore information/A } % than retrieve this bean in your second jsp and retrieve your book object throught the index in your collection attribute jsp:useBean id=book scope=session % i = request.getParameter(index); book.getElementAt(i); % ... Patrick PIERRA
test environnement
hello, i developp in Visual age 4.0 and use a Tomcat test environnement 3.1. This is very useful because all jsp are compiled in servlet which are genereted in my visual age workspace (easy to debug). The problem is that this tomcat test env. is a 3.1 version of Tomcat that's contain a lot's of bugs. Could i find a more recent Tomcat Test environnement for visual age or an other solution to debug JSP .. Patrick PIERRA
How to set classpath in TC4
hi, Where have i to set the classpath in TC4 ? Patrick PIERRA
run servlet on TC4
hi, i'm trying TC4 but he can't find my servlet. I've put it in : myWebapps/Web-inf/classes/ Here is my web.xml file which is in Web-inf directory : servlet servlet-nameOdataControllerServlet/servlet-name servlet-classlds.servlets.OdataControllerServlet/servlet-class /servlet may be tomcat can't find my web.xml may be my web.xml file is wrong write have i to put it in classpath Patrick PIERRA
bug report
Hi! I've just install Tomcat 4.0 on WinNT4 with an installer package (.exe). When i launch Tomcat Start i recieve an error : A nonfatal internal JIT (3.10.107(x)) error 'Relocation error: NULL relocation target' has occurred in : 'org/apache/crimson/parser/Parser2.maybeComment (Z)Z': Interpreting method. Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi Is it important ??
problem with jsp:forward....
hi! I use tomcat 3.1. I have a jsp:forward tag which call a servlet : jsp:forward page =OdataControllerServlet?Action=LoginResultResultType=Failure/ This tag is in a Jsp which is include in other Jsp with : %@ include file=../confirmLogin.jsp % When i put this include tag in a Jsp which is on my root directory that work well. But when i put this include tag in a Jsp which is not on my root directory that doesn't work. Any Explication ? Patrick PIERRA
session object
Hi ! I don't understand why but when I put the request object in the session : session.setAttribute(request, request); and try to retrieve it later in another jsp page : request = (HttpServletRequest) session.getAttribute(request); I constat that my request object is egal to null WHY ! Patrick PIERRA
RE: session object
Why ? Pernica, Jan To: [EMAIL PROTECTED] pernica@dcb.cc: cz Subject: RE: session object 06/14/01 03:04 PM Please respond to tomcat-user You cannot do that. On Thursday, June 14, 2001 3:06 PM, [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] wrote: Hi ! I don't understand why but when I put the request object in the session : session.setAttribute(request, request); and try to retrieve it later in another jsp page : request = (HttpServletRequest) session.getAttribute(request); I constat that my request object is egal to null WHY ! Patrick PIERRA __ Tato komunikace je urcena vyhradne pro adresata a je duverna. This communication is intended solely for the addressee and is confidential.
Tomcat + Castor JDO
HI ! I developp with Visual Age 3.5. I use Tomcat Test Environment 3.1 and I'm trying to use Castor JDO 0.9. I've no problem in my workspace to work with Castor JDO (mapping and OQL Query). I'm trying to use Castor JDO with Tomcat but apparently Castor can't find my business class in Tomcat (I've put Instrument.class in classes/lds/ecm/instrument/Instrument.class). May be somebody have found the same problem and resolve it ? here is the stack trace : org.exolab.castor.mapping.MappingException: Could not find the class lds.ecm.instrument.Instrument java.lang.Throwable(java.lang.String) java.lang.Exception(java.lang.String) org.exolab.castor.mapping.MappingException(java.lang.String, java.lang.Object) org.exolab.castor.mapping.ClassDescriptor org.exolab.castor.mapping.loader.MappingLoader.createDescriptor(org.exolab.castor.mapping.xml.ClassMapping) org.exolab.castor.mapping.ClassDescriptor org.exolab.castor.jdo.engine.JDOMappingLoader.createDescriptor(org.exolab.castor.mapping.xml.ClassMapping) void org.exolab.castor.mapping.loader.MappingLoader.loadMapping(org.exolab.castor.mapping.xml.MappingRoot, java.lang.Object) void org.exolab.castor.jdo.engine.JDOMappingLoader.loadMapping(org.exolab.castor.mapping.xml.MappingRoot, java.lang.Object) org.exolab.castor.mapping.MappingResolver org.exolab.castor.mapping.Mapping.getResolver(org.exolab.castor.mapping.Mapping$EngineMapping, java.lang.Object) void org.exolab.castor.jdo.engine.DatabaseRegistry.loadDatabase(org.xml.sax.InputSource, org.xml.sax.EntityResolver, org.exolab.castor.persist.spi.LogInterceptor, java.lang.ClassLoader) org.exolab.castor.jdo.Database org.exolab.castor.jdo.JDO.getDatabase() void test.jdo.TestJdo2.setDb(java.io.PrintWriter) void lds.servlets.Login.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) void javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) void org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.Request, org.apache.tomcat.core.Response) void org.apache.tomcat.core.ContextManager.service(org.apache.tomcat.core.Request, org.apache.tomcat.core.Response) void org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(org.apache.tomcat.service.TcpConnection, java.lang.Object []) void org.apache.tomcat.service.TcpConnectionThread.run() void java.lang.Thread.run() java.lang.NullPointerException java.lang.Throwable() java.lang.Exception() java.lang.RuntimeException() java.lang.NullPointerException() java.lang.Object java.util.Hashtable.put(java.lang.Object, java.lang.Object) void org.apache.tomcat.session.StandardSession.setAttribute(java.lang.String, java.lang.Object) void lds.servlets.Login.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) void javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) void org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.Request, org.apache.tomcat.core.Response) void org.apache.tomcat.core.ContextManager.service(org.apache.tomcat.core.Request, org.apache.tomcat.core.Response) void org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(org.apache.tomcat.service.TcpConnection, java.lang.Object []) void org.apache.tomcat.service.TcpConnectionThread.run() void java.lang.Thread.run() Patrick PIERRA
Get a JDBC DataSource via JNDI ( using Poolman ) - NEED HELP
We are trying to get a DataSource with a JNDI lookup. We want to use PoolMan for this and JNP (as JNDI server) Our questions -- 1. How to setup the JNP server or another JNDI server with Tomcat ? 2. How to install Poolman, we have copied the poolman.jar, install the poolman.xml file and nothing sounds happening ? 3. We have a servlet that start at the starting of Tomcat, this one already use to DataSource. What's happening currently --- We have copy the poolman.jar and set the classpath We have copy the jndi.jar and set the classpath We have copy the jnp.jar and set the classpath We have copy the jndi.properties in the TOMCAT/conf folder We have copy the jnp.properties in the TOMCAT/conf folder We have copy the poolman.xml in the TOMCAT/conf folder and the TOMCAT/ (We do not know where to put this file !) We have the servlet that do : InitialContext tContext = new InitialContext(); DataSource tDataSource = (DataSource) tContext.lookup( tDataSourceJNDIName ); We have a crash during the lookup, we have this message : javax.naming.ServiceUnavailableException: Connection refused: no further information. Root exception is java.net.ConnectException: Connection refused: no further information java.lang.Throwable(java.lang.String) java.lang.Exception(java.lang.String) java.io.IOException(java.lang.String) java.net.SocketException(java.lang.String) java.net.ConnectException(java.lang.String) void java.net.PlainSocketImpl.socketConnect(java.net.InetAddress, int) void java.net.PlainSocketImpl.doConnect(java.net.InetAddress, int) void java.net.PlainSocketImpl.connectToAddress(java.net.InetAddress, int) void java.net.PlainSocketImpl.connect(java.net.InetAddress, int) java.net.Socket(java.net.InetAddress, int, java.net.InetAddress, int, boolean) java.net.Socket(java.lang.String, int) void org.jnp.interfaces.NamingContext.checkRef(java.util.Hashtable) java.lang.Object org.jnp.interfaces.NamingContext.lookup(javax.naming.Name) java.lang.Object org.jnp.interfaces.NamingContext.lookup(java.lang.String) java.lang.Object javax.naming.InitialContext.lookup(java.lang.String) Can someone help us, we have try a lot, read the documentation and the FAQ, but without success, please HELP US Thanks a lot for all your help Patrick Pierra
apache tomcat test environment in visual age
Hi I use Apache Tomcat Test Environment 3.1 in Visual Age 3.5. I dont know why but until now when I'm running a JSP (in my browser) i could seen the servlet code in a package (which call JSP default page compiler) in the the Visual Age Workspace (very useful for debbuging). But now I can' t retrieve any servlet code in the VA workspace Any explication... (I don't now if it's reliable but I've just setup IE5.5, before I've used IE4) Patrick PIERRA
apache tomcat test environment
Hi I use Apache Tomcat Test Environment 3.1 in Visual Age 3.5. I dont know why but until now when I'm running a JSP (in my browser) i could seen the servlet code in a package (which call JSP default page compiler) in the the Visual Age Workspace (very useful for debbuging). But now I can' t retrieve any servlet code in the VA workspace Any explication... (I don't now if it's reliable but I've just setup IE5.5, before I've used IE4) Patrick PIERRA
Re: load a servlet or jsp at Tomcat startup
You have to update the web.xml file like this : ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE web-app (View Source for full doctype...) - web-app - !-- Database Initialization Servlet Configuration -- - servlet servlet-nameDatabaseServlet/servlet-name Name of your servlet servlet-classlds.gui.dataconnectivity.DatabaseServlet/ servlet-class path to your servlet load-on-startup1/load-on-startup position of startup /servlet - servlet servlet-nameLogin/servlet-name servlet-classlds.servlets.Login/servlet-class /servlet - !-- Action Servlet Mapping -- - servlet-mapping servlet-nameLogin/servlet-name url-pattern/Login/url-pattern /servlet-mapping /web-appPatrick PIERRA Mark Mynsted To: [EMAIL PROTECTED] MMYNSTED@vhacc: .comSubject: load a servlet or jsp at Tomcat startup 04/20/01 05:14 PM Please respond to tomcat-user Is there not a way to define a servlet or jsp in ../conf/server.xml to load a start up of Tomcat? I can not find this in the documentation. Sincerely yours; Mark Mynsted VHA Management Information Systems Client Services [EMAIL PROTECTED] (972) 830 - 0592, Internal x1592
problem with response.sendRedirect()
Hi, I try to redirect users who try to access page on my site and who have not enter username + passord. I have a litle jsp : % User tUser = (User)session.getAttribute("user"); if ( tUser == null) { response.sendRedirect("http://localhost:8080/"); } % which call confirmLogin.jsp and on the top of each page i have a : %@ include file="confirmLogin.jsp" % but when I try to access page directly whithout login I received a system error : Internet explorer can not open the internet site http://localhost:8080/myAdress here is the trace : java.net.SocketException: Connection reset by peer: socket write error java.lang.Throwable(java.lang.String) java.lang.Exception(java.lang.String) java.io.IOException(java.lang.String) java.net.SocketException(java.lang.String) void java.net.SocketOutputStream.socketWrite(byte [], int, int, java.io.FileDescriptor) void java.net.SocketOutputStream.write(byte [], int, int) void org.apache.tomcat.service.http.HttpResponseAdapter.doWrite(byte [], int, int) void org.apache.tomcat.core.BufferedServletOutputStream.doWrite(byte [], int, int) void org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush() void org.apache.tomcat.core.ResponseImpl.flushBuffer() void org.apache.tomcat.core.HttpServletResponseFacade.flushBuffer() void org.apache.jasper.runtime.JspWriterImpl.flush() void _0002fquery_0002ejspquery_jsp_4. _jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) void org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) void org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, boolean) void org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Throwable, boolean) void org.apache.jasper.runtime.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) void org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.Request, org.apache.tomcat.core.Response) void org.apache.tomcat.core.ContextManager.service(org.apache.tomcat.core.Request, org.apache.tomcat.core.Response) void org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(org.apache.tomcat.service.TcpConnection, java.lang.Object []) void org.apache.tomcat.service.TcpConnectionThread.run() void java.lang.Thread.run() after that, when i refresh, the browser come on the page where i am someone could help me to understand ? Patrick PIERRA
Re: run servlet and get page not found
You have to update the web.xml file Patrick PIERRA "Jack Li" jli@murraysdisTo: [EMAIL PROTECTED] count.com cc: Subject: run servlet and get "page not found" 04/09/01 06:10 PM Please respond to tomcat-user Hello, I tried to run a simple servlet and get error message "page not found". I put the servlet in WEB-INF/classes/ directory. The system is IIS 5 with tomcat 3.2.1, any idea? Thanks Jack Li
put an object in the application
what is the equivalent to session.setAttribute("aName", anObject) but whith an application scope thanks
using Tomcat Test Environnement in Visual Age
Hello, I'm tryinng to use Apache Tomcat Test Environnement for VA. The Test Environnement run well. I've deployed a index.html file in Apache_Tomcat_Test_Environnement/webaaps/myWebFolder and I access it well whith my browser http://localhost:8080/myWebFolder/. This index.html file have a form tag : form name="log" method="post" action="coreservlets.Login" to contact a servlet : Login. I've wrote this servlet in VA. My question is : Is it possible to run this servlet in VA when index.html try to find Login. In other hand I've tried to deploy the Login.class servlet directly in a folder : myWebFolder/coreservlets/ but I received a 404 error message file not found How have I to do to run a servlet on Tomcat? Patrick PIERRA
RE: using Tomcat Test Environnement in Visual Age
I've just downloaded the zip file Apache Tomcat Test Environnement on www.ibm.com. When you run the .exe file, it create a project and a set of package in VA. Then run TomcatRunner. Patrick PIERRA
RE: using Tomcat Test Environnement in Visual Age
Sorry, find here reply with history I've just downloaded the zip file Apache Tomcat Test Environnement on www.ibm.com. When you run the .exe file, it create a project and a set of package in VA. Then run TomcatRunner. Patrick PIERRA Patrick PIERRA "Trakhtenberg, Victor"To: "'[EMAIL PROTECTED]'" Victor_Trakhtenber[EMAIL PROTECTED] [EMAIL PROTECTED] cc: Subject: RE: using Tomcat Test Environnement in Visual Age 04/04/01 05:09 PM Please respond to tomcat-user May be you can explain how to use the Tomcat with VA. Thank you in advance. -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: 04 2001 17:02 To: [EMAIL PROTECTED] Subject: using Tomcat Test Environnement in Visual Age Hello, I'm tryinng to use Apache Tomcat Test Environnement for VA. The Test Environnement run well. I've deployed a index.html file in Apache_Tomcat_Test_Environnement/webaaps/myWebFolder and I access it well whith my browser http://localhost:8080/myWebFolder/. This index.html file have a form tag : form name="log" method="post" action="coreservlets.Login" to contact a servlet : Login. I've wrote this servlet in VA. My question is : Is it possible to run this servlet in VA when index.html try to find Login. In other hand I've tried to deploy the Login.class servlet directly in a folder : myWebFolder/coreservlets/ but I received a 404 error message file not found How have I to do to run a servlet on Tomcat? Patrick PIERRA
running tomcat in VISUAL AGE
Sorry, My last message was little beat short. I can't run tomcat on visual age. I have more precision about my problem It is during the instanciation of the class : -- org.apache.jasper.servlet.JspServlet Here is the trace - Thread[main,5,main] (Alive): Uncaught exception (java.lang.ExceptionInInitializerError) Class.newInstance0() Class.newInstance() ServletWrapper.loadServlet() ServletWrapper.init() LoadOnStartupInterceptor.contextInit(Context) ContextManager.initContext(Context) ContextManager.init() Tomcat.execute(String []) Tomcat.main(String []) P P
running tomcat on Visual age
I'can't run tomcat on VA. I've imported all the tomcat ressources (servlet.jar, jasper.jar, parser.jar, webserver.jar,.) in VA. When i'm trying to run the tomcat.class in the webserver package i receive an error someone could help me PP