RE: 4.1.24 Tag Lib problem
Do you use the release method on your tag ??? If yes, you should know that this method isn't called in Tomcat between two uses of a tag (a same instance is reused several times). You should reinit all your internal instance variables in the doStartTag method. Arnaud -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoye : jeudi 3 avril 2003 18:36 A : [EMAIL PROTECTED] Objet : 4.1.24 Tag Lib problem Hello, I have looked over the archives, and I looked at my code. I am having an issue with only one thing. I am sending a url back to the client, but it only makes it to the first entry. The others are blank. (The url is dynamic) If I refresh the page all the links are gone. The code works fine in JBoss/Jetty, Was 3.5, WAS 4.0, WAS 5.0, Tomcat 4.04, etc. What should I be looking at to fix it? Thanks in Advance, Paul R. Johnson - 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]
Using javax.sql.DataSource
** Este email assim como os ficheiros que possa ter em anexo são confidenciais e para uso exclusivo da pessoa ou organização para o qual foi enviado. Se recebeu este email por engano por favor notifique [EMAIL PROTECTED] Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper não tendo sido encontrados virus. www.mimesweeper.com *** Hi, I am trying to implement a Connection Pools. My context is tomcatexample, and I build a tomcatexample.xml, that I copy to WEBAPPS. ?xml version='1.0' encoding='windows-1252'? Context path=/tomcatexample docBase=tomcatexample debug=0 reloadable=true Resource name=jdbc/tomcatexample auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/tomcatexample parameter nameuser/name valueuser/value /parameter parameter namepassword/name valuepassword /value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@bdtest:1521:srnd/value /parameter /ResourceParams In my web.xml, I put: resource-ref description This is a BD example /description res-ref-namejdbc/tomcatexample/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref When I try to run it , it report the following error: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.commons.dbcp.DbcpException: java.sql.SQLException: invalid arguments in call at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConne ctionFactory.java) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnect ionFactory.java) at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPoo l.java) at org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool .java) at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja va) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java) at com.wiley.tomcatbook.ClientListPooledServlet.doGet(ClientListPooledServlet.j ava:51) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
SSL
How to export private keystore file to a OpenSSL pem file? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Taglib troubles with 4.1.24
Sorry about the double post! I wasn't sure if my email was working. To follow up: Maybe I need to null this specific variable at the beginning of my doStartTag()? Ian. -Original Message- From: Ian Zabel [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 4:31 PM To: [EMAIL PROTECTED] Subject: Taglib troubles with 4.1.24 Importance: High I'm trying to code up some enhancements to my tag library, and I've just switched to Tomcat 4.1.24. I have a String defined in a base class which is appended to by many methods in the tag. For instance: public abstract class TagBase extends TagSupport { private String attributes; public void addAttribute( String attr, String value ) { if ( attributes == null || attributes.length() == 0 ) attributes = ; attributes += + attr; if ( value != null ) attributes += =\ + value + \; } } The problem is that my tags are accumulating more and more attributes from previous calls to the tag. One tag for example is an html radio tag. All of the attributes that I am setting with the addAttribute() method accumulate across tags. Like so: input type=radio name=testing value=1/Radio Button 1 input type=radio name=testing value=1 value=2/Radio Button 2 input type=radio name=testing value=1 value=2 value=3/Radio Button 3 input type=radio name=testing value=1 value=2 value=3 value=4/Radio Button 4 input type=radio name=testing value=1 value=2 value=3 value=4 value=5 checked=true/Radio Button 5 input type=radio name=testing value=1 value=2 value=3 value=4 value=5 checked=true value=6/Radio Button 6 input type=radio name=testing value=1 value=2 value=3 value=4 value=5 checked=true value=6 value=7/Radio Button 7 input type=radio name=testing value=1 value=2 value=3 value=4 value=5 checked=true value=6 value=7 value=8/Radio Button 8 What am I doing wrong here? Is this related to Tomcat 4.1's Tag Pooling? Is there anything I can do to fix this? Ian. - 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: does the getRequestDispatcher().forward() method return control?
Hi, I think this is a bug as per the servlet specification.Just check with some other servlet engine. I will forward this error to tomcat developer list. I was tested with Tomcat3.2.2. Velmurugan P. Java Team. - Original Message - From: Hans Schippers [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 03, 2003 1:44 AM Subject: does the getRequestDispatcher().forward() method return control? Hi, if in a servlet, I have some code like: getServletConfig().getRequestDispatcher(/my/page.jsp).forward(request, response) Is it supposed to return control to the servlet afterwards? From what I find on the net, it isn't, but when I try to print something to System.out after the forward call, that works... So did I misread on the www, or is this some bug in my webserver? I'm using JBoss/Tomcat btw... Thanks, Hans === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message signoff EJB-INTEREST. For general help, send email to [EMAIL PROTECTED] and include in the body of the message help. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1 + Apache 2 + mod_jk2 inprocess woes
Ken M wrote: Greetings everyone. I've exhaustively searched the archives for a success story I can build on, but in vain. I've been beating my head against mod_jk2 for over 2 days now, and I keep getting SO close but not quite far enough. If you've had similar experiences but got beyond it - please read on! The Bad news is: - The jakarta-tomcat-connectors-jk2-2.0.2-src comes with little to no documentation. All references to reading the docs in the tarball are false. - The few README's that exist within the build dirs tell of the minumum configuration necessary, but no real direction as to how to make it all work. - Reading the incomplete documentation on the web site shed some light on the problem, but still isn't getting me there. - Nowhere does the documentation mention the CLASSPATH issue that comes up.. I couldn't get anything to work until I added ALL of the tomcat common and server/lib jar files to the CLASSPATH in the worker2.properties file and added a JAVA_HOME environment variable to Apache2/bin/envvars - Nowhere does the documentation mention that the Java VM (jvmdll.so) must be in the LD_LIBRARY_PATH, or otherwise available via ld.so.conf / ldconfig - The build scripts for ant build.xml refer to a coyote directory, which doesn't exist in the jakarta-tomcat-connectors-jk2-2.0.2-src tarball. - The configure script that was created for some reason fails when testing that a directory isn't a regular file under RH 8.0... Go figure... I had to hand-edit out all the if $(TEST) ! -f blocks. - The docs are inconsistent as to where one should place the jkjni.so file. If placed in apache lib (which is also in my ld.so.conf) - things seem ok.. If places in tomcat/server/lib, things go poorly. - The docs never clearly define where, when, and how the shm block should be created, only that it's allowed... I only found it to be required through the use of google searching the archives. There is some good news: - After hours of hacking at the build process, I finally got a valid mod_jk2.so and jkjni.so file - Tomcat 4.1 had a tomcat-jk2.jar file, so the coyote compile was ultimately unnecessary - just annoying as the build process required it. - Tomcat 4.1 launches inside of Apache 2 (as evidenced by the apache error_log file) The worse news: - No channels or workers will initialize, no matter WHAT I do. I've followed the docs to the letter and have both jk2.properties and workers2.properties in their proper locations So, with that said.. I'm hoping that where the docs fail, the community will prevail. Questions: 1) What is the proper format of the JkUriSet command in the httpd.conf file? This is the only example I've found: Location /examples JkUriSet worker worker /Location If I use this Location in my httpd.conf, I get the error: [Thu Apr 03 21:02:29 2003] [error] uriEnv.init() map to invalid worker /examples worker So I expected that it wanted the name of the worker (jni I assume, considering the lack of documentation I am FORCED to assume! help!) so I made the block look like this: Location /examples JkUriSet worker jni /Location It still complains.. I'm stumped on that one, so I thought -- just remove it and let the default [uri:/examples/*] handlers manage it (from workers2.properties) -- but when I try it without the block, I receive these different errors: [Thu Apr 03 20:58:22 2003] [error] lb_worker.service() all workers in error or disabled state [Thu Apr 03 20:58:22 2003] [error] mod_jk.handler() Error connecting to tomcat 12 I've solved this inserting in workers2.properties the declaration [shm] file=/opt/apache2/logs/shm.file size=1048576 and touching the file /opt/apache2/logs/shm.file Hope this helps! Best regards Enrico 2) What must be done to init the jni channels and workers? What is the proper file format? I've seen many (MANY) references to mod_jk2 on the internet discuss using a workers.properties file, which looks extremely like the old 3.x version... I can't bring myself to believe that those are right (especially since if I add any of those commands to workers2.properties, it bombs out...) Using the examples in the docs, FAQ's, how to's and readmes results in this error log: - snip - [Thu Apr 03 20:28:09 2003] [notice] Apache configured -- resuming normal operations [Thu Apr 03 20:28:12 2003] [error] workerEnv.initChannel() init failed for channel.jni:jni [Thu Apr 03 20:28:12 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onStartup [Thu Apr 03 20:28:12 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onShutdown [Thu Apr 03 20:28:13 2003] [error] workerEnv.initChannel() init failed for channel.jni:jni [Thu Apr 03 20:28:13 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onStartup [Thu Apr 03 20:28:13 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onShutdown [Thu Apr 03
Allowing HTTP PUT in specified location only
Hi Tomcatters, How does one configure tomcat 4.1 to allow HTTP PUT/DELETE requests for a specific directory only? I found that the default servlet has the readOnly parameter, but I can't change the default behaviour. Thanks in advance, Janne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
wrong parameters
Hi, on one of our server we are running a modified version of Apache 1.3.27 Only on that server mod_jk is loaded but not working. mod_jk.log : [Fri Apr 04 04:24:26 2003] [jk_uri_worker_map.c (453)]: In jk_uri_worker_map_t::map_uri_to_worker, wrong parameters so I have to use the port inside the URL http://www.domain.com:8080/servlet/HelloW http://www.domain2.com:8080/servlet/HelloW My question is does anybody know where I can find these wrong parameters. Within mod_jk-noapi.so ? I'm not sure what kind of parameters it could be. Thank you, HotD** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to disable persistent session ?
Hi, I think this question has already been asked but not answered, so I submit it again. How can I disable persistent sessions in tomcat ? Why is it enabled by default ? thanks, Thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to disable persistent sessions
Hi, I think this question has already been asked but not answered, so I submit it again. How can I disable persistent sessions in tomcat ? Why is it enabled by default ? thanks, Thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is there a Online Archive for searching tomcat-users Mailinglist?
Thanks Peter _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is there a Online Archive for searching tomcat-users Mailinglist?
click here: http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2 regards jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
wanted: pure fast apache servlet enginge without jsp etc. + ASCII/ISO Enc. Prob.
Is there a way to configure tomcat 4.1.24 or is there a better alternative... Also required: -low memory usage -Not much overhead -just simple and pure Also I have a file.encoding problem with tomcat 4.1.24 (Encoding should be ISO8859-1 but defaults to ASCII) Is there a switch in the tomcat configs or elsewhere? Greetings and Thanks Peter _ MSN - More Useful Every Day http://www.msn.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems deploying webapps on tomcat and apache
Hi John, Maximiliano and list, I tried to fix the inconsistencies in the configuration. But then I still can't reach the servlets. I just can't reach any servlets outside the /examples. I have now tried to copy the HelloWorldServlet from /examples to /archief and adopt that web.xml file as a test. No matter how I call them I always get a 404: resource unavailable error. Also when I call the servlets over port 8080. How should I call the servlets, based on my config files? How should I configure things? What did I miss? Again: I am using redhat 8.0, Apache 2.0.43, tomcat 4.1.18, JK2 Here are the directory structure and config files: Directory structure /webapps /examples /archief /WEB-INF /classes HelloWorldServlet /lib Connector-mysql-3_0_6.jar web.xml server.xml: context !-- Define new context for Archief Web -- Context path=/archief docBase=archief debug=2 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_archief_log. suffix=.txt timestamp=true/ !-- Enviroment name=maxExceptions value=java.lang.Integer value=15/ Parameter name=context.param.name value=context.param.value override=false/ -- /Context web.xml ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app !-- Define servlets included in archief -- servlet servlet-nameHelloWorldExample/servlet-name servlet-classHelloWorldExample/servlet-class /servlet servlet-mapping servlet-nameHelloWorldExample/servlet-name url-pattern/archief/url-pattern /servlet-mapping /web-app jk2.properties ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED ## WHEN YOU EDIT THE FILE. ## COMMENTS WILL BE _LOST_ ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc. handler.list=apr,channelSocket,channelUnix,request channelSocket.port=8009 # Just to check if the the config is working # shm.file=${jkHome}/work/jk2.shm # In order to enable jni use any channelJni directive # channelJni.disabled = 0 # And one of the following directives: # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so # If set to inprocess the mod_jk2 will Register natives itself # This will enable the starting of the Tomcat from mod_jk2 # apr.jniModeSo=inprocess workers2.properties #--- workers2.properties # Shared memory handling [shm] file=/usr/local/apache/logs/shm.file size=1048576 # socketchannel, host and port [channel.socket:localhost:8009] port=8009 host=127.0.0.1 #Define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 #uri mappings [uri:/examples/*] worker=ajp13:localhost:8009 [uri:/archief/*] worker=ajp13:localhost:8009 Many thanks, Alexander - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HttpSession not exclusive to one client. Seems to be getting mixed up. swapping over.
We have a JSP/Struts application that runs on tomcat. We developed the system on windows and deployed on solaris. When a user logs on to the system we store a UserValueObject on the session so that the code knows who it is dealing with. The problem is that on solaris the sessions attributes are not staying with that client. If i log on it might randomly take on the session of another user logged on and get the wrong attributes from that session. user1 turns into user2. We have a struts action class that sets the user to the session, here is the code. HttpSession session = request.getSession(); UserValueObject user; UserManagerHome userManagerHome = remoteFactory.getUserManagerHome(); // session home bean UserManager userManager = userManagerHome.create(); // session bean if (userManager.isValidUser(username, password)) { user = userManager.getUser(username); // Save logged-in user in the session session.setAttribute(user, user); } Am i doing something wrong in the code. Should i be doing something more? It works perfectly on windows 2000 which makes it all the more confusing. My tomcat is 3.3.1. Is there a config option i missed? Any help or insight would be brilliant. David Rocks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: does the getRequestDispatcher().forward() method return control?
AFAIK, the only way in java to get what you ask for, is to raise an Exception at the end of the forward() method. Even doing so, you could wrap the forward() call in a try / catch block, avoiding whatever mechanism the servlet engine could use to get the desired behaviour. Thespecification says that no ouput must be commited from the calling servlet *before* the forward() call, but says nothing about conditions after the call (Servlet 2.3 Spec. SRV 8.4). If normal control flow should be broken after the call, I think the Java Team would be in great problems ;-) Hi, I think this is a bug as per the servlet specification.Just check with some other servlet engine. I will forward this error to tomcat developer list. I was tested with Tomcat3.2.2. Velmurugan P. Java Team. Hi, if in a servlet, I have some code like: getServletConfig().getRequestDispatcher(/my/page.jsp).forward(request, response) Is it supposed to return control to the servlet afterwards? From what I find on the net, it isn't, but when I try to print something to System.out after the forward call, that works... So did I misread on the www, or is this some bug in my webserver? I'm using JBoss/Tomcat btw... Thanks, Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL
need more information. Galbayar Dorjgotov wrote: How to export private keystore file to a OpenSSL pem file? - 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: help on mod_jk
Also, it looks like you have downloaded mod_jk2, in which case the correct LoadModule syntax is not LoadModule jk_module but LoadModule jk2_module John On Thu, 3 Apr 2003 16:32:19 -0800, Filip Hanik [EMAIL PROTECTED] wrote: looks like you are trying to use the mod_jk compiled for Apache 1.3 with Apache 2.0 could that be it? I can only take from your path /usr/local/apache2 that it is an apache 2.0 instance filip -Original Message- From: Paul Hsu [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 4:03 PM To: Tomcat Users List Subject: help on mod_jk Hi, I try to install mod_jk with apache, but I always have problem with jk_mod. I install tomcat-4.0.6 and download mod_jk2-1.3-eapi.so into modules directory. Then I append one line LoadModule jk_module modules/mod_jk2-1.3-eapi.so at the end of httpd.conf file, I run apachectl configtest, I got the following error. I am really puzzled how this work. Any help will be appreciated. [root]# ./apachectl configtest Syntax error on line 1070 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/mod_jk2-1.3-eapi.so into server: /usr/loc al/apache2/modules/mod_jk2-1.3-eapi.so: undefined symbol: ap_table_get thanks Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wanted: pure fast apache servlet enginge without jsp etc. + ASCII/ISO Enc. Prob.
Try the LE version of Tomcat. Or write your own. ;) John On Fri, 04 Apr 2003 11:32:30 +, Peter H. [EMAIL PROTECTED] wrote: Is there a way to configure tomcat 4.1.24 or is there a better alternative... Also required: -low memory usage -Not much overhead -just simple and pure Also I have a file.encoding problem with tomcat 4.1.24 (Encoding should be ISO8859-1 but defaults to ASCII) Is there a switch in the tomcat configs or elsewhere? Greetings and Thanks Peter _ MSN - More Useful Every Day http://www.msn.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DataSource in Tomcat for MS SQL server
Tomcat binds the DataSource object in JNDI to jdbc/PubsDb, but relative to java:comp/env and not the root of the context. See the code examples at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html -chris -Original Message- From: Alexey Tyurin [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 10:07 PM To: [EMAIL PROTECTED] Subject: DataSource in Tomcat for MS SQL server I configured my Tomcat server (4.1.24, jdk1.3.1_02/j2sdk1.4.0_01, Win2000 Professional) as it was described in section MySQL DBCP Example of jndi-datasource-examples-howto.html file from Tomcat documentation. Everything works. Then I repeated the same with JDBC driver for MS SQL server. I got it from Microsoft site. When I used: Class.forName(com.microsoft.jdbc.sqlserver.SQLServerDriver); con = DriverManager.getConnection( jdbc:microsoft:sqlserver://alext:1433;DatabaseName=pubs;User=alext;Password=java); I got data from my MS SQL server without any problems. When I repeated my configuration used for MySQL with MS SQL server I got next message: org.apache.jasper.JasperException: Name jdbc is not bound in this Context and many other string... When I looked at log file I saw next: 2003-04-03 18:14:23 NamingContextListener[/Standalone/localhost]: Resource parameters for jdbc/PubsDb = ResourceParams[name=jdbc/PubsDb, parameters={factory=org.apache.commons.dbcp.BasicDataSourceFactory, maxWait=1, maxActive=100, url=jdbc:microsoft:sqlserver://alext:1433, password=java, driverClassName=com.microsoft.jdbc.sqlserver.SQLServerDriver, maxIdle=30, username=alext}] 2003-04-03 18:14:23 NamingContextListener[/Standalone/localhost]: Adding resource ref jdbc/PubsDb 2003-04-03 18:14:23 NamingContextListener[/Standalone/localhost]: ResourceRef[className=javax.sql.DataSource,factoryClassLocation=null,factoryClassName=org.apache.naming.factory.ResourceFactory,{type=scope,content=Shareable},{type=auth,content=Container},{type=factory,content=org.apache.commons.dbcp.BasicDataSourceFactory},{type=maxWait,content=1},{type=maxActive,content=100},{type=url,content=jdbc:microsoft:sqlserver://alext:1433},{type=password,content=java},{type=driverClassName,content=com.microsoft.jdbc.sqlserver.SQLServerDriver},{type=maxIdle,content=30},{type=username,content=alext}] 2003-04-03 18:14:23 NamingContextListener[/Standalone/localhost]: Resource parameters for jdbc/TestDB = ResourceParams[name=jdbc/TestDB, parameters={factory=org.apache.commons.dbcp.BasicDataSourceFactory, url=jdbc:mysql://localhost/bookstore?autoReconnect=true, password=mysql, maxWait=1, maxActive=100, driverClassName=org.gjt.mm.mysql.Driver, username=mysql, maxIdle=30}] 2003-04-03 18:14:23 NamingContextListener[/Standalone/localhost]: Adding resource ref jdbc/TestDB 2003-04-03 18:14:23 NamingContextListener[/Standalone/localhost]: ResourceRef[className=javax.sql.DataSource,factoryClassLocation=null,factoryClassName=org.apache.naming.factory.ResourceFactory,{type=scope,content=Shareable},{type=auth,content=Container},{type=factory,content=org.apache.commons.dbcp.BasicDataSourceFactory},{type=url,content=jdbc:mysql://localhost/bookstore?autoReconnect=true},{type=password,content=mysql},{type=maxWait,content=1},{type=maxActive,content=100},{type=driverClassName,content=org.gjt.mm.mysql.Driver},{type=username,content=mysql},{type=maxIdle,content=30}] 2003-04-03 18:14:23 NamingContextListener[/Standalone/localhost]: Resource parameters for UserTransaction = null So as I understand JNDI resource jdbc/PubsDb is bound for my context (I used ROOT context). Is any solution to use DataSource in Tomcat for MS SQL server? Alex. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat unstable - Dr. Watson. Why? follow up
I ran my web application last night starting Tomcat from the command line ( not as a service) and it has worked well, even during the period of backup of the server from MN to 7am. So, there is a flaw (?bug) that I can predictably create in Tomcat4.x/Win32 that causes the Tomcat win32 service to crash, (not the JVM), when using a connection pool and the database server is busy. Is this a windows or a Tomcat issue? It is a practical issue for Tomcat users - the service is much more convenient. Iain. Iain Sanderson [EMAIL PROTECTED] 04/03/2003 03:51 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Tomcat unstable - Dr. Watson. Why? Is that it? Surely this is a Tomcat issue. Something is causing Tomcat to crash in a Windows environmment, as you say, without it affecting the JVM. Is it just a Windows issue? My other services don't crash. Surely there must be something else I can do apart from change operating systems? Iain. Shapira, Yoav [EMAIL PROTECTED] 04/03/2003 02:51 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Tomcat unstable - Dr. Watson. Why? Howdy, Can't help you much more, as it seems a Windows issue. I've managed to avoid running servers on windows machines so far and I don't plan to start soon ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Iain Sanderson [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 2:43 PM To: Tomcat Users List Subject: RE: Tomcat unstable - Dr. Watson. Why? Hi, So if my JVM doesn't crash, but the Windows NT service that runs Tomcat does, what can I do? What are the implications of what you just wrote? Stout.log and sterr.log are blameless, by the way. I guess I could run Tomcat from the command line, and not as a service, but I think I've tried this. The same web app crashes in the same way on another server running Windows 2000 server. Would Linux be any better? Iain. Shapira, Yoav [EMAIL PROTECTED] 04/03/2003 02:20 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Tomcat unstable - Dr. Watson. Why? Howdy, No. I meant the hs_err_[pid] file, which is created by the HotSpot JVM automatically when it crashes. It's not the same as the stdout/stderr logs. If the file is not there, that's a good thing, it means your JVM did not crash. Yoav Shapira Millennium ChemInformatics -Original Message- From: Iain Sanderson [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 2:16 PM To: Tomcat Users List Subject: RE: Tomcat unstable - Dr. Watson. Why? Hi, regarding hs_err_..etc I couldn't find a file named anything like this on my server. I do have stout.log and sterr.log , set in the registry for the JVM for Tomcat service startup. Is this what you mean? Iain Shapira, Yoav [EMAIL PROTECTED] 04/03/2003 01:16 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Tomcat unstable - Dr. Watson. Why? Howdy, Does your app server need to be available when your DB server is doing backups? If not, you could always restart the app server at 7am. Is DBCP or something else doing keep-alive / sanity checks on the DB connections? Or other keep-alive / ping type activity to the DB server? If so, these checks could be hanging, or just spinning in a deadlock, if the DB server is too busy to respond. I'm running Tomcat 4.22 on Windows NT sp6 using the Java 1.41 VM as a service with the -Xxms256m -Xxmx256m switches set in the registry for You mean -Xmx256m and -Xms256m, right? What if you allow more memory? There is no information in Tomcat's logs at all. Windows just shuts down Is there a JVM internal crash log? This is typically a hs_err_[pid] file in the current working directory of the JVM. the server are large ( Operating room schedules etc. Queries take 0.15 to 0.2 seconds, but page refreshes in Tomcat 5-6 seconds, which is acceptable. With incremental GC this increases to 17 seconds, which is not.) Is it acceptable for the midnight-7am period? Or not acceptable even during this time? I'm sure the problem is due to database connections, but I can't fault my code. I'm using Tomcat's JNDI datasource pool (commons DBCP), set in server.xml. I have been very careful to close all my connections using the following code straight out of Tomcat's documentation (see below) Maybe you should add something to your app server that closes all DB connections at midnight, and until 7am establishes DB connections on demand, i.e. doesn't go through a pool. This will help isolate the problem. Yoav Shapira Millennium ChemInformatics This e-mail, including any attachments, is a confidential business communication, and may contain information that
RE: Configure error page
Howdy, Make sure redirect.jsp is under the docBase of your context. location is relative to your webapp root. Yoav Shapira Millennium ChemInformatics -Original Message- From: Louis Lau [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 9:11 PM To: [EMAIL PROTECTED] Subject: Configure error page Hi, I would like to configure the error page so that for any 404 error, the page will be redirected to somewhere. I have tried to put error-page error-no404/error-no location/redirect.jsp/location /error-page but from catalina.out, it seems that tomcat can not found redirect.jsp. so where would tomcat find the error page? Thanks. Louis - 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, 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: monitoring web apps
Howdy, Is the JVMPI powerful enough to get used in a memory tracker for tomcat (I haven't used it yet)? Wouldn't it make sense to have a monitoring app for memory and database connections for Tomcat (i.e. dbcp/poolman functionality + jvmpi in one admin app)? From your questions I gather you probably haven't worked with the JVMPI too much? ;) Yes, it's powerful enough. No, it wouldn't make sense to have a monitoring app like that, because the server would have to be started with JVMPI hooks which frequently require an order of magnitude increase in heap space and lead to 3x-20x reduction in performance. Yoav Shapira Millennium ChemInformatics 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: wanted: pure fast apache servlet enginge without jsp etc. + ASCII/ISO Enc. Prob.
Howdy, Tomcat 5 may have a minimal servlet-only distribution ;) But that's not for sure. You realize that if you don't have any JSPs, tomcat imposes no JSP overhead, right? In addition, compared to other servers I've tried, tomcat by itself takes very little memory. Yoav Shapira Millennium ChemInformatics -Original Message- From: Peter H. [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 6:33 AM To: [EMAIL PROTECTED] Subject: wanted: pure fast apache servlet enginge without jsp etc. + ASCII/ISO Enc. Prob. Is there a way to configure tomcat 4.1.24 or is there a better alternative... Also required: -low memory usage -Not much overhead -just simple and pure Also I have a file.encoding problem with tomcat 4.1.24 (Encoding should be ISO8859-1 but defaults to ASCII) Is there a switch in the tomcat configs or elsewhere? Greetings and Thanks Peter _ MSN - More Useful Every Day http://www.msn.de - 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, 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: Tomcat unstable - Dr. Watson. Why? follow up
Howdy, Is this a windows or a Tomcat issue? It is a practical issue for Tomcat users - the service is much more convenient. Given that tomcat works fine when not running as a service, I'd say the fault is with the service management. I agree with you it's a practical issue, but then again not many have reported it. And you would need to do more investigating as to the precise reason it occurs... Yoav Shapira Millennium ChemInformatics 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: What s the minimum system resources needed for tomcat
Howdy, Tomcat has a small footprint. I've successfully run tomcat 4.1.24 in production with -Xmx32m on a linux machine with 64m total RAM. Yoav Shapira Millennium ChemInformatics -Original Message- From: anto paul [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 11:20 PM To: tomcat mail list Subject: What s the minimum system resources needed for tomcat Hi, I want to know the minimum configuration to run Tomcat 4.1.18 on a win2k server.We are using this server as a development server. And there are only three developers accessing the server. The same machine is also used as the print server. The machine is a P4 with 512 MB RAM. - 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, 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]
Tomcat 4.1/Linux/JavaMail Issue
Hello-- I've run into a bit of a frustrating issue with Tomcat 4.1 running on Mandrake 9.0. I've got a web application that parses some user input (via HTML form), then sends an email message with some of the user input in the body, and a PDF file that is generated attached. The code compiles and runs without exception. I've got JavaMail debug messages turned on, and here's a snippet: snip Generating email DEBUG: setDebug: JavaMail version 1.3 MimeMultipart created Message body created Message body text set Message body added to MimeMultipart Got PDF file DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc] Calling connect() DEBUG SMTP: useEhlo true, useAuth false DEBUG: SMTPTransport trying to connect to host mail.raederlandree.com, port 25 DEBUG SMTP RCVD: 220 DELLPOWEREDGE.raederlandree.com ESMTP Server (Microsoft Exchange Internet Mail Service 5.5.2653.13) ready DEBUG: SMTPTransport connected to host mail.raederlandree.com, port: 25 /snip Once the connection to the SMTP server is established, nothing more happens. No errors, but the process just sits there. It doesn't cause Tomcat to die either, as I can stop the browser and make another request (with the same result). Now, here's the interesting bit. I've got Tomcat 4.1 running on a Windows 2000 laptop (for client demos), and the same code (the same WAR file, compiled on the linux box) works. The connection is established to the SMTP server, and the message is sent successfully. What gives? I've moved around the JavaMail libraries (originally they were in mywebapp/WEB-INF/lib, and I removed the JavaMail libraries from $TOMCAT_HOME/common/lib. Then I reversed it, moving the libraries from WEB-INF/lib to common/lib. Same result. Any ideas? TIA brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1/Linux/JavaMail Issue
you need JaF (Java Activation Framewrok aka activation.jar). put to the lib, and your app get working brian janaszek wrote: Hello-- I've run into a bit of a frustrating issue with Tomcat 4.1 running on Mandrake 9.0. I've got a web application that parses some user input (via HTML form), then sends an email message with some of the user input in the body, and a PDF file that is generated attached. The code compiles and runs without exception. I've got JavaMail debug messages turned on, and here's a snippet: snip Generating email DEBUG: setDebug: JavaMail version 1.3 MimeMultipart created Message body created Message body text set Message body added to MimeMultipart Got PDF file DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc] Calling connect() DEBUG SMTP: useEhlo true, useAuth false DEBUG: SMTPTransport trying to connect to host mail.raederlandree.com, port 25 DEBUG SMTP RCVD: 220 DELLPOWEREDGE.raederlandree.com ESMTP Server (Microsoft Exchange Internet Mail Service 5.5.2653.13) ready DEBUG: SMTPTransport connected to host mail.raederlandree.com, port: 25 /snip Once the connection to the SMTP server is established, nothing more happens. No errors, but the process just sits there. It doesn't cause Tomcat to die either, as I can stop the browser and make another request (with the same result). Now, here's the interesting bit. I've got Tomcat 4.1 running on a Windows 2000 laptop (for client demos), and the same code (the same WAR file, compiled on the linux box) works. The connection is established to the SMTP server, and the message is sent successfully. What gives? I've moved around the JavaMail libraries (originally they were in mywebapp/WEB-INF/lib, and I removed the JavaMail libraries from $TOMCAT_HOME/common/lib. Then I reversed it, moving the libraries from WEB-INF/lib to common/lib. Same result. Any ideas? TIA brian - 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: Tomcat 4.1/Linux/JavaMail Issue
On Fri, 2003-04-04 at 10:22, xyber wrote: you need JaF (Java Activation Framewrok aka activation.jar). put to the lib, and your app get working Oh, sorry. activation.jar is in there too, following around the other JavaMail libraries... Thanks brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XSL Stylesheet transformation in a servlet
Hi there Group. Not sure if anyone can help me with this here, but worth a shot. I was hoping someone would be able to help me with some code that Ive knocked up to test JDOM being used in a servlet. Quick Synopsis: Servlet gets hold of a stylesheet in its init() method and caches for future reuse.The doGet() method then sets up a database connection, uses the JDOMResultSetBuilder to get an XML representation of the record and uses this as the XMLSource. A transformation is then done on the XMLSource and I want this to be output to the browser for display.Everything compiles OK, I have setup tomcat, webxml, and jar files appropriately and the Servlet runs using http://127.0.0.1:8080/mywebapp/servlet/JDOMServlet.Many thanks for taking the time to read this. Much appreciated. Rgds JS I'm not sure how right my code is, but it runs with no output. Here's the code.. import javax.servlet.*; import javax.servlet.http.*; import javax.xml.transform.*; import javax.xml.transform.dom.*; import javax.xml.transform.stream.*; import org.jdom.*; import org.jdom.input.*; import org.jdom.output.*; import org.jdom.transform.*; import org.jdom.JDOMException; import org.jdom.contrib.input.ResultSetBuilder; import java.sql.*; import java.io.*; import java.io.IOException; import java.lang.*; public class JDOMServlet extends HttpServlet { private TransformerFactory tFactory = TransformerFactory.newInstance();private String url = jdbc:odbc:StudentDB; private ResultSet rs = null; private StreamSource xsltSource; public void init(ServletConfig config) throws ServletException { super.init(config); ServletContext context = config.getServletContext(); try { //Want to cache the stylesheet for future resuse //then it doesnt have to be loaded constantly xsltSource = new StreamSource(context.getResourceAsStream(/Web-Inf/viewStudentDetails.xsl));//---I think this is the problem line, it is LINE 35 --// Templates templates = tFactory.newTemplates(xsltSource);} catch (TransformerConfigurationException tce) { tce.printStackTrace(); } } public void doGet(HttpServletRequest request, HttpServletResponse response)throws ServletException, java.io.IOException { response.setContentType(text/html); //setup the database connection and use the ResultSetBuilder to generate//a JDOM XML document of a students details try { Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); Connection conn = DriverManager.getConnection(url,,); Statement stmt = conn.createStatement(); System.out.println(Connected to database); Namespace ns = Namespace.getNamespace(xhtml, http://w3.org/etc;); rs = stmt.executeQuery(SELECT * FROM tblStudent WHERE StudentID =9917217); System.out.println(Executing query:SELECT * FROM tblStudent WHEREStudentID = 9917217); ResultSetBuilder builder = new ResultSetBuilder(rs);Document doc = builder.build(); XMLOutputter xOutputter = new XMLOutputter( , true);xOutputter.output(doc, System.out); //get the JDOM document that was produced by the JDOM ResultSetBuilder//and convert to a normal dom document for use by the transformerprocessor org.jdom.output.DOMOutputter dOutputter = new org.jdom.output.DOMOutputter(); org.w3c.dom.Document domDocument = dOutputter.output(doc); Source xmlSource = new javax.xml.transform.dom.DOMSource(domDocument); //create the output result for the newly created XSLT document//this will allow me to output the result to the browserStreamResult result = new StreamResult response.getOutputStream());//get the transformer System.out.println(Preparing to create
Re: Tomcat 4.1 + Apache 2 + mod_jk2 inprocess woes
I've solved this inserting in workers2.properties the declaration [shm] file=/opt/apache2/logs/shm.file size=1048576 and touching the file /opt/apache2/logs/shm.file Unfortunately, I had already done this.. There are no shm.init(): No File errors, it's only the channel.jni and workers.jni errors which are giving me trouble. I keep getting these: [Thu Apr 03 20:28:12 2003] [error] workerEnv.initChannel() init failed for channel.jni:jni [Thu Apr 03 20:28:12 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onStartup [Thu Apr 03 20:28:12 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onShutdown So this question is still burning me up: 2) What must be done to init the jni channels and workers? What is the proper file format? I've seen many (MANY) references to mod_jk2 on the internet discuss using a workers.properties file, which looks extremely like the old 3.x version... I can't bring myself to believe that those are right (especially since if I add any of those commands to workers2.properties, it bombs out...) Using the examples in the docs, FAQ's, how to's and readmes results in this error log: - snip - [Thu Apr 03 20:28:09 2003] [notice] Apache configured -- resuming normal operations [Thu Apr 03 20:28:12 2003] [error] workerEnv.initChannel() init failed for channel.jni:jni [Thu Apr 03 20:28:12 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onStartup [Thu Apr 03 20:28:12 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onShutdown [Thu Apr 03 20:28:13 2003] [error] workerEnv.initChannel() init failed for channel.jni:jni [Thu Apr 03 20:28:13 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onStartup [Thu Apr 03 20:28:13 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onShutdown [Thu Apr 03 20:28:13 2003] [error] workerEnv.initChannel() init failed for channel.jni:jni [Thu Apr 03 20:28:13 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onStartup [Thu Apr 03 20:28:13 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onShutdown [Thu Apr 03 20:28:13 2003] [error] workerEnv.initChannel() init failed for channel.jni:jni [Thu Apr 03 20:28:13 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onStartup [Thu Apr 03 20:28:13 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onShutdown TomcatStarter: main() Try org.apache.tomcat.startup.Main Try org.apache.catalina.startup.BootstrapService Starting org.apache.catalina.startup.BootstrapService Created catalinaLoader in: /usr/local/jakarta/tomcat/server/lib [Thu Apr 03 20:28:16 2003] [error] mod_jk child init 1 0 Apr 3, 2003 8:28:17 PM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Apr 3, 2003 8:28:17 PM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Apr 3, 2003 8:28:19 PM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer - snip - As you can see, Tomcat IS launching.. The VM is coming up and the bootstrap is initialized... It's the channel.* and worker.* directives that are now failing.. This line causes my curiosity to peak as well, can anyone decrypt it: [Thu Apr 03 20:28:16 2003] [error] mod_jk child init 1 0 Can ANYONE help? Puh-lease? Ken M [EMAIL PROTECTED] -- Big Snip jk2.properties # list of needed handlers. handler.list=apr,request,container,channelJni # Or you can use the mod_jk2 directly #apr.jniModeSo=/usr/local/apache/modules/mod_jk2.so channelJni.disable = 0 # If you wish to start the Tomcat from inside web server then # you don't need any above directive. Here is shown the default # value for the apr that you can ommit apr.jniModeSo=inprocess -- Big Snip ### workers2.properties # Define the comunication channel [channel.jni:jni] #info=The jni channel, used if tomcat is started inprocess # Define the parameters for the Java Virtual Machine [vm:] info=Parameters used to load a JVM in the server process OPT=-Djava.class.path=$CLASSPATH:/usr/local/jakarta/tomcat/server/lib/tomcat-jk2.jar:/usr/local/jakarta/tomcat/bin/boots trap.jar:/usr/local/jakarta/tomcat/server/lib/catalina.jar:${TOMCAT_HOME}/server/lib/commons-digester.jar:/usr/local/jak arta/tomcat/common/lib/ant.jar:/usr/local/jakarta/tomcat/common/lib/commons-collections.jar:/usr/local/jakarta/tomcat/co mmon/lib/commons-logging-api.jar:/usr/local/jakarta/tomcat/common/lib/jasper-compiler.jar:/usr/local/jakarta/tomcat/comm
RE: How to disable persistent session ?
you would have to setup a context element for a StandardManager and set the path attribute to an invalid path or null. Context docBase=... bla= StandardManager path=null/ /Context -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 2:27 AM To: [EMAIL PROTECTED] Subject: How to disable persistent session ? Hi, I think this question has already been asked but not answered, so I submit it again. How can I disable persistent sessions in tomcat ? Why is it enabled by default ? thanks, Thomas - 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: XSL Stylesheet transformation in a servlet
Try switching Web-Inf for WEB-INF. i.e. all in uppercase Dave -Original Message- From: JS [mailto:[EMAIL PROTECTED] Sent: 04 April 2003 16:20 To: [EMAIL PROTECTED] Subject: XSL Stylesheet transformation in a servlet Hi there Group. Not sure if anyone can help me with this here, but worth a shot. I was hoping someone would be able to help me with some code that Ive knocked up to test JDOM being used in a servlet. Quick Synopsis: Servlet gets hold of a stylesheet in its init() method and caches for future reuse.The doGet() method then sets up a database connection, uses the JDOMResultSetBuilder to get an XML representation of the record and uses this as the XMLSource. A transformation is then done on the XMLSource and I want this to be output to the browser for display.Everything compiles OK, I have setup tomcat, webxml, and jar files appropriately and the Servlet runs using http://127.0.0.1:8080/mywebapp/servlet/JDOMServlet.Many thanks for taking the time to read this. Much appreciated. Rgds JS I'm not sure how right my code is, but it runs with no output. Here's the code.. import javax.servlet.*; import javax.servlet.http.*; import javax.xml.transform.*; import javax.xml.transform.dom.*; import javax.xml.transform.stream.*; import org.jdom.*; import org.jdom.input.*; import org.jdom.output.*; import org.jdom.transform.*; import org.jdom.JDOMException; import org.jdom.contrib.input.ResultSetBuilder; import java.sql.*; import java.io.*; import java.io.IOException; import java.lang.*; public class JDOMServlet extends HttpServlet { private TransformerFactory tFactory = TransformerFactory.newInstance();private String url = jdbc:odbc:StudentDB; private ResultSet rs = null; private StreamSource xsltSource; public void init(ServletConfig config) throws ServletException { super.init(config); ServletContext context = config.getServletContext(); try { //Want to cache the stylesheet for future resuse //then it doesnt have to be loaded constantly xsltSource = new StreamSource(context.getResourceAsStream(/Web- Inf/viewStudentDetails.xsl));//---I think this is the problem line, it is LINE 35 --// Templates templates = tFactory.newTemplates(xsltSource); } catch (TransformerConfigurationException tce) { tce.printStackTrace(); } } public void doGet(HttpServletRequest request, HttpServletResponse response)throws ServletException, java.io.IOException { response.setContentType(text/html); //setup the database connection and use the ResultSetBuilder to generate//a JDOM XML document of a students details try { Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); Connection conn = DriverManager.getConnection(url,,); Statement stmt = conn.createStatement(); System.out.println(Connected to database); Namespace ns = Namespace.getNamespace(xhtml, http://w3.org/etc;); rs = stmt.executeQuery(SELECT * FROM tblStudent WHERE StudentID = 9917217); System.out.println(Executing query:SELECT * FROM tblStudent WHEREStudentID = 9917217); ResultSetBuilder builder = new ResultSetBuilder(rs); Document doc = builder.build(); XMLOutputter xOutputter = new XMLOutputter( , true); xOutputter.output(doc, System.out); //get the JDOM document that was produced by the JDOM ResultSetBuilder//and convert to a normal dom document for use by the transformerprocessor org.jdom.output.DOMOutputter dOutputter = new org.jdom.output.DOMOutputter(); org.w3c.dom.Document domDocument = dOutputter.output(doc); Source xmlSource = new javax.xml.transform.dom.DOMSource(domDocument); //create the output result for the newly created XSLT document//this will allow me to output the result to the browserStreamResult result = new StreamResult response.getOutputStream()); //get the transformer
RE: XSL Stylesheet transformation in a servlet
Howdy, Not sure if anyone can help me with this here, but worth a shot. This sort of thing should be marked as [OFF-TOPIC] in the subject if you're going to post if to the list at all. public void init(ServletConfig config) throws ServletException { Override the init() method, the version with the config parameter, instead of this version. xsltSource = new StreamSource(context.getResourceAsStream(/Web- Inf/viewStudentDetails.xsl));//---I think this is the problem line, it is LINE 35 --// Print out what getResourceAsStream() produces. Make WEB-INF capitalized in the argument, as this is case sensitive. Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); Yikes ;) I dislike JdbcOdbc bridges but we'll leave that for now. ResultSetBuilder(rs); Print out the result set contents just to verify them. xOutputter.output(doc, System.out); Do you get any output to System.out? java.net.MalformedURLException at java.net.URL.init(URL.java:613) at java.net.URL.init(URL.java:476) at java.net.URL.init(URL.java:425) But the root causes was a TransformerConfigurationException it appears, from the bottom of your output, right? Yoav Shapira Millennium ChemInformatics 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: 4.1.24 Tag Lib problem
I do have a release method, but I am not sure if this is the issue. It is only one data member in my tadlib that is not being changed. The other five varibles are being generated fine. It is really wierd. I am really not sure what to look at. Thanks for your help. Paul R. Johnson Arnaud HERITIER [EMAIL PROTECTED]To: 'Tomcat Users List' [EMAIL PROTECTED] roup.comcc: Subject: RE: 4.1.24 Tag Lib problem 04/04/2003 02:15 AM Please respond to Tomcat Users List Do you use the release method on your tag ??? If yes, you should know that this method isn't called in Tomcat between two uses of a tag (a same instance is reused several times). You should reinit all your internal instance variables in the doStartTag method. Arnaud -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoye : jeudi 3 avril 2003 18:36 A : [EMAIL PROTECTED] Objet : 4.1.24 Tag Lib problem Hello, I have looked over the archives, and I looked at my code. I am having an issue with only one thing. I am sending a url back to the client, but it only makes it to the first entry. The others are blank. (The url is dynamic) If I refresh the page all the links are gone. The code works fine in JBoss/Jetty, Was 3.5, WAS 4.0, WAS 5.0, Tomcat 4.04, etc. What should I be looking at to fix it? Thanks in Advance, Paul R. Johnson - 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: Using javax.sql.DataSource
You need to use the parameter username, not user. Things changed between when Tomcat was using Tyrex and when it started using DBCP for connection pooling. Jake At 09:25 AM 4/4/2003 +0100, you wrote: ** Este email assim como os ficheiros que possa ter em anexo são confidenciais e para uso exclusivo da pessoa ou organização para o qual foi enviado. Se recebeu este email por engano por favor notifique [EMAIL PROTECTED] Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper não tendo sido encontrados virus. www.mimesweeper.com *** Hi, I am trying to implement a Connection Pools. My context is tomcatexample, and I build a tomcatexample.xml, that I copy to WEBAPPS. ?xml version='1.0' encoding='windows-1252'? Context path=/tomcatexample docBase=tomcatexample debug=0 reloadable=true Resource name=jdbc/tomcatexample auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/tomcatexample parameter nameuser/name valueuser/value /parameter parameter namepassword/name valuepassword /value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@bdtest:1521:srnd/value /parameter /ResourceParams In my web.xml, I put: resource-ref description This is a BD example /description res-ref-namejdbc/tomcatexample/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref When I try to run it , it report the following error: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.commons.dbcp.DbcpException: java.sql.SQLException: invalid arguments in call at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConne ctionFactory.java) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnect ionFactory.java) at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPoo l.java) at org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool .java) at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja va) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java) at com.wiley.tomcatbook.ClientListPooledServlet.doGet(ClientListPooledServlet.j ava:51) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at
JSPC for TOMCAT 4.124 generates unexpected internal error
I'm doing a simple test to compile the checkbox JSP from the TOMCAT examples with the -webinc switch The JAVA and XML files are properly generates but jasper complains (unexpectedly ) that the web.xml file is no found here is the output fragment: 2003-04-04 04:21:34 - uriRoot implicitly set to /dsa1/apache/jakarta/tomcat/web apps/examples 2003-04-04 04:21:34 - Internal Error: File /WEB-INF/web.xml not found 2003-04-04 04:21:34 - Class name is: checkresult 2003-04-04 04:21:34 - Java file name is: /dsa1/apache/jakarta/tomcat/webapps/exa mples/jsp/checkbox/checkresult.java 2003-04-04 04:21:34 - Accepted org.apache.jasper.compiler.Parser$Declaration at /checkresult.jsp(8,0) 2003-04-04 04:21:34 - Accepted org.apache.jasper.compiler.Parser$Bean at /checkr esult.jsp(9,0) 2003-04-04 04:21:35 - Accepted org.apache.jasper.compiler.Parser$SetProperty at /checkresult.jsp(11,0) 2003-04-04 04:21:35 - Accepted org.apache.jasper.compiler.Parser$Scriptlet at /c heckresult.jsp(14,0) 2003-04-04 04:21:35 - Accepted org.apache.jasper.compiler.Parser$Scriptlet at /c heckresult.jsp(18,0) 2003-04-04 04:21:35 - Accepted org.apache.jasper.compiler.Parser$Scriptlet at /c heckresult.jsp(23,0) 2003-04-04 04:21:35 - Accepted org.apache.jasper.compiler.Parser$Scriptlet at /c heckresult.jsp(34,0) 2003-04-04 04:21:35 - Accepted org.apache.jasper.compiler.Parser$Scriptlet at /c heckresult.jsp(38,0) 2003-04-04 04:21:35 - Accepted org.apache.jasper.compiler.Parser$Scriptlet at /c heckresult.jsp(43,0) 2003-04-04 04:21:35 - Compiling with: -encoding UTF8 -classpath /sys$common/java $140/lib/tools.jar:/dsa1/apache/jakarta/tomcat/bin/bootstrap.jar:.:/dsa1/apache/ jakarta/tomcat/lib/jasper-compiler.jar:/dsa1/apache/jakarta/tomcat/lib/jasper-ru ntime.jar:/dsa1/apache/jakarta/tomcat/lib/naming-factory.jar:/dsa1/apache/jakart a/tomcat/common/lib/activation.jar:/dsa1/apache/jakarta/tomcat/common/lib/ant.ja r:/dsa1/apache/jakarta/tomcat/common/lib/commons-collections.jar:/dsa1/apache/ja karta/tomcat/common/lib/commons-dbcp.jar:/dsa1/apache/jakarta/tomcat/common/lib/ commons-logging-api.jar:/dsa1/apache/jakarta/tomcat/common/lib/commons-pool.jar: /dsa1/apache/jakarta/tomcat/common/lib/jasper-compiler.jar:/dsa1/apache/jakarta/ tomcat/common/lib/jasper-runtime.jar:/dsa1/apache/jakarta/tomcat/common/lib/jdbc 2_0-stdext.jar:/dsa1/apache/jakarta/tomcat/common/lib/jndi.jar:/dsa1/apache/jaka rta/tomcat/common/lib/jta-spec1_0_1.jar:/dsa1/apache/jakarta/tomcat/common/lib/j ta.jar:/dsa1/apache/jakarta/tomcat/common/lib/mail.jar:/dsa1/apache/jakarta/tomc at/common/lib/naming-common.jar:/dsa1/apache/jakarta/tomcat/common/lib/naming-fa ctory.jar:/dsa1/apache/jakarta/tomcat/common/lib/naming-resources.jar:/dsa1/apac he/jakarta/tomcat/common/lib/servlet.jar:/dsa1/apache/jakarta/tomcat/common/lib/ tyrex-0.9.7.0.jar:/dsa1/apache/jakarta/tomcat/common/lib/xerces.jar:/sys$common/ java$140/lib/tools.jar:/dsa1/apache/jakarta/tomcat/bin/bootstrap.jar:.:/dsa1/apa che/jakarta/tomcat/lib/jasper-compiler.jar:/dsa1/apache/jakarta/tomcat/lib/jaspe r-runtime.jar:/dsa1/apache/jakarta/tomcat/lib/naming-factory.jar:/dsa1/apache/ja karta/tomcat/common/lib/activation.jar:/dsa1/apache/jakarta/tomcat/common/lib/an t.jar:/dsa1/apache/jakarta/tomcat/common/lib/commons-collections.jar:/dsa1/apach e/jakarta/tomcat/common/lib/commons-dbcp.jar:/dsa1/apache/jakarta/tomcat/common/ lib/commons-logging-api.jar:/dsa1/apache/jakarta/tomcat/common/lib/commons-pool. jar:/dsa1/apache/jakarta/tomcat/common/lib/jasper-compiler.jar:/dsa1/apache/jaka rta/tomcat/common/lib/jasper-runtime.jar:/dsa1/apache/jakarta/tomcat/common/lib/ jdbc2_0-stdext.jar:/dsa1/apache/jakarta/tomcat/common/lib/jndi.jar:/dsa1/apache/ jakarta/tomcat/common/lib/jta-spec1_0_1.jar:/dsa1/apache/jakarta/tomcat/common/l ib/jta.jar:/dsa1/apache/jakarta/tomcat/common/lib/mail.jar:/dsa1/apache/jakarta/ tomcat/common/lib/naming-common.jar:/dsa1/apache/jakarta/tomcat/common/lib/namin g-factory.jar:/dsa1/apache/jakarta/tomcat/common/lib/naming-resources.jar:/dsa1/ apache/jakarta/tomcat/common/lib/servlet.jar:/dsa1/apache/jakarta/tomcat/common/ lib/tyrex-0.9.7.0.jar:/dsa1/apache/jakarta/tomcat/common/lib/xerces.jar -d /dsa1 /apache/jakarta/tomcat/webapps/examples/jsp/checkbox /dsa1/apache/jakarta/tomcat /webapps/examples/jsp/checkbox/checkresult.java Check the web.xml file is really there: bash$ pwd /dsa1/apache/jakarta/tomcat/webapps/examples/web-inf bash$ ls classes jsp web.xml bash$ OK, spurious or normal behaviour ? thanks in advance Marc Dufresne OpenVMS Ambassador Pre-Sales Large Accounts HP France tel: + 33.1.5762.5413 mob: + 33.6 7498 5608 fax: +33 1 5762.7630 e-mail : [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to disable persistent sessions
Not sure why it is enabled by default, but you can control it per-context using... Manager className=org.apache.catalina.session.PersistentManager debug=0 saveOnRestart=false maxActiveSessions=-1 minIdleSwap=-1 maxIdleSwap=-1 maxIdleBackup=-1 Store className=org.apache.catalina.session.FileStore/ /Manager You might be able to put this in the DefaultContext to make it apply to all contexts by default. Look in server.xml. It is a treasure trove of information Jake At 12:51 PM 4/4/2003 +0200, you wrote: Hi, I think this question has already been asked but not answered, so I submit it again. How can I disable persistent sessions in tomcat ? Why is it enabled by default ? thanks, Thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.io.IOException: Broken pipe
All, I am receiving java.io.IOException: Broken pipe in Catalina_log. Following are more details. 2003-04-04 09:23:08 Ajp13Processor[13041][33] process: invoke java.io.IOException: Broken pipe at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:83) at org.apache.ajp.Ajp13.send(Ajp13.java:525) at org.apache.ajp.RequestHandler.finish(RequestHandler.java:495) at org.apache.ajp.Ajp13.finish(Ajp13.java:395) at org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:484) 2003-04-04 09:23:08 Ajp13Processor[13041][33] recyling objects ... Any thoughts ? or Comments? Why I am getting this error. Your suggestions will be a great help! Thanks Narsi Kota - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1 + Apache 2 + mod_jk2 inprocess woes
Ken, have you read this thread? http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/msg91348.html I have been having similar problems. I changed my MPM module in apache but am having other problems now. What OS are you running tomcat and apache on? -Rob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.io.IOException: Broken pipe
try the coyote connector, and see if you have any luck filip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 7:48 AM To: [EMAIL PROTECTED] Subject: java.io.IOException: Broken pipe All, I am receiving java.io.IOException: Broken pipe in Catalina_log. Following are more details. 2003-04-04 09:23:08 Ajp13Processor[13041][33] process: invoke java.io.IOException: Broken pipe at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:83) at org.apache.ajp.Ajp13.send(Ajp13.java:525) at org.apache.ajp.RequestHandler.finish(RequestHandler.java:495) at org.apache.ajp.Ajp13.finish(Ajp13.java:395) at org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response. java:196) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:484) 2003-04-04 09:23:08 Ajp13Processor[13041][33] recyling objects ... Any thoughts ? or Comments? Why I am getting this error. Your suggestions will be a great help! Thanks Narsi Kota - 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]
[HELP] installing oracle thin driver for tomcat
Hello all! I am really stuck installing the mentioned driver (or might sth else be wrong?). What I have done up to date: - downloaded ojdbc14.jar form Oracle - copied it into tomcat/common/lib directory - set the classpath to point to the file - restarted all the stuff (tomcat, apache) - I use Tomcat 4.1.18 with j2sdk1.4.1_01 - we have Oracle 8.1.7 clients running on corresponding servers I think (unfortunatelly don't know the version for sure but the driver should work anyway?) the code I use to get connected: try { // DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); Class.forName(oracle.jdbc.driver.OracleDriver); } catch(ClassNotFoundException ex) { out.println(JDBC-Driver not found! + ex); } // _/\_ this still works Connection oConnection = DriverManager.getConnection(jdbc:oracle:thin:@dbtest:1605:abcd, myuser, mypass); crash boom bang . . . I'll attach the error-msg in the end Can anyone more experienced see what happens? Thanks for your help (and have a nice weekend!), Henning The error msg: javax.servlet.ServletException: java/sql/Savepoint at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471) at org.apache.jsp.tasks$jsp._jspService(tasks$jsp.java:128) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355) at org.apache.jsp.a_0005findex$jsp._jspService(a_0005findex$jsp.java:131) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458) at
RE: Test Application with out restart Tomcat
Thanks Michael it works! -Original Message- From: Tam, Michael [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 8:24 PM To: 'Tomcat Users List' Subject: RE: Test Application with out restart Tomcat I believe there is an attribute call 'reloadable' for the context element in server.xml. Set it to true for your webapp context and the webapp's servlets will reload when there are changes to them. Regards, Michael -Original Message- From: Srinivasu Gandu [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 4:37 PM To: 'Tomcat Users List' Subject: Test Application with out restart Tomcat What needs to be done if don't have to restart the server every time we make change to the servlet. - 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: XSL Stylesheet transformation in a servlet
Hi Yoav, Much appreciated for your analysis. Many thanks. I have a few questions. (1) When u say overide the init() method with the version with the config parameter, which version is this. public void init(ServletConfig config) is the only signiature I can find.(2)All the System.out.println commands in my servlet go to catalina.out in the logs directory. I dont actualy have a console output.(3) xOutputter.output(doc, System.out); Do you get any output to System.out? This does come, it was the xmlfile that was in my original mail, again, it also went to catalina.out. Does the WEB-INF ile have to be capatilised. I actually have it on my system as Web-inf.(4)Correct!, TransformerConfigurationException is the root cause. The only refernece to my program in the stack trace is at JDOMServlet.init(JDOMServlet.java:35) which is the line I highlighted below. Howdy, Not sure if anyone can help me with this here, but worth a shot. This sort of thing should be marked as [OFF-TOPIC] in the subject if you're going to post if to the list at all. public void init(ServletConfig config) throws ServletException { Override the init() method, the version with the config parameter, instead of this version. xsltSource = new StreamSource(context.getResourceAsStream(/Web- Inf/viewStudentDetails.xsl));//---I think this is the problem line, it is LINE 35 --// Print out what getResourceAsStream() produces. Make WEB-INF capitalized in the argument, as this is case sensitive. Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); Yikes ;) I dislike JdbcOdbc bridges but we'll leave that for now. ResultSetBuilder(rs); Print out the result set contents just to verify them. xOutputter.output(doc, System.out); Do you get any output to System.out? java.net.MalformedURLException at java.net.URL.init(URL.java:613) at java.net.URL.init(URL.java:476) at java.net.URL.init(URL.java:425) But the root causes was a TransformerConfigurationException it appears, from the bottom of your output, right? Yoav Shapira Millennium ChemInformatics 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]
Posting Resumes
Hi, I am creating a sample struts application using Tomcat in which a user can copy/paste a resume from microsoft word and post it. I noticed that a couple of characters from word are being transformed into other characters in my servlet/action class. I was wondering if anybody else has had such an experience. Example Sun Certified Java Programmer is being transformed to ?Sun Certified Java Programmer? Also, if anybody knows of a workaround/webserver setting changes, please let me know. Thanks! - Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more
System.out.println()
How do we use System.out.println(error + e) in the tomcat4.1.18 to see the error messages in the console.. Thanks -Srini - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat version number appears in header
Hi. The problem I am trying to solve is that the tomcat version number apears in the header of pages served by tomcat: HTTP/1.1 301 Moved Date: Fri, 04 Apr 2003 14:55:47 GMT Content-Type: text/html Location: my url Content-Length: 206 Servlet-Engine: Tomcat Web Server/3.3a Final ( JSP 1.1; Servlet 2.2 ) I have set the reportedname attribute in the Http10Connector in my server.xml file : Http10Connector port=8080 secure=false maxThreads=100 maxSpareThreads=50 minSpareThreads=10 reportedname = / As far as I can tell, there are no additional configuration files being used, and I have restarted the tomcat service (several times), while experimenting with modfiying and removing several tags in the server.xml file, but the version # continues to appear. Any suggestions? Thanks in advance, Tim O'Dowd
Tomcat 4.1.24 error
Hello everybody, can somebody help me.THe tomcat ver I am running is the latest 4.1.24 And this is the page I get no matter if I just use an HTML page or a jsp page with perfectly good java code. Is it my web.xml file that is in ROOT/WEB_INF/ that needs to be changed Thanks Robert HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at javax.servlet.ServletException.(Compiled Code) at org.apache.jasper.JasperException.(Compiled Code) at org.apache.jasper.compiler.DefaultErrorHandler.javacError(Compiled Code) at org.apache.jasper.compiler.ErrorDispatcher.javacError(Compiled Code) at org.apache.jasper.compiler.Compiler.generateClass(Compiled Code) at org.apache.jasper.compiler.Compiler.compile(Compiled Code) at org.apache.jasper.JspCompilationContext.compile(Compiled Code) at org.apache.jasper.servlet.JspServletWrapper.service(Compiled Code) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled Code) at org.apache.jasper.servlet.JspServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Compile d Code) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Compiled Code) at org.apache.catalina.core.StandardWrapperValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(Compiled Code) at org.apache.catalina.core.StandardContextValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(Compiled Code) at org.apache.catalina.core.StandardContext.invoke(Compiled Code) at org.apache.catalina.core.StandardHostValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorReportValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(Compiled Code) at org.apache.catalina.core.StandardEngineValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(Compiled Code) at org.apache.coyote.tomcat4.CoyoteAdapter.service(Compiled Code) at org.apache.coyote.http11.Http11Processor.process(Compiled Code) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onnection(Compiled Code) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Compiled Code) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Compiled Code) at java.lang.Thread.run(Thread.java:479) Apache Tomcat/4.1.24 __ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.io.IOException: Broken pipe
Filip, What is the coyote connector and what do I need to add in server.xml? Please advise. Thanks Narsi Kota Reuse Program Office ISS/App Dev. Center Freddie Mac Ph. (703) 918 8158 Filip Hanik [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] t cc: Subject: RE: java.io.IOException: Broken pipe 04/04/2003 10:54 AM Please respond to Tomcat Users List try the coyote connector, and see if you have any luck filip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 7:48 AM To: [EMAIL PROTECTED] Subject: java.io.IOException: Broken pipe All, I am receiving java.io.IOException: Broken pipe in Catalina_log. Following are more details. 2003-04-04 09:23:08 Ajp13Processor[13041][33] process: invoke java.io.IOException: Broken pipe at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:83) at org.apache.ajp.Ajp13.send(Ajp13.java:525) at org.apache.ajp.RequestHandler.finish(RequestHandler.java:495) at org.apache.ajp.Ajp13.finish(Ajp13.java:395) at org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response. java:196) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:484) 2003-04-04 09:23:08 Ajp13Processor[13041][33] recyling objects ... Any thoughts ? or Comments? Why I am getting this error. Your suggestions will be a great help! Thanks Narsi Kota - 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]
[OFF-TOPIC] RE: XSL Stylesheet transformation in a servlet
Howdy, (1) When u say overide the init() method with the version with the config parameter, which version is this. public void init(ServletConfig config) is the only signiature I can find. Then you're looking at an old version of the JavaDoc. You should override public void init() throws ServletException (3) xOutputter.output(doc, System.out); Do you get any output to System.out? This does come, it was the xmlfile that was in my original mail, again, it also went to catalina.out. OK, good. It's important to verify the results of your database query before trying to process them further, especially if further processing includes an expensive operation like XSLT. Does the WEB-INF ile have to be capatilised. I actually have it on my system as Web-inf. I've only ever seen it as capitalized. Capitalize it to be safe. It is definitely case-sensitive. Yoav Shapira Millennium ChemInformatics 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: java.io.IOException: Broken pipe
Howdy, Coyote is the nickname (as well as the class package name) for the newer HTTP 1.1 connector used by tomcat. I believe this connector is available but not the default with tomcat 4.0.6, and is the default connector in tomcat 4.1.x. It is faster, more robust, and more stable than the previous HTTP 1.1 connector. Look in your server.xml at the Connector elements. Read the connector configuration reference in the documentation. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 11:10 AM To: Tomcat Users List Subject: RE: java.io.IOException: Broken pipe Filip, What is the coyote connector and what do I need to add in server.xml? Please advise. Thanks Narsi Kota Reuse Program Office ISS/App Dev. Center Freddie Mac Ph. (703) 918 8158 Filip Hanik [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] t cc: Subject: RE: java.io.IOException: Broken pipe 04/04/2003 10:54 AM Please respond to Tomcat Users List try the coyote connector, and see if you have any luck filip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 7:48 AM To: [EMAIL PROTECTED] Subject: java.io.IOException: Broken pipe All, I am receiving java.io.IOException: Broken pipe in Catalina_log. Following are more details. 2003-04-04 09:23:08 Ajp13Processor[13041][33] process: invoke java.io.IOException: Broken pipe at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:83) at org.apache.ajp.Ajp13.send(Ajp13.java:525) at org.apache.ajp.RequestHandler.finish(RequestHandler.java:495) at org.apache.ajp.Ajp13.finish(Ajp13.java:395) at org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response. java:196) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:484) 2003-04-04 09:23:08 Ajp13Processor[13041][33] recyling objects ... Any thoughts ? or Comments? Why I am getting this error. Your suggestions will be a great help! Thanks Narsi Kota - 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] 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: Disabling redirect to admin
In that case, you should follow the suggestion of another reply to your question where they suggested removing the admin context. To do this, you will need to remove the admin.xml file from CATALINA_HOME/webapps and restart Tomcat. You will also need to be diligent about making sure that no other contexts under the same virtual host (Host ...) have naming conflicts with sub directories of your ROOT context. later, Jake At 04:10 PM 4/4/2003 +1000, you wrote: Yep, what you've said is definitely correct. However, right now my problem is that I've been put on a project which has already been made to redirect to http://localhost:8080/admin/adminlistcompanies.jsp. We use Action classes which redirect to URLs listed in a properties file. This properties file makes no notice of which context it is in. It doesn't matter if I put the whole web site in a separate context - clicking on the link will redirect to http://localhost:8080/admin/adminlistcompanies.jsp. The person who did something to overcome this has now left the company So, I'm in the bad position of trying to figure out how it was avoided to redirect to the wrong context (right now it redirects to http:/localhost:8080/admin/login.jsp instead of http://localhost:8080/admin/adminlistcompanies.jsp. If you could give me some suggestions it would be most appreciated. Thanks. -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Friday, 4 April 2003 3:53 PM To: Tomcat Users List Subject: Re: Disabling redirect to admin This is the very reason why ROOT is not a good idea to use for your context. If you want a default context, just add an index.html to the ROOT context to redirect to the context you want people to be at. For instance: http://localhost:8080/ redirects to... http://localhost:8080/mycontext/ Within mycontext you can have any directory hierarchy you want without clashing with the namespaces of other registered contexts on the server (such as the Tomcat admin context). So, you can now have... http://localhost:8080/mycontext/admin/ Use the root context for nothing other than docs and/or a redirect file to the context you want to have as the default on the server. Jake At 03:50 PM 4/4/2003 +1000, you wrote: Hi, I've got a link in my web site which goes to http://localhost:8080/admin/adminlistcompanies.jsp. Everytime I click on this link, it goes to the Tomcat web server administration tool login page. Is there a way I can disable this so that it goes to the correct URL? All my files are in webapps/ROOT. Thanks. - 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]
Password and session
Hello! I'm using HTTP authentication, the first time I enter in my web application, Tomcat ask me for my login and password, but if the session expires Tomcat do not ask me for it again. Is this normal? can I configure Tomcat to redirect to a specific page (for example the welcome page) if the session expires? Thanks! Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Password and session
Hello! I'm using HTTP authentication, the first time I enter in my web application, Tomcat ask me for my login and password, but if the session expires Tomcat do not ask me for it again. Is this normal? can I configure Tomcat to redirect to a specific page (for example the welcome page) if the session expires? Thanks! Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSPC for TOMCAT 4.124 generates unexpected internal error
Normal behavior. You need to change web-inf to WEB-INF. -Original Message- From: Dufresne, Marc [mailto:[EMAIL PROTECTED] I'm doing a simple test to compile the checkbox JSP from the TOMCAT examples with the -webinc switch The JAVA and XML files are properly generates but jasper complains (unexpectedly ) that the web.xml file is no found here is the output fragment: 2003-04-04 04:21:34 - uriRoot implicitly set to /dsa1/apache/jakarta/tomcat/web apps/examples 2003-04-04 04:21:34 - Internal Error: File /WEB-INF/web.xml not found Check the web.xml file is really there: bash$ pwd /dsa1/apache/jakarta/tomcat/webapps/examples/web-inf bash$ ls classes jsp web.xml bash$ OK, spurious or normal behaviour ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Password and session
Yes, Not authorized has the 401 http error code. So you should be able to set in web.xml (either conf/web.xml or /WEB-INF/web.xml) : error-page error-code401/error-code location/welcome.jsp/location /error-page Hope it helps -reynir -Original Message- From: Iago Toral [mailto:[EMAIL PROTECTED] Sent: 4. apríl 2003 16:25 To: [EMAIL PROTECTED] Subject: Password and session Hello! I'm using HTTP authentication, the first time I enter in my web application, Tomcat ask me for my login and password, but if the session expires Tomcat do not ask me for it again. Is this normal? can I configure Tomcat to redirect to a specific page (for example the welcome page) if the session expires? Thanks! Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lm tplus - 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]
error-page question...
someone probably has asked this question before and it's not exactly (or maybe it is) Tomcat question.. i have a header that i am including in every page of the application, and then i have an error page for errors. i want to include header in the error page so it looks like a standard page.. but header itself may cause a problem as it's not plain html, and i would get a recursive action. any quick suggestions? thanks, Vlad Vladimer Shioshvili QRC Division of Macro International Inc. 7315 Wisconsin Avenue, Suite 400W Bethesda, MD 20814 Phone: (301) 657 3077 ext. 155 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Listener ??
Hi All, I have poll stored in the application scope. It updates the poll count on copy stored on the app scope. I want to save the poll to the DB whenever.. 1. just before reloading of the application scope attribute poll. I can handle within application logic. 2. whenever context destroy or reload. (well, I will go with context destroy, since that has to happen first) can I get handle of objects on the application scope once context destroy is called? how?? I guess I will have to some kind of Listener. Anyone had a problem like this before?? I use struts 1.1. with tomcat 4.1.24. Thank you in advance for any replies. .anil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: System.out.println()
Hi, I am not sure it's possible to understand the question but... What kind of error are you refering to ?? If you mean exception you could do exception.printStackTrace(System.out); To print out the stacktrace (the most usefull bit of an exception). But you can of course always print out the exception like this : System.out.println(Exception + e.toString()); or System.out.println(Exception + e.getMessage()); On the other hand I recommend that you to check out log4j or some other logging mechanism so you can direct your error logs into a file and control what goes out there. Hope it helps -reynir -Original Message- From: Srinivasu Gandu [mailto:[EMAIL PROTECTED] Sent: 4. apríl 2003 16:05 To: 'Tomcat Users List' Subject: System.out.println() How do we use System.out.println(error + e) in the tomcat4.1.18 to see the error messages in the console.. Thanks -Srini - 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 question...
Howdy, Quick suggestion: make the header static. ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Vladimer Shioshvili [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 11:33 AM To: Tomcat Users List Subject: error-page question... someone probably has asked this question before and it's not exactly (or maybe it is) Tomcat question.. i have a header that i am including in every page of the application, and then i have an error page for errors. i want to include header in the error page so it looks like a standard page.. but header itself may cause a problem as it's not plain html, and i would get a recursive action. any quick suggestions? thanks, Vlad Vladimer Shioshvili QRC Division of Macro International Inc. 7315 Wisconsin Avenue, Suite 400W Bethesda, MD 20814 Phone: (301) 657 3077 ext. 155 - 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, 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: Listener ??
Howdy, Implement a ServletContextListener. Get whatever attribute you need from the ServletContext in the listener's contextDestroyed() method. Don't forget to register your listener in web.xml. Yoav Shapira Millennium ChemInformatics -Original Message- From: awc [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 11:35 AM To: 'Tomcat Users List' Subject: Listener ?? Hi All, I have poll stored in the application scope. It updates the poll count on copy stored on the app scope. I want to save the poll to the DB whenever.. 1. just before reloading of the application scope attribute poll. I can handle within application logic. 2. whenever context destroy or reload. (well, I will go with context destroy, since that has to happen first) can I get handle of objects on the application scope once context destroy is called? how?? I guess I will have to some kind of Listener. Anyone had a problem like this before?? I use struts 1.1. with tomcat 4.1.24. Thank you in advance for any replies. .anil - 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, 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]
Tomcat Heap creep
I'm running tomcat 4.1.18, with Apache 2.0 on a Solaris 8 box. When I netstat on the Tomcat connections, after a heavy load on the server and the server is crawling, I get very large number of established connections, well above the number on my connector's maxProcessors and acceptCount. How and why does this happen? Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=200 enableLookups=false redirectPort=8443 acceptCount=150 debug=5 connectionTimeout=6 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ If I suspect that my application has a memory leak (I've turned up -Xms -Xms up to 1024), how can I narrow down where it is at? Is there a way to get stats on the servlets and jsps? Thanks, John This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. We may monitor email to and from our network. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk integration, local_worker, session capping/bleeding....
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/doc/jk/workershowto.html contains the following text: 'We need a graceful shut down of a node for maintenance. The balancer in front asks a special port on each node periodically. If we want to remove a node from the cluster, we switch off this port. The loadbalancer can't connect to it and marks the node as down. But we don't move the sessions to another node. In this environment it is an error if the balancer sends a request without a session to an apache+mod_jk+tomcat which port is switched off. And if the load balancer determines that a node is down no other node is allowed to send a request without a session to it. Only requests with old sessions on the switched off node would be routed to this node. After some time nobody uses the old sessions and the sessions will time out. Then nobody uses this node, because all session are gone and the node is unreachable without a session-id in the request. If someone uses a session which timed out, our servlet system sends a redirect response without a session id to the browser. This is necessary for me, because on a switched off node apache and tomcat can still be up and running, but they are in an old state and should only be asked for valid old sessions. After the last session timed out, I could update the node etc. without killing sessions or moving them to another node. Sometimes we have a lot of big objects in our sessions, so it would be really time consuming to move them.' My reading of this is that I can dynamically tell TC to stop accepting new sessions. It will notify mod_jk and thenceforth only requests already bound to existing sessions hosted in this TC instance will be forwarded from mod_jk. I have scoured the web, mailing list archives and src code, most likely with the wrong keywords, trying to find references explaining, how I can tell TC that I want to bleed the existing sessions off it, using this functionality. I understand and use the support for session affinity via jvmRoute and other worker properties. I would now like to extend what I have to support the graceful shutdown on TC nodes without the loss of session data. I do not want to persist or otherwise distribute these sessions. Can anyone point me in the right direction ? Thanks for your time, Jules -- This e-mail is intended for the named addressee only. It may contain confidential and/or privileged information. If you have received this message in error, please let us know and then delete this message from your system. You should not copy the message, use it for any purpose or disclose its contents to anyone. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem with make service tomcat
in my istallation j2sdk 1.4.1_02 and tomcat 3.2.3 using jk_nt_service the service non start :-( i have make configuration to workers.properties) no error message tanks leandro
RE: Tomcat Heap creep
Howdy, When I netstat on the Tomcat connections, after a heavy load on the server and the server is crawling, I get very large number of established connections, well above the number on my connector's maxProcessors and acceptCount. How and why does this happen? First of all, don't mistake dead sockets for established connections. What is the socket state as reported by netstat? What's your OS by the way? If I suspect that my application has a memory leak (I've turned up -Xms - Xms up to 1024), how can I narrow down where it is at? Is there a way to get stats on the servlets and jsps? With a profiler, e.g. OptimizeIt or JProbe, good logging, and code inspections. OptimizeIt will attach to tomcat 4.x out of the box. Yoav Shapira Millennium ChemInformatics 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]
Issuing self-signed certificates to users for SSLv3
Hi there, I know it's not absolutely tomcat-specific, but maybe another Tomcat-user has come across this issue. We want to set up a Certificate Authority and issue self-signed certificates to users which then will use SSLv3 client certificate authentication to authenticate with Tomcat. Does anybody know an easy tool to generate certificates and package them into PKCS #12 files (PFX-files, password-protected). Thanks alot Johannes
Single authentication between IIS Tomcat - My ip-based solution okay?
Hello Let me preface by saying my knowledge and experience with seurity is primitive. I am now working on a project wherein we have a set of ASP pages with a custom authentication process. I have embedded a servlet into one of these asp pages but want to avoid making the user authenticate twice (once for the ASP pages, once again to access the servlet). To that end, I have been doing a lot of online research, but haven't found any pre-existing solutions (which surprises me). First question - does anyone know of anything already out there? If I do have to create my own solution, I was thinking of having IIS, on the user's authentication, store the IP address of the authenticating user in a file on the server (say %TOMCAT%\conf\auth-users.xml or something). Then, when the user attempts to access the servlet, a custom Realm would check to see if his/her ip is in auth-users.xml and grant/deny access based on that. My question is - is this feasible? Equally important, is it truly secure? Thanks for helping out a total security n00b. - John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: error-page question...
well, that is a qood suggestion, but I would prefer something different - meaning, not having to make header static... At 11:39 AM 4/4/2003, you wrote: Howdy, Quick suggestion: make the header static. ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Vladimer Shioshvili [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 11:33 AM To: Tomcat Users List Subject: error-page question... someone probably has asked this question before and it's not exactly (or maybe it is) Tomcat question.. i have a header that i am including in every page of the application, and then i have an error page for errors. i want to include header in the error page so it looks like a standard page.. but header itself may cause a problem as it's not plain html, and i would get a recursive action. any quick suggestions? thanks, Vlad Vladimer Shioshvili QRC Division of Macro International Inc. 7315 Wisconsin Avenue, Suite 400W Bethesda, MD 20814 Phone: (301) 657 3077 ext. 155 - 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, 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] Vladimer Shioshvili QRC Division of Macro International Inc. 7315 Wisconsin Avenue, Suite 400W Bethesda, MD 20814 Phone: (301) 657 3077 ext. 155 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSPC for TOMCAT 4.124 generates unexpected internal error
the lower case is an artefact of GNV (BASH shell for OpenVMS) The actuall directory name *IS* in caps when watching JSPC do it's file search up the tree, it does in fact find the directory porperly. next? Marc Dufresne OpenVMS Ambassador Pre-Sales Large Accounts HP France ( : + 33.1.5762.5413 e-mail : [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Karr, David [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 6:26 PM To: Tomcat Users List Subject: RE: JSPC for TOMCAT 4.124 generates unexpected internal error Normal behavior. You need to change web-inf to WEB-INF. -Original Message- From: Dufresne, Marc [mailto:[EMAIL PROTECTED] I'm doing a simple test to compile the checkbox JSP from the TOMCAT examples with the -webinc switch The JAVA and XML files are properly generates but jasper complains (unexpectedly ) that the web.xml file is no found here is the output fragment: 2003-04-04 04:21:34 - uriRoot implicitly set to /dsa1/apache/jakarta/tomcat/web apps/examples 2003-04-04 04:21:34 - Internal Error: File /WEB-INF/web.xml not found Check the web.xml file is really there: bash$ pwd /dsa1/apache/jakarta/tomcat/webapps/examples/web-inf bash$ ls classes jsp web.xml bash$ OK, spurious or normal behaviour ? - 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: Password and session
Thank you very much !! Does anybody know how can I force Tomcat to ask me for a password again when the session expires? -- On Fri, 4 Apr 2003 16:26:07 Reynir Hübner wrote: Yes, Not authorized has the 401 http error code. So you should be able to set in web.xml (either conf/web.xml or /WEB-INF/web.xml) : error-page error-code401/error-code location/welcome.jsp/location /error-page Hope it helps -reynir -Original Message- From: Iago Toral [mailto:[EMAIL PROTECTED] Sent: 4. apríl 2003 16:25 To: [EMAIL PROTECTED] Subject: Password and session Hello! I'm using HTTP authentication, the first time I enter in my web application, Tomcat ask me for my login and password, but if the session expires Tomcat do not ask me for it again. Is this normal? can I configure Tomcat to redirect to a specific page (for example the welcome page) if the session expires? Thanks! Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lm tplus - 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] Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Heap creep
I am on Solaris 8 and have scripted a netstat -an | grep 8009 | grep -c ESTABLISHED. Weighing total grep -c 8009 vs grep 8009 | grep -c ESTABLISHED I'm getting numbers like 847 vs 542. I'm assuming that ESTABLISHED should not rise above maxConnections + acceptCount. Most of the other connections are in the SYN_SENT state. Any other tools outside of third party profilers? - John Howdy, When I netstat on the Tomcat connections, after a heavy load on the server and the server is crawling, I get very large number of established connections, well above the number on my connector's maxProcessors and acceptCount. How and why does this happen? First of all, don't mistake dead sockets for established connections. What is the socket state as reported by netstat? What's your OS by the way? If I suspect that my application has a memory leak (I've turned up -Xms - Xms up to 1024), how can I narrow down where it is at? Is there a way to get stats on the servlets and jsps? With a profiler, e.g. OptimizeIt or JProbe, good logging, and code inspections. OptimizeIt will attach to tomcat 4.x out of the box. Yoav Shapira Millennium ChemInformatics 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 email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. We may monitor email to and from our network. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [HELP] installing oracle thin driver for tomcat
Be sure the SQLNet layer is installed on the Tomcat server. Ensure the TNSNames.ora and sqlnet.ora are configured correctly for your environment Use classes12.jar for 8i and above (classes111.jar/zip) for 7 -Original Message- From: Henning Heil [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 10:00 AM To: Tomcat Users List Subject: [HELP] installing oracle thin driver for tomcat Hello all! I am really stuck installing the mentioned driver (or might sth else be wrong?). What I have done up to date: - downloaded ojdbc14.jar form Oracle - copied it into tomcat/common/lib directory - set the classpath to point to the file - restarted all the stuff (tomcat, apache) - I use Tomcat 4.1.18 with j2sdk1.4.1_01 - we have Oracle 8.1.7 clients running on corresponding servers I think (unfortunatelly don't know the version for sure but the driver should work anyway?) the code I use to get connected: try { // DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); Class.forName(oracle.jdbc.driver.OracleDriver); } catch(ClassNotFoundException ex) { out.println(JDBC-Driver not found! + ex); } // _/\_ this still works Connection oConnection = DriverManager.getConnection(jdbc:oracle:thin:@dbtest:1605:abcd, myuser, mypass); crash boom bang . . . I'll attach the error-msg in the end Can anyone more experienced see what happens? Thanks for your help (and have a nice weekend!), Henning The error msg: javax.servlet.ServletException: java/sql/Savepoint at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:471) at org.apache.jsp.tasks$jsp._jspService(tasks$jsp.java:128) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:201) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:683) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch er.java:431) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher .java:355) at org.apache.jsp.a_0005findex$jsp._jspService(a_0005findex$jsp.java:131) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:201) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
RE: Tomcat Heap creep
Howdy, I am on Solaris 8 and have scripted a netstat -an | grep 8009 | grep -c ESTABLISHED. Weighing total grep -c 8009 vs grep 8009 | grep -c ESTABLISHED I'm getting numbers like 847 vs 542. I'm assuming that ESTABLISHED should not rise above maxConnections + acceptCount. Most of the other connections are in the SYN_SENT state. I have a few Solaris 8 servers as well, and those are the exact commands I use to test these things. I agree with your assumption as stated above, and have tested my apps to see that the above assumption is true. So I have no clue why you're seeing strange behavior. Do you have the Solaris OS patches required for your JDK? Yoav Shapira Millennium ChemInformatics 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: Issuing self-signed certificates to users for SSLv3
Try BouncyCastle (www.bouncycastle.org) R [EMAIL PROTECTED] wrote: Hi there, I know it's not absolutely tomcat-specific, but maybe another Tomcat-user has come across this issue. We want to set up a Certificate Authority and issue self-signed certificates to users which then will use SSLv3 client certificate authentication to authenticate with Tomcat. Does anybody know an easy tool to generate certificates and package them into PKCS #12 files (PFX-files, password-protected). Thanks alot Johannes A R K E M E D I A T E C H N O L O G I E S L T D VIEW POINTBASING VIEWBASINGSTOKEHAMPSHIRERG21 4RG http://www.arkemedia.com mailto:[EMAIL PROTECTED] Tel : +44 1256 869 200 Fax : +44 1256 329 119 The information in this e-mail and in any attachments is confidential and is intended solely for the attention and use of the named addressee(s). If you are not the intended recipient, or a person responsible for passing it on to the intended recipient, you are not authorised to hold a copy of this information and you must therefore not disclose, copy, distribute, or retain this message or any part of it. MAILTO:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.24 error
I'm getting the same error since moving to Tomcat 4.1.24. I've seen the question in google searches but no answers. I could use help as well!! -Original Message- From: Robert R [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 9:37 AM To: [EMAIL PROTECTED] Subject: Tomcat 4.1.24 error Hello everybody, can somebody help me.THe tomcat ver I am running is the latest 4.1.24 And this is the page I get no matter if I just use an HTML page or a jsp page with perfectly good java code. Is it my web.xml file that is in ROOT/WEB_INF/ that needs to be changed Thanks Robert HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at javax.servlet.ServletException.(Compiled Code) at org.apache.jasper.JasperException.(Compiled Code) at org.apache.jasper.compiler.DefaultErrorHandler.javacError(Compiled Code) at org.apache.jasper.compiler.ErrorDispatcher.javacError(Compiled Code) at org.apache.jasper.compiler.Compiler.generateClass(Compiled Code) at org.apache.jasper.compiler.Compiler.compile(Compiled Code) at org.apache.jasper.JspCompilationContext.compile(Compiled Code) at org.apache.jasper.servlet.JspServletWrapper.service(Compiled Code) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled Code) at org.apache.jasper.servlet.JspServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Compile d Code) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Compiled Code) at org.apache.catalina.core.StandardWrapperValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(Compiled Code) at org.apache.catalina.core.StandardContextValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(Compiled Code) at org.apache.catalina.core.StandardContext.invoke(Compiled Code) at org.apache.catalina.core.StandardHostValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorReportValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(Compiled Code) at org.apache.catalina.core.StandardEngineValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(Compiled Code) at org.apache.coyote.tomcat4.CoyoteAdapter.service(Compiled Code) at org.apache.coyote.http11.Http11Processor.process(Compiled Code) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onnection(Compiled Code) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Compiled Code) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Compiled Code) at java.lang.Thread.run(Thread.java:479) Apache Tomcat/4.1.24 __ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To
RE: Tomcat 4.1.24 error
Howdy, Out of curiosity: have you tried taking the compiled JSP from tomcat's work directory and compiling it with javac yourself? Yoav Shapira Millennium ChemInformatics -Original Message- From: HAMILTON, DALE K (SBCSI) [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 12:12 PM To: 'Tomcat Users List' Subject: RE: Tomcat 4.1.24 error I'm getting the same error since moving to Tomcat 4.1.24. I've seen the question in google searches but no answers. I could use help as well!! -Original Message- From: Robert R [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 9:37 AM To: [EMAIL PROTECTED] Subject: Tomcat 4.1.24 error Hello everybody, can somebody help me.THe tomcat ver I am running is the latest 4.1.24 And this is the page I get no matter if I just use an HTML page or a jsp page with perfectly good java code. Is it my web.xml file that is in ROOT/WEB_INF/ that needs to be changed Thanks Robert HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at javax.servlet.ServletException.(Compiled Code) at org.apache.jasper.JasperException.(Compiled Code) at org.apache.jasper.compiler.DefaultErrorHandler.javacError(Compiled Code) at org.apache.jasper.compiler.ErrorDispatcher.javacError(Compiled Code) at org.apache.jasper.compiler.Compiler.generateClass(Compiled Code) at org.apache.jasper.compiler.Compiler.compile(Compiled Code) at org.apache.jasper.JspCompilationContext.compile(Compiled Code) at org.apache.jasper.servlet.JspServletWrapper.service(Compiled Code) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled Code) at org.apache.jasper.servlet.JspServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Compil e d Code) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Compiled Code) at org.apache.catalina.core.StandardWrapperValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(Compiled Code) at org.apache.catalina.core.StandardContextValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(Compiled Code) at org.apache.catalina.core.StandardContext.invoke(Compiled Code) at org.apache.catalina.core.StandardHostValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorReportValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(Compiled Code) at org.apache.catalina.core.StandardEngineValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(Compiled Code) at org.apache.coyote.tomcat4.CoyoteAdapter.service(Compiled Code) at org.apache.coyote.http11.Http11Processor.process(Compiled Code) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process C onnection(Compiled Code) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Compiled Code) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Compiled Code) at java.lang.Thread.run(Thread.java:479) Apache Tomcat/4.1.24 __ Do you Yahoo!? Yahoo! Tax Center - File
RE: Tomcat Heap creep
Patches... Great idea, I'm not sure but I will check. I'm using jdk1.4.1_01, could you give a list of patches or where to go to find the list. We just installed a bunch, but I would like to make sure. Thanks. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 11:05 AM To: Tomcat Users List Subject: RE: Tomcat Heap creep Howdy, I am on Solaris 8 and have scripted a netstat -an | grep 8009 | grep -c ESTABLISHED. Weighing total grep -c 8009 vs grep 8009 | grep -c ESTABLISHED I'm getting numbers like 847 vs 542. I'm assuming that ESTABLISHED should not rise above maxConnections + acceptCount. Most of the other connections are in the SYN_SENT state. I have a few Solaris 8 servers as well, and those are the exact commands I use to test these things. I agree with your assumption as stated above, and have tested my apps to see that the above assumption is true. So I have no clue why you're seeing strange behavior. Do you have the Solaris OS patches required for your JDK? Yoav Shapira Millennium ChemInformatics 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 email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. We may monitor email to and from our network. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: System.out.println()
Sorry about the confusion in the question.. my intention is to find out the variable values.. I think I got.. Thanks - srini. -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 11:31 AM To: Tomcat Users List Subject: RE: System.out.println() Hi, I am not sure it's possible to understand the question but... What kind of error are you refering to ?? If you mean exception you could do exception.printStackTrace(System.out); To print out the stacktrace (the most usefull bit of an exception). But you can of course always print out the exception like this : System.out.println(Exception + e.toString()); or System.out.println(Exception + e.getMessage()); On the other hand I recommend that you to check out log4j or some other logging mechanism so you can direct your error logs into a file and control what goes out there. Hope it helps -reynir -Original Message- From: Srinivasu Gandu [mailto:[EMAIL PROTECTED] Sent: 4. apríl 2003 16:05 To: 'Tomcat Users List' Subject: System.out.println() How do we use System.out.println(error + e) in the tomcat4.1.18 to see the error messages in the console.. Thanks -Srini - 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: Tomcat Heap creep
Howdy, It's deviously difficult to find on Sun's site: http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/J2SE Yoav Shapira Millennium ChemInformatics -Original Message- From: O'Neill, John [mailto:John.O'[EMAIL PROTECTED] Sent: Friday, April 04, 2003 12:17 PM To: 'Tomcat Users List' Subject: RE: Tomcat Heap creep Patches... Great idea, I'm not sure but I will check. I'm using jdk1.4.1_01, could you give a list of patches or where to go to find the list. We just installed a bunch, but I would like to make sure. Thanks. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 11:05 AM To: Tomcat Users List Subject: RE: Tomcat Heap creep Howdy, I am on Solaris 8 and have scripted a netstat -an | grep 8009 | grep -c ESTABLISHED. Weighing total grep -c 8009 vs grep 8009 | grep -c ESTABLISHED I'm getting numbers like 847 vs 542. I'm assuming that ESTABLISHED should not rise above maxConnections + acceptCount. Most of the other connections are in the SYN_SENT state. I have a few Solaris 8 servers as well, and those are the exact commands I use to test these things. I agree with your assumption as stated above, and have tested my apps to see that the above assumption is true. So I have no clue why you're seeing strange behavior. Do you have the Solaris OS patches required for your JDK? Yoav Shapira Millennium ChemInformatics 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 email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. We may monitor email to and from our network. *** * - 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, 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: Issuing self-signed certificates to users for SSLv3
openssl is what I have been using. PS. If you are doing SSL using a tomcat connector, I could use some help. My servlets can only get the user's certificate when I run tomcat in stand-alone mode. I would like it if apache could handle the SSL, and pass of servlet processing to tomcat. [EMAIL PROTECTED] wrote: Hi there, I know it's not absolutely tomcat-specific, but maybe another Tomcat-user has come across this issue. We want to set up a Certificate Authority and issue self-signed certificates to users which then will use SSLv3 client certificate authentication to authenticate with Tomcat. Does anybody know an easy tool to generate certificates and package them into PKCS #12 files (PFX-files, password-protected). Thanks alot Johannes -- Mark Webb Software Engineer Dolphin Technology 474 Phoenix Drive Rome, NY 13441-4911 Phone : 315.838.7000 : 315.838.7024 Fax : 315.838.7096 Email : [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem deploying an app
Hi, I'm using Tomcat (TC) 4.1.18 with Apache 2.0.43 with several virtual hosts. I'm able to serve up plain old jsp files okay, but when I try to reference any of the java code I've written I get a message like: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null The problem is my app 'classes' directory is not in the classpath. How do I get TC to recognize my app? I've used the TC manager application to install it and it shows as being loaded. When I stop / start TC, my app is gone! How do I make it persistent? Where does the manager app keep its data? I 'thought' I had added it to the server.xml file. Thanks in advance for your help, Frank = __ My full time permanent email address is always: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk2 / Apache 2 / mod_rewrite virtual hosts
Hello, I am trying to setup tomcat running on a machine that uses mod_rewrite seperate requests between two domains, domain.com and domain.net. I want to setup domain.net to integrate with tomcat, but only that domain. I am not using the VirtualHost directive at all, as I only have 1 IP. Is there a straight forward way to configure mod_jk2 to use just that one domain, or do I need to use some creative re-writing for that as well? Thanks Marc Boorshtein -- Marc Boorshtein [EMAIL PROTECTED] signature.asc Description: This is a digitally signed message part
[OFF-TOPIC] Re: Issuing self-signed certificates to users for SSLv3
On 4 April 2003, [EMAIL PROTECTED] wrote: I know it's not absolutely tomcat-specific, but maybe another Tomcat-user has come across this issue. We want to set up a Certificate Authority and issue self-signed certificates to users which then will use SSLv3 client certificate authentication to authenticate with Tomcat. Does anybody know an easy tool to generate certificates and package them into PKCS #12 files (PFX-files, password-protected). You can use OpenSSL on a unix/linux box. It has scripts all set up to create your dummy CA certificate. You can then use that cert to sign SSL cert requests for your server or to generate client certificates. Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Single authentication between IIS Tomcat - My ip-based solutionokay?
John, You definitely don't want to rely on an IP address, which can be spoofed, proxied for use with many users (as in the case of AOL), and change between HTTP requests with some proxy servers. What you're looking for is a web single sign-on solution. I'm in the process of writing a white paper on security requirements that should be considered for a web single sign on solution and will send you a link to the document when I post it. Gary John Klancer wrote: Hello Let me preface by saying my knowledge and experience with seurity is primitive. I am now working on a project wherein we have a set of ASP pages with a custom authentication process. I have embedded a servlet into one of these asp pages but want to avoid making the user authenticate twice (once for the ASP pages, once again to access the servlet). To that end, I have been doing a lot of online research, but haven't found any pre-existing solutions (which surprises me). First question - does anyone know of anything already out there? If I do have to create my own solution, I was thinking of having IIS, on the user's authentication, store the IP address of the authenticating user in a file on the server (say %TOMCAT%\conf\auth-users.xml or something). Then, when the user attempts to access the servlet, a custom Realm would check to see if his/her ip is in auth-users.xml and grant/deny access based on that. My question is - is this feasible? Equally important, is it truly secure? Thanks for helping out a total security n00b. - John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gary Gwin http://www.cafesoft.com * * * * The Cafesoft Access Management System, Cams, is security* * software that provides single sign-on authentication and* * centralized access control for Apache, Tomcat, and custom * * resources. * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
modjk2 2.0.2 RPMs
Is anyone working on a new rpm distribution of modjk2 2.0.2, the latest rpm available from the jakarta site is 2.0.1, and of course it would be nice to take advantage of any bug fixes in 2.0.2. I'd rather use an rpm because of the ease of administration. Thank you for any information that you might have. Alberto --- Alberto J. Chinique Network Engineer LEROS Technologies Corporation 9990 Lee Highway Suite 500 Fairfax, VA 22030 (703) 691-1506 x241 [EMAIL PROTECTED]
RE: mod_jk2 / Apache 2 / mod_rewrite virtual hosts
If you are not using ssl you may wish to consider name based virtual hosting VirtualHost * ServerName domain.com /VirtualHost VirtualHost * ServerName domain.net mod_jk stuff /VirtualHost the apache documentation goes into this more fully -Original Message- From: Marc Boorshtein [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 10:40 AM To: Tomcat Users List Subject: mod_jk2 / Apache 2 / mod_rewrite virtual hosts Hello, I am trying to setup tomcat running on a machine that uses mod_rewrite seperate requests between two domains, domain.com and domain.net. I want to setup domain.net to integrate with tomcat, but only that domain. I am not using the VirtualHost directive at all, as I only have 1 IP. Is there a straight forward way to configure mod_jk2 to use just that one domain, or do I need to use some creative re-writing for that as well? Thanks Marc Boorshtein -- Marc Boorshtein [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Disabling redirect to admin
On our system, we've changed the uri for admin and manager to /tomcat/admin and /tomcat/manager, respectively. This to me seems like a good and obvious change since /admin is way to generic and too many things want to own that name. The change is made in admin.xml and manager.xml, in the webapps directory. Since the applications themselves do not live in webapps, and since you can rename admin.xml and manager.xml and change their context names, this should not be a difficult fix to get it out of your way. Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com [EMAIL PROTECTED] 4/3/03 11:10:16 PM Yep, what you've said is definitely correct. However, right now my problem is that I've been put on a project which has already been made to redirect to http://localhost:8080/admin/adminlistcompanies.jsp. We use Action classes which redirect to URLs listed in a properties file. This properties file makes no notice of which context it is in. It doesn't matter if I put the whole web site in a separate context - clicking on the link will redirect to http://localhost:8080/admin/adminlistcompanies.jsp. The person who did something to overcome this has now left the company So, I'm in the bad position of trying to figure out how it was avoided to redirect to the wrong context (right now it redirects to http:/localhost:8080/admin/login.jsp instead of http://localhost:8080/admin/adminlistcompanies.jsp. If you could give me some suggestions it would be most appreciated. Thanks. -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Friday, 4 April 2003 3:53 PM To: Tomcat Users List Subject: Re: Disabling redirect to admin This is the very reason why ROOT is not a good idea to use for your context. If you want a default context, just add an index.html to the ROOT context to redirect to the context you want people to be at. For instance: http://localhost:8080/ redirects to... http://localhost:8080/mycontext/ Within mycontext you can have any directory hierarchy you want without clashing with the namespaces of other registered contexts on the server (such as the Tomcat admin context). So, you can now have... http://localhost:8080/mycontext/admin/ Use the root context for nothing other than docs and/or a redirect file to the context you want to have as the default on the server. Jake At 03:50 PM 4/4/2003 +1000, you wrote: Hi, I've got a link in my web site which goes to http://localhost:8080/admin/adminlistcompanies.jsp. Everytime I click on this link, it goes to the Tomcat web server administration tool login page. Is there a way I can disable this so that it goes to the correct URL? All my files are in webapps/ROOT. Thanks. - 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: mod_jk2 / Apache 2 / mod_rewrite virtual hosts
I tried that, but it would all ways default to the first VirtualHost. Marc On Fri, 2003-04-04 at 12:36, PELOQUIN,JEFFREY (HP-Boise,ex1) wrote: If you are not using ssl you may wish to consider name based virtual hosting VirtualHost * ServerName domain.com /VirtualHost VirtualHost * ServerName domain.net mod_jk stuff /VirtualHost the apache documentation goes into this more fully -Original Message- From: Marc Boorshtein [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 10:40 AM To: Tomcat Users List Subject: mod_jk2 / Apache 2 / mod_rewrite virtual hosts Hello, I am trying to setup tomcat running on a machine that uses mod_rewrite seperate requests between two domains, domain.com and domain.net. I want to setup domain.net to integrate with tomcat, but only that domain. I am not using the VirtualHost directive at all, as I only have 1 IP. Is there a straight forward way to configure mod_jk2 to use just that one domain, or do I need to use some creative re-writing for that as well? Thanks Marc Boorshtein -- Marc Boorshtein [EMAIL PROTECTED] signature.asc Description: This is a digitally signed message part
Re: mod_jk2 / Apache 2 / mod_rewrite virtual hosts
One IP, multiple domains = name-based virtual hosting = Apache directive NameVirtualHost No need to use mod_rewrite at all. Then you can separate your requests however you like, since you will be able to use VirtualHost. NameVirtualHost * VirtualHost * ServerName domain.net JkUriSet /VirtualHost VirtualHost * ServerName domain.com /VirtualHost John On 04 Apr 2003 12:40:17 -0500, Marc Boorshtein [EMAIL PROTECTED] wrote: Hello, I am trying to setup tomcat running on a machine that uses mod_rewrite seperate requests between two domains, domain.com and domain.net. I want to setup domain.net to integrate with tomcat, but only that domain. I am not using the VirtualHost directive at all, as I only have 1 IP. Is there a straight forward way to configure mod_jk2 to use just that one domain, or do I need to use some creative re-writing for that as well? Thanks Marc Boorshtein -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk2 / Apache 2 / mod_rewrite virtual hosts
hmmm, that would usuaully mean that the domain name entered into the browser did not match any of the domain names listed in the virtual host. To the best of my knowledge, www.domain.net is distinct from domain.net with respect to apache domain name based virtual hosting. could that have been an issue. there should be a Serveralias directive to specify alternative form for the domain -Original Message- From: Marc Boorshtein [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 10:55 AM To: Tomcat Users List Subject: RE: mod_jk2 / Apache 2 / mod_rewrite virtual hosts I tried that, but it would all ways default to the first VirtualHost. Marc On Fri, 2003-04-04 at 12:36, PELOQUIN,JEFFREY (HP-Boise,ex1) wrote: If you are not using ssl you may wish to consider name based virtual hosting VirtualHost * ServerName domain.com /VirtualHost VirtualHost * ServerName domain.net mod_jk stuff /VirtualHost the apache documentation goes into this more fully -Original Message- From: Marc Boorshtein [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 10:40 AM To: Tomcat Users List Subject: mod_jk2 / Apache 2 / mod_rewrite virtual hosts Hello, I am trying to setup tomcat running on a machine that uses mod_rewrite seperate requests between two domains, domain.com and domain.net. I want to setup domain.net to integrate with tomcat, but only that domain. I am not using the VirtualHost directive at all, as I only have 1 IP. Is there a straight forward way to configure mod_jk2 to use just that one domain, or do I need to use some creative re-writing for that as well? Thanks Marc Boorshtein -- Marc Boorshtein [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
no localhost but 127.0.0.1:8080 works
Hi Group, I have a problem here, my setup no longer responds to http://localhost:8080/blahblah.It works if I use the IP addy, 127.0.0.1:8080, but I think this is causing some problems within tomcat with its own internal references. Does anyone know how I can fix this. I vaguely recall reading about a hosts file in System32 folder of windows but cant remember for the life of me what it was talking about. Thanks JS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: no localhost but 127.0.0.1:8080 works
If you are on Windoze NT/2000 check c:\winnt\system32\drivers/etc/hosts. I think the Win9x variants use c:\windows\etc or c:\windows\system\etc, I don't remember which. The hosts file there should have an entry for 'localhost' that maps to 127.0.0.1. -chris -Original Message- From: JS [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 1:16 PM To: [EMAIL PROTECTED] Subject: no localhost but 127.0.0.1:8080 works Hi Group, I have a problem here, my setup no longer responds to http://localhost:8080/blahblah.It works if I use the IP addy, 127.0.0.1:8080, but I think this is causing some problems within tomcat with its own internal references. Does anyone know how I can fix this. I vaguely recall reading about a hosts file in System32 folder of windows but cant remember for the life of me what it was talking about. Thanks JS - 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: JSPC for TOMCAT 4.124 generates unexpected internal error
Ok, well, one technique you might use to diagnose what's happening here is to use some tool for monitoring I/O operations, like truss on Solaris, or FileMon on Windows. You can search for references to that file name, and it will tell you what directories it is looking in. Hopefully that will give you a clue to why it's not finding it in the directory you expect. -Original Message- From: Dufresne, Marc [mailto:[EMAIL PROTECTED] the lower case is an artefact of GNV (BASH shell for OpenVMS) The actuall directory name *IS* in caps when watching JSPC do it's file search up the tree, it does in fact find the directory porperly. next? -Original Message- From: Karr, David [mailto:[EMAIL PROTECTED] Normal behavior. You need to change web-inf to WEB-INF. -Original Message- From: Dufresne, Marc [mailto:[EMAIL PROTECTED] I'm doing a simple test to compile the checkbox JSP from the TOMCAT examples with the -webinc switch The JAVA and XML files are properly generates but jasper complains (unexpectedly ) that the web.xml file is no found here is the output fragment: 2003-04-04 04:21:34 - uriRoot implicitly set to /dsa1/apache/jakarta/tomcat/web apps/examples 2003-04-04 04:21:34 - Internal Error: File /WEB-INF/web.xml not found Check the web.xml file is really there: bash$ pwd /dsa1/apache/jakarta/tomcat/webapps/examples/web-inf bash$ ls classes jsp web.xml bash$ OK, spurious or normal behaviour ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: no localhost but 127.0.0.1:8080 works
Under Windows NT, the file was found in \WINNT\System32\drivers\etc Under Windows XP, it is found in \WINDOWS\System32\drivers\etc I know it is located differently on Windows 95/98 type systems. JS wrote: Hi Group, I have a problem here, my setup no longer responds to http://localhost:8080/blahblah.It works if I use the IP addy, 127.0.0.1:8080, but I think this is causing some problems within tomcat with its own internal references. Does anyone know how I can fix this. I vaguely recall reading about a hosts file in System32 folder of windows but cant remember for the life of me what it was talking about. Thanks JS - 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: Tomcat 4.1.24 error
I just ran into this problem today. Here is how it happened to me: Installed brand new Win2K o/os sp3 Installed Oracle 9.2 Standard on the box Installed J2SDK1.4.1_02 on the box Installed Tomcat 4.1.24 on the box; set it to listen on port 7001 instead of 8080 I got that message when I tried to login I then added (Added JAVA_HOME=c:\j2sdk1.4.1_02 to system environment vars and %JAVA_HOME%\BIN to the path) Still got the message I then updated the path to put my JAVA_HOME\BIN before Oracele\JRE\BIN. Uninstalled Tomcat 4.1.24 and re-installed and then it worked. I guess it had something to do with Tomcat classing with Oracle's 1.3 JRE? ___ Christopher Zinn Forge-Tech, Inc. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 12:15 PM To: Tomcat Users List Subject: RE: Tomcat 4.1.24 error Howdy, Out of curiosity: have you tried taking the compiled JSP from tomcat's work directory and compiling it with javac yourself? Yoav Shapira Millennium ChemInformatics -Original Message- From: HAMILTON, DALE K (SBCSI) [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 12:12 PM To: 'Tomcat Users List' Subject: RE: Tomcat 4.1.24 error I'm getting the same error since moving to Tomcat 4.1.24. I've seen the question in google searches but no answers. I could use help as well!! -Original Message- From: Robert R [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 9:37 AM To: [EMAIL PROTECTED] Subject: Tomcat 4.1.24 error Hello everybody, can somebody help me.THe tomcat ver I am running is the latest 4.1.24 And this is the page I get no matter if I just use an HTML page or a jsp page with perfectly good java code. Is it my web.xml file that is in ROOT/WEB_INF/ that needs to be changed Thanks Robert HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at javax.servlet.ServletException.(Compiled Code) at org.apache.jasper.JasperException.(Compiled Code) at org.apache.jasper.compiler.DefaultErrorHandler.javacError(Compiled Code) at org.apache.jasper.compiler.ErrorDispatcher.javacError(Compiled Code) at org.apache.jasper.compiler.Compiler.generateClass(Compiled Code) at org.apache.jasper.compiler.Compiler.compile(Compiled Code) at org.apache.jasper.JspCompilationContext.compile(Compiled Code) at org.apache.jasper.servlet.JspServletWrapper.service(Compiled Code) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled Code) at org.apache.jasper.servlet.JspServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Compil e d Code) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Compiled Code) at org.apache.catalina.core.StandardWrapperValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(Compiled Code) at org.apache.catalina.core.StandardContextValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(Compiled Code) at org.apache.catalina.core.StandardContext.invoke(Compiled Code) at org.apache.catalina.core.StandardHostValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorReportValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(Compiled Code) at
RE: no localhost but 127.0.0.1:8080 works
Of course, if you use my example path for winnt below be sure to lean the last two name seperators to the left instead of the right...my fingers just have trouble with those sometimes... -chris -Original Message- From: Halstead, Chris Sent: Friday, April 04, 2003 1:25 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: no localhost but 127.0.0.1:8080 works If you are on Windoze NT/2000 check c:\winnt\system32\drivers/etc/hosts. I think the Win9x variants use c:\windows\etc or c:\windows\system\etc, I don't remember which. The hosts file there should have an entry for 'localhost' that maps to 127.0.0.1. -chris -Original Message- From: JS [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 1:16 PM To: [EMAIL PROTECTED] Subject: no localhost but 127.0.0.1:8080 works Hi Group, I have a problem here, my setup no longer responds to http://localhost:8080/blahblah.It works if I use the IP addy, 127.0.0.1:8080, but I think this is causing some problems within tomcat with its own internal references. Does anyone know how I can fix this. I vaguely recall reading about a hosts file in System32 folder of windows but cant remember for the life of me what it was talking about. Thanks JS - 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]
SOLVED: Re: Issuing self-signed certificates to users for SSLv3
Hi there, Mark: thx for the hint, unfortunately I'm not using tomcat connector right now. I'll come back to you if I'm using one later. Ramsay: thx for the useful link! just in case anybody else needs to issue certificates using openssl: Commandline OpenSSL for Windows http://gnuwin32.sourceforge.net/packages/openssl.htm (so you don't have to compile yourself) SimpleCA/OpenSSL http://users.skynet.be/ballet/joris/SimpleCA/ allows to create a CA, create certificates, sign them and revoke them. keeps a log of all the actions done using openssl, so they can easily be entered in openssl commandline modus later. very good for learning how openssl works (since the docs of openssl are a bit lousy). cheers Johannes Mark W. Webb [EMAIL PROTECTED] 04.04.2003 19:14 Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject Re: Issuing self-signed certificates to users for SSLv3 openssl is what I have been using. PS. If you are doing SSL using a tomcat connector, I could use some help. My servlets can only get the user's certificate when I run tomcat in stand-alone mode. I would like it if apache could handle the SSL, and pass of servlet processing to tomcat. [EMAIL PROTECTED] wrote: Hi there, I know it's not absolutely tomcat-specific, but maybe another Tomcat-user has come across this issue. We want to set up a Certificate Authority and issue self-signed certificates to users which then will use SSLv3 client certificate authentication to authenticate with Tomcat. Does anybody know an easy tool to generate certificates and package them into PKCS #12 files (PFX-files, password-protected). Thanks alot Johannes -- Mark Webb Software Engineer Dolphin Technology 474 Phoenix Drive Rome, NY 13441-4911 Phone : 315.838.7000 : 315.838.7024 Fax : 315.838.7096 Email : [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Heap creep
Thank you Yoav. We were missing a malloc patch!! Regards. Howdy, It's deviously difficult to find on Sun's site: http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/J2SE Yoav Shapira Millennium ChemInformatics -Original Message- From: O'Neill, John [mailto:John.O'[EMAIL PROTECTED] Sent: Friday, April 04, 2003 12:17 PM To: 'Tomcat Users List' Subject: RE: Tomcat Heap creep Patches... Great idea, I'm not sure but I will check. I'm using jdk1.4.1_01, could you give a list of patches or where to go to find the list. We just installed a bunch, but I would like to make sure. Thanks. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 11:05 AM To: Tomcat Users List Subject: RE: Tomcat Heap creep Howdy, I am on Solaris 8 and have scripted a netstat -an | grep 8009 | grep -c ESTABLISHED. Weighing total grep -c 8009 vs grep 8009 | grep -c ESTABLISHED I'm getting numbers like 847 vs 542. I'm assuming that ESTABLISHED should not rise above maxConnections + acceptCount. Most of the other connections are in the SYN_SENT state. I have a few Solaris 8 servers as well, and those are the exact commands I use to test these things. I agree with your assumption as stated above, and have tested my apps to see that the above assumption is true. So I have no clue why you're seeing strange behavior. Do you have the Solaris OS patches required for your JDK? Yoav Shapira Millennium ChemInformatics 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 email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. We may monitor email to and from our network. *** * - 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, 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 email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. We may monitor email to and from our network. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
sendRedirect using jsp:include ...
i'd like to add some http headers, common for all pages, so i put them inside a headers.jsp, included with jsp:include page but by this way it does not put any http header. the java generated file for the jsp put // HTML // begin [file=/areas.jsp;from=(0,58);to=(1,0)] out.write(\r\n); // end // HTML // begin [file=/areas.jsp;from=(1,31);to=(2,0)] out.write(\r\n); and after those \r\n (finnishing the http headers) begins the code for header.jsp so how can i append http headers for the common behavior in all jsps? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: no localhost but 127.0.0.1:8080 works
Thank you to all those who replied to my earlier query. Unfortunately, I'm still not having any luck. From the advice given, I have a hosts.sam file and a hosts (note, no extension) in my C:\windows directory. I am using Win 98 and Tomcat 4 Is there any other reason as to why localhost:8080 would not work, my port reference in server.xml is still 8080 as well so I see no reason for the problems. Thanks again Of course, if you use my example path for winnt below be sure to lean the last two name seperators to the left instead of the right...my fingers just have trouble with those sometimes... -chris -Original Message- From: Halstead, Chris Sent: Friday, April 04, 2003 1:25 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: no localhost but 127.0.0.1:8080 works If you are on Windoze NT/2000 check c:\winnt\system32\drivers/etc/hosts. I think the Win9x variants use c:\windows\etc or c:\windows\system\etc, I don't remember which. The hosts file there should have an entry for 'localhost' that maps to 127.0.0.1. -chris -Original Message- From: JS [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 1:16 PM To: [EMAIL PROTECTED] Subject: no localhost but 127.0.0.1:8080 works Hi Group, I have a problem here, my setup no longer responds to http://localhost:8080/blahblah.It works if I use the IP addy, 127.0.0.1:8080, but I think this is causing some problems within tomcat with its own internal references. Does anyone know how I can fix this. I vaguely recall reading about a hosts file in System32 folder of windows but cant remember for the life of me what it was talking about. Thanks JS - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]