bug report
Hi, I wanna to run tomcat as NT service, so I download jk_nt_service.exe and update wrapper.properties as stated in the document (NT-Service.-howto.html). My JDK is installed in e:/Program Files/JavaSoft/jdk1.3, and when I start Jakarta service, it shows error in log file: java.lang.NoClassDefFoundError: Files\JavaSoft\jdk1/3\bin\java/exe After I remove JDK from e:/Program Files/JavaSoft/jdk1.3 to e:/jdk, it works. Does this imply jk_nt_service.exe does not handle long file name with space correct? Thank you for all your work. Sincerely Yours, Vincent Chen ¡]³¯«Û¨}¡^ eServiceRealm Technology¡]¥ì¾U¬ì§Þ¡^ +886-919541425 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: mailinglist vs newsgroup
Putting the FAQ address visible in the signature would also help...like the one e-groups make ? Something stupid but effective like: To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Before post, check the FAQ at What do you guys think ? Wellington -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: 02 January 2001 23:03 To: Tomcat User List Subject:Re: mailinglist vs newsgroup On 1/2/2001 at 12:49 PM Damien Serra wrote: What can we do? A working FAQ wouldn't hurt. Jyve just isn't cutting it. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel 716 425-0252; Fax 716 223-2506. -- http://www.husted.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Some security conf advice
Hi there, We need some advice about security conf with tomcat. We used apache+tomcat and apache took care of ip checking and so. Now we are planning to use tomcat alone (most of our pages are jsp) but we have some doubts about security conf. We have configured JBDC realm and works fine, but need some subnet/ip checking too. We would like to know what could be done to enforce security conf in a production site with tomcat (unix env) For example, - Has anybody used ip-chains with tomcat? - Is there some way to restrict access to tomcat from a subnet like tcp-wrapper does with telnet? - Is form-based security reliable enough to use alone without other checking? Briefly, any general or concise guidelines to enforce security with tomcat will be welcome. Thanks in advance --== Sent via Deja.com ==-- http://www.deja.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: EJBs
On Tue, 2 Jan 2001, Christopher Benson wrote: Does anyone know if there are there any plans to expand Tomcat to be an EJB container as well as a JSP/Servlet/JavaBean container. If not, does Apache or any other reputable open source organization have an open source EJB container that would work well in tandem with Tomcat? I'm not looking for a commercial EJB container. Is there an open source EJB reference implementation available? You might also want to give JBoss a go - www.jboss.org. You can run tomcat embedded, and I found it easy to setup/use. Catherine - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: redirect to a static page from tomcat to apache
It means that the client should look for the requested page in the alternate location (url) given in the response ONLY for this request, i.e. next requests should be for the original URL. From the HTTP 1.1 spec: 10.3.8 307 Temporary Redirect The requested resource resides temporarily under a different URI. Since the redirection MAY be altered on occasion, the client SHOULD continue to use the Request-URI for future requests. This response is only cacheable if indicated by a Cache-Control or Expires header field. The temporary URI SHOULD be given by the Location field in the response. Unless the request method was HEAD, the entity of the response SHOULD contain a short hypertext note with a hyperlink to the new URI(s) , since many pre-HTTP/1.1 user agents do not understand the 307 status. Therefore, the note SHOULD contain the information necessary for a user to repeat the original request on the new URI. If the 307 status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued. -Original Message- From: Dario Novakovic [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 02, 2001 18:06 To: [EMAIL PROTECTED] Subject: Re: redirect to a static page from tomcat to apache why does it say in api docs that sendRedirect() "Sends a temporary redirect response"? what is temporary in this case? - Original Message - From: "Boaz Shaham" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, 02 January, 2001 08:53 Subject: RE: redirect to a static page from tomcat to apache how about // response is HttpServletResponse response.sendRedirect("/foo/x.html"); -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 02, 2001 02:25 To: [EMAIL PROTECTED] Subject: redirect to a static page from tomcat to apache Hello, Is there anyway to do a forward from a servlet in tomcat to a static page that apache only knows. ie. apache knows that /foo is /home/foo. but when the servlet executes and does the following(see snippet below), Tomcat does not know where /foo is mapped to. If I set up a context in server.xml it will work. But then for my app it gets more complicated , because x.html is a frame that calls two cgi programs. And of course tomcat doesn't know about these guys. So what are my options? IS there way to set up a cgi-bin directory under tomcat? Thanks From within a servlet. - String URL = "/foo/x.html"; RequestDispatcher disp = getServletConfig().getServletContext().getRequestDispatcher(jspURL); disp.forward(req,res); - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Setting properties outside of the WAR
I think that this whole issue (specifying configuration parameters to web applications) needs some serious thought - possibly at the level of the servlet spec development group, even. The problem is that two deployments of the same application are not necessarily identical. The most obvious example is where two otherwise identical installations need to be configured to use different databases (ie different JDBC connection strings). It is really **nasty** to deploy a webapp, then have to edit a string inside the WEB-INF/web.xml as part of the deployment procedure. (a) it's hard to describe in such a way that an "application support team" can reliably get it right, (b) if it is stuffed up, then really nasty consequences can occur - testing system gets connected to production database, or production system gets connected to development database, which is worse ???!! I think what is needed, instead, **is** some configuration outside of the webapp. Upgrading a webapp then doesn't "throw away" the configuration settings used for the previous release. Obviously, there needs to be some kind of consistency checking to ensure that new configuration items don't need to be added for the new release, etc. My current solution (which you are welcome to, Ritchie, if you want a copy) is a perl script which is run after installing a copy of the webapp. It searches the tree of files, replacing any occurrence of strings of form @token-name@ with a value from a property file which is specific to each *installation* of the webapp. My development installation of the webapp gets configured using one property file, my acceptance-test instance uses a second, and the production system uses a third properties file. While the *main* file that gets modified during the install is the web.xml file, there are other files that get modified, eg the log4j configuration options file which is also in WEB-INF. Note that I do not want to use ANT to do this token-replacement during building of the "WAR" file, because I want to have a standard WAR file that can be deployed into development, testing and production. Any alternatives that could be used to configure a webapp per-deployment would be welcome - I'm not perfectly happy with my current solution, I just can't think of anything better Regards, Simon -Original Message- From: Craig R. McClanahan [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, January 02, 2001 10:10 PM To: [EMAIL PROTECTED] Subject: Re: Setting properties outside of the WAR Ritchie Young wrote: Thanks for the response but that wasn't quite what I was getting at. The idea was that there should be some easy way for an administrator to set a property for the application. It just strikes me that the TOMCAT_OPTIONS variable is a slightly cumbersome way especially when there start to be a few more applications. I thought that the "Context" tag in server.xml wouldn't be a bad place to incorporate application specific settings such as where the application can find it's properties file. This would also allow for multiple instance of the same application to use different configurations but only one WAR file. The settings in server.xml are designed to configure Tomcat's own features -- not your application. Your app is responsible for that. You can do things in a portable way (for example, call ServletContext.getResource("/WEB-INF/myprops.properties")), or not, as you choose. Keep in mind that the intent of web applications is that they are *stand alone* gadgets, to be dragged and dropped onto a servlet container (*any* container, not just Tomcat) and work correctly. Given that, it does not make sense for the servlet API to provide any mechanism to access resources outside of the WAR. You are free, of course, to implement any such technique (such as passing the absolute pathname to a properties file in a servlet initialization parameter), but you are making it harder on people who want to deploy your webapp in a variety of environments, as well as limiting the set of environments in which your app can run (for example, an ISP might prohibit file access in order to protect the various web apps from each other). Cheers Ritchie Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: sendRedirect and setting cookies
I am not sure is this is a bug or a feature. Try to set the cookie after the redirection method, i.e: response.sendRedirect(...); response.addCookie(...); return; - Boaz -Original Message- From: GoldenDawn Fan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 03, 2001 02:04 To: [EMAIL PROTECTED] Subject: sendRedirect and setting cookies Hi, tomcat3.1 does not support setting cookies in servlets that do sendRedirect? So, can we still set cookies in servlets that do "sendRedirect" or can we use either a) response.setStatus(response.SC_MOVED_TEMPORARILY); response.setHeader("Location", newURL); b) response.setHeader("Refresh", "1", newURL); Thanks for any kind answers. __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
IlegalStateException - Please Mind it!
I am receiving the following message on my servlet running on Tomcat 3.2 on RedHat 7.0 IllegalStateException: Reader already obtained for this request. My servlet does not use getReader() nor getInputStream() The same servlet run ok in Tomcat 3.1 on Windows 2000 Ariel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Tomcat 3.2.1 not recognizing index document
Hi, As has been stated many times in this email group, tomcat 3.2 does *not* read the file $TOMCAT_HOME/conf/web.xml any more. I bet you defined your welcome-file there - you should define the welcome-file entry in WEB-INF/web.xml instead. Note that the WEB-INF/web.xml file has always been the *right* place for this definition (though using either file would have worked in the past). It makes more sense to define the welcome-file entries at a webapp-specific level rather than at a tomcat-wide level, as separate webapps are likely to want different settings. The tomcat 3.2 developers made a minor error (in my opinion) by forgetting to take the old no-longer-used global web.xml file out of the latest releases. Tomcat developers - can you get rid of the global web.xml file from the distribution, to avoid this confusion??? Or rename it to something else (like web.builtin.xml ;-) Cheers, Simon -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, January 02, 2001 7:57 PM To: [EMAIL PROTECTED] Subject: Tomcat 3.2.1 not recognizing index document Recently I upgraded to Tomcat 3.2.1 from 3.1 and everything seems to have gone well except for one thing: If i try to go to my URL at http://www.somesite.com/ it cannot handle it, and maps to http://http/index.jsp However, if i type in http://www.somesite.com/index.jsp it loads perfectly. I've messed with the httpd.conf files with apache, and have determined that somehow, whenever you don't type in a filename, it has problems. My previous copy of Tomcat 3.1 was working great, so it has to be with the handoff from apache to tomcat. I've checked, and Apache handles regular .html DirectoryIndex files perfectly! This one is really bugging me, please help! ___ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: gracefull shutdown/removal of worker from load balance...
mod_jserv documentation indicates that this should be done. Take a look at http://java.apache.org/jserv/howto.load-balancing.html However, we tried it but could not make it work. I dont know if mod_jk supports this, but I"ll be glad to hear that someone succeeded - Boaz -Original Message- From: Michael Kuz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 03, 2001 03:51 To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' Subject: gracefull shutdown/removal of worker from load balance... Hello all, How do I remove a worker from the load balancer without killing its current sessions? i.e.: I don't want any new sessions created on that worker, and the existing sessions must be allowed to expire 'naturally' (I can't just delete the entry from the balanced_workers property of the load balancer or current/established sessions get killed/ are not redirected to the proper worker) Our setup: We've got multiple Apache web servers behind LVS with multiple TC(3.2) boxes behind the web servers... Thanks in advance Michael R. Kuz Developer Service Intelligence (403) 261-5000 ext. 363 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: log files
Tomcat 4 generates "access logs" of the kind you need Tomcat 3.2 does not. If you are using tomcat 3.2, either use a webserver like apache as a front-end (apache does generate access logs) or upgrade to tomcat 4. For more information, search the email archives, as this question has been asked several times in the recent past. Regards, Simon -Original Message- From: Will Ashley [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, January 02, 2001 7:20 PM To: '[EMAIL PROTECTED]' Subject: log files Hello, I need the ability to have tomcat log information when a user clicks on one of my links to open a PDF file. I need to run a monthly report that tells me the total number of PDFs that were opened and which ones. I looked in the log files that Tomcat is prodocing, but it is not loggin anything when I open a PDF file from a JSP. Will changing the verbosityLevel in the Server.xml file do the trick? Thanks, Will Ashley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Accessing a local webserver with IE 5.5
Hi. I've set up Tomcat at home on a computer not connected to the Internet. It's running Win 2000 Pro. The problem is that when I try to access my locally running webserver I always get the prompt about if I want to connect to the internet or stay offline. If I select to stay offline I receive a notification that the page is not available for offline viewing. There must be a way so I'm asking you... has anybody had (and fixed) that problem? Kind regards, Stefan Freyr Stefan Freyr Stefansson Software Developer deCODE Genetics, Inc. http://www.decode.com Phone: (+354) 570 2854 GSM: (+354) 861 1718 Fax: (+354) 491 3782 Stefan Stefansson.vcf BEGIN:VCARD VERSION:2.1 N;ENCODING=QUOTED-PRINTABLE:;=01 REV:20001030T115142Z END:VCARD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Mailing List Archives?
Peter Brandt-Erichsen wrote: Sorry for the dumb question, but how do I access the archives for this mailing list? you can find this at http://marc.theaimsgroup.com/ (Apache section) -- [EMAIL PROTECTED] INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41 06902 SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
web-app-2.3.dtd
I am running tomcat-4.0 from CVS. on a linux system with the SUNW jdk-1.3.0_01 I have the servletapi for servlet-2.3 from CVS. Tomcat appears to work just fine, except if I put 2.3 tags in my web.xml file the parser does not verify it. How do I get The tomcat run time web.xml parser to recognize and use web-app-2.3.dtd? Thanks =eas= - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: bug report
This is nothing to do with Tomcat. Actually, the classpath can't be set for a name having a space in it.i.,e C:\Program Files\Demo Kits1.2.3 That's all. regds kalaiselvan software engineer Vincent Chen wrote: Hi, I wanna to run tomcat as NT service, so I download jk_nt_service.exe and update wrapper.properties as stated in the document (NT-Service.-howto.html). My JDK is installed in e:/Program Files/JavaSoft/jdk1.3, and when I start Jakarta service, it shows error in log file: java.lang.NoClassDefFoundError: Files\JavaSoft\jdk1/3\bin\java/exe After I remove JDK from e:/Program Files/JavaSoft/jdk1.3 to e:/jdk, it works. Does this imply jk_nt_service.exe does not handle long file name with space correct? Thank you for all your work. Sincerely Yours, Vincent Chen ]}^ eServiceRealm Technology]U^ +886-919541425 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
server.xml error
When i startup tomcat there is this message : ./startup.sh Guessing TOMCAT_HOME from tomcat.sh to ./.. Setting TOMCAT_HOME to ./.. Using classpath: ./../lib/ant.jar:./../lib/jasper.jar:./../lib/jaxp.jar:./../lib/jcert.jar:./ ../lib/jnet.jar:./../lib/jsse.jar:./.. /lib/parser.jar:./../lib/server.crt:./../lib/server.csr:./../lib/server.key: ./../lib/servlet.jar:./../lib/test:./../lib/webserver.jar *ERROR reading ./../conf/server.xml At Line 252 /Server/ContextManager/Connector/Parameter/ FATAL: configuration error java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError: javax/net/ServerSocketFactory at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:438) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:97) at java.net.URLClassLoader.defineClass(URLClassLoader.java:244) at java.net.URLClassLoader.access$1(URLClassLoader.java:212) at java.net.URLClassLoader$1.run(URLClassLoader.java:193) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:279) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:282) at java.lang.ClassLoader.loadClass(ClassLoader.java:243) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.tomcat.service.PoolTcpConnector.string2SocketFactory(PoolTcpConne ctor.java:417) at org.apache.tomcat.service.PoolTcpConnector.setAttribute(PoolTcpConnector.jav a:289) at org.apache.tomcat.service.PoolTcpConnector.setProperty(PoolTcpConnector.java :321) at java.lang.reflect.Method.invoke(Native Method) at org.apache.tomcat.util.xml.MethodSetter.end(XmlMapper.java:840) at org.apache.tomcat.util.xml.XmlMapper.matchEnd(XmlMapper.java:391) at org.apache.tomcat.util.xml.XmlMapper.endElement(XmlMapper.java:109) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1413) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.parseInternal(Parser.java:492) at com.sun.xml.parser.Parser.parse(Parser.java:284) at javax.xml.parsers.SAXParser.parse(SAXParser.java:155) at javax.xml.parsers.SAXParser.parse(SAXParser.java:126) at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:214) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235 It is because i have added in server.xml the SSL part : Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.http.HttpConnectionHandler"/ Parameter name="port" value="8443"/ Parameter name="socketFactory" -- line 252 value="org.apache.tomcat.net.SSLSocketFactory" / /Connector - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: IIS and Windows2000 support: is this coming soon?
I have been using tomcat on IIS5.o for a while now I've set it up just the same way you do it on IIS4.0 If you need any help contact me NASR "Hawkins, Keith (Keith)" wrote: Does the ability to integrate Tomcat with IIS running under Windows2000 exist or be coming out soon? I am looking for the same functionality as provided by the isapi_redirect.dll that works under NT4.0 to allow IIS to be the Webserver with Tomcat handling JSP/Servlet requests. Thanks, Keith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Problems
Hello, I, have reported the following problem 2 "[EMAIL PROTECTED]", But I haven't got any reply from them. I'm NOT in any of such mailing list and even for this. I, have installed Debian GNU/Linux. In my machine apache is running perfectly well. When I, try 2 access some JSP files, my browser get hangs till the time out session comes (From my browser). Tomcat started well and I'm NOT able 2 shutdown using bin/shutdown.sh. So, Normally I use, killall Kaffe. Apart from that I'm facing some problems and following R the contents printed by tomcat on my screen. 2000-12-30 10:35:05 - ContextManager: Adding context Ctx( /examples ) 2000-12-30 10:35:05 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2000-12-30 10:35:05 - ContextManager: Adding context Ctx( /hello.jsp ) 2000-12-30 10:35:05 - ContextManager: Adding context Ctx( /myapp ) 2000-12-30 10:35:05 - ContextManager: Adding context Ctx( ) 2000-12-30 10:35:05 - ContextManager: Adding context Ctx( /test ) 2000-12-30 10:35:06 - Ctx( /examples ): XmlReader - init /examples webapps/examples 2000-12-30 10:35:06 - Ctx( /examples ): Reading /usr/local/jakarta-tomcat-3.2.1/webapps/examples/WEB-INF/web.xml 2000-12-30 10:35:07 - Ctx( /examples ): Add user tomcat tomcat tomcat 2000-12-30 10:35:07 - Ctx( /examples ): Add user role1 tomcat role1 2000-12-30 10:35:07 - Ctx( /examples ): Add user both tomcat tomcat,role1 2000-12-30 10:35:07 - Ctx( /examples ): Loading -2147483646 jsp 2000-12-30 10:35:10 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 HANDLER THREAD PROBLEM: java.net.SocketException: Invalid argumentcat-3.2.1/webapps/examples" /hello.jsp context##rces (including static) that# java.net.SocketException: Invalid argument at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:156) at java.net.Socket.setSoLinger(Socket.java:106) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:122) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:314) The URL I, have requested is "http://localhost/examples/hello.jsp". I, have downloaded the source code of Tomcat and compiled mod_jk.so. I, placed that module into the /etc/apache/libexec directory. In, log file there is NO identification for any error. What might b the problem ??? Some configuration issues ???. The data coming from Apache 2 Tomcat is NOT proper (In my machine) I'm NOT in the mailing list. Please forward it 2 me, If any one of U busy people get some solution. Thankx in advance Regards Nagappan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Problem with Tomcat as NT service
Hi, I have jakarta-tomcat-3.2 running on Win NT4 and IIS. I have used jk_nt_service.exe to make tomcat as NT service and followed the steps as it is in the documentation. After that I have started the service, when I run a small jdbc example I got the sql exception 'No suitable jdbc driver found'. The same program runs fine when I start tomcat manually. Please provide solution. Thanx n Regards, Vinod - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Tomcat does not start
Hi people, I face with the following error when I try to start Tomcat with the line command tomcat run Exception in thread "main" java.lang.ExceptionInInitializerError: java.util.Miss ingResourceException: Can't find bundle for base name org.apache.tomcat.resource s.LocalStrings, locale it_IT at java.util.ResourceBundle.throwMissingResourceException(Resou rceBundle.java:707) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:6 79) at java.util.ResourceBundle.getBundle(ResourceBundle.java:546) at org.apache.tomcat.util.StringManager.init(StringManager.ja va:115) at org.apache.tomcat.util.StringManager.getManager(StringManage r.java:260) at org.apache.tomcat.startup.Tomcat.clinit(Tomcat.java:24) I have followed the installation instructions My system runs win 2000 pro JDK 1.3 and, as required, I have set JAVA_HOME=d:\Programmi\jdk1.3 TOMCAT_HOME=d:\Programmi\tomcat-3.2.1 Where I am wrong or what did I miss? Thanks in advance Federico -- Federico Delpino Tel. 39-51-20-95722 Osservatorio Astronomico di BolognaFax. 39-51-20-95700 via Ranzani,1 - 40126 Bologna, Italy e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Problem with Tomcat as NT service
Hi, I have jakarta-tomcat-3.2 running on Win NT4 and IIS. I have used jk_nt_service.exe to make tomcat as NT service and followed the steps as it is in the documentation. After that I have started the service, when I run a small jdbc example I got the sql exception 'No suitable jdbc driver found'. The same program runs fine when I start tomcat manually. Please provide solution. Thanx n Regards, Vinod
RE: Problem with Tomcat as NT service
Hi, Just try this. The message is because of the classpath. In windows NT, the environment variables are set separately for each user. Just go to control-panel, system and environment. There are two lists, just add the classpath to the top one. I had a big problem with this and discovered it by chance! regards Nagaraj. -Original Message-From: Vinod [mailto:[EMAIL PROTECTED]]Sent: Wednesday, January 03, 2001 12:54 PMTo: '[EMAIL PROTECTED]'Subject: Problem with Tomcat as NT service Hi, I have jakarta-tomcat-3.2 running on Win NT4 and IIS. I have used jk_nt_service.exe to make tomcat as NT service and followed the steps as it is in the documentation. After that I have started the service, when I run a small jdbc example I got the sql exception 'No suitable jdbc driver found'. The same program runs fine when I start tomcat manually. Please provide solution. Thanx n Regards, Vinod
RES: Post + multipart/form-data not working in Tomcat 3.1
-BEGIN PGP SIGNED MESSAGE- Why dont you try to use Oreilly' package? I warrant it works fine. José Euclides Júnior __ E-mail: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] http://euclides.8m.com - -Mensagem original- De: ayyappa [SMTP:[EMAIL PROTECTED]] Enviada em: Quarta-feira, 3 de Janeiro de 2001 04:30 Para: [EMAIL PROTECTED] Assunto:Post + multipart/form-data not working in Tomcat 3.1 I am using the JSP Smart Upload Bean to upload a image to the Linux server. The enctype i am using is "multipart/form-data" which is not working. The problem is that when i use the above specifeid enctype the JSP engine gives the following error HTTP/1.1 200 OK Date: Tue, 02 Jan 2001 07:49:54 GMT Server: Apache/1.3.12 (Unix) mod_jk Connection: close Transfer-Encoding: chunked Content-Type: text/html; charset=iso-8859-1 OK why does this error come and how can it be resolved? Please reply to me at the following email id [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Ayyappa -BEGIN PGP SIGNATURE- Version: PGP 6.5.1 iQCVAwUBOlM+I90YhuJ3BUxtAQGDsgP/Qj8ejYvNHwgrlYpbJIay9iNqyt0NtU9V pMxrHnYJu+qHco6A4Gi+L9ymb8n/pCWjZfUYSntoqppOtZf7w58Pn1pdneAGo6QA WNtWXxWmS5d+9U3YYkEBBnJ1DswLEbHdD7Emr+x61W/OfmH+AvYIdY+Vl62Kp+Mr HbUrWuitFgw= =6S4k -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Basic web-app question
I'm not sure if it's something that should be fixed. What you're asking is for Tomcat to log the timestamps of any WAR files, and then unilaterally re-expand them if it notes a change. Of course, then there would be the issue of whether it should remove files that aren't in the new WAR -- an idea which exceeds the functional scope of a WAR and an application container. *** REPLY SEPARATOR *** On 1/3/2001 at 12:24 PM Anthony Ikeda wrote: One problem I found with WAR's, however, is that you need to ensure you remove the old expanded folder from the webapps when you make any changes to the WAR file. Caused alot of problems until I discovered this! Has this been fixed in 3.2.1? Anthony Ikeda, Web Application Developer, Proxima Technology, Level 13, 181 Miller Street, North Sydney Australia PH: +612-9458-1718 Mob: 041 624 5143 -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED]] Sent: Thursday, 21 December 2000 6:29 PM To: [EMAIL PROTECTED] Subject: RE: Basic web-app question Thanks, Simon and Ted, for helping to clear up that whole directory structure thing. I guess I wasn't thinking too hard about it :/ Dave -- Dave Newton, [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
mod_jserv.so
I work for a company that is developing software that uses the Apacheweb serverwith Tomcat as a servlet engine. We have been testing the software on Windows NT machines, but would now like to test it under Sun Solaris. We have Apache running successfully on the Sun, but are unable to get Tomcat running. Our research indicates that we do not have a correct version of the file mod_jserv.so. Does anybody know where we can get a version of this file for Sun Solaris?
Re: mod_jserv.so
You can download the tomcat sorce, and compile the mod_jser.c. I recommend the mod_jk.c (mod_jk.so). Read the docs to get the diferences between mod_jk and mod_jserv. []´s Daniel A. Mark Burton wrote: I work for a company that is developing software that uses the Apache web server with Tomcat as a servlet engine. We have been testing the software on Windows NT machines, but would now like to test it under Sun Solaris. We have Apache running successfully on the Sun, but are unable to get Tomcat running. Our research indicates that we do not have a correct version of the file mod_jserv.so. Does anybody know where we can get a version of this file for Sun Solaris? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: mailinglist vs newsgroup
On 1/3/2001 at 9:37 AM Wheeler, Alfred wrote: There's no need to read every word of every message. If the title doesn't interest me and the message is from this group, then I just delete it. Another good trick is to sort by author, and read the messages of your favorite submitters first (i.e., the committers). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Problem with Tomcat as NT service
I never tried to run tomcat as a service, but the same thing happened to me before. So I hope the following will help: I had a servlet class which also has a main() function for dos-console testing. I found that I have to use different jdbc driver to open the same Access datasource. The reason, as I later found out, you have to setup the classpath correctly in both cases so that tomcat can find the proper driver. I suspect this could be the reason of your problem. As I understand, the environment variables can be seen by a service can be different from those by a regular windows program. The reason behind that involves more of the Windows OS system knowledge. But I suggest you try to print out the necessary class path or other related environment variables in both cases. Hope it helps. Ma, Yanbin |+--- || Vinod| || Vinod@essemm| || .co.in | || | || 01/03/01 | || 06:47 AM | || Please | || respond to | || tomcat-user | || | |+--- ---| | | | To: | | cc: (bcc: Yanbin Ma/SYS/NYTIMES)| | Subject: Problem with Tomcat as NT service | ---| Hi, I have jakarta-tomcat-3.2 running on Win NT4 and IIS. I have used jk_nt_service.exe to make tomcat as NT service and followed the steps as it is in the documentation. After that I have started the service, when I run a small jdbc example I got the sql exception 'No suitable jdbc driver found'. The same program runs fine when I start tomcat manually. Please provide solution. Thanx n Regards, Vinod - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
curious behavior - pseudo servlet-mapping with mod_jk
I just noticed something that seems to work for me, but I can't determine quite why? Maybe someone can confirm that this is expected behavior or not. I am running Tomcat 3.2.1 on Windows 2000 It seems that if you have a servlet registered in web.xml like this: servlet servlet-namequiz/servlet-name servlet-classQuiz/servlet-class /servlet AND you have the default values in mod_jk.conf: JkMount /mycontext/*.jsp ajp13 JkMount /mycontext/servlet/* ajp13 you are able to access the above servlet at either of the following URL's: http://localhost/mycontext/servlet/Quiz http://localhost/mycontext/servlet/quiz Notice the case difference in Quiz/quiz It seems that the servlet-name provides a rudimentary amount of servlet mapping. I tested this theory by changing the servlet-name to "quiza" and testing that. After I did that, "Quiz" and "quiza" worked, but "quiz" did not. NOTE: This was done WITHOUT servlet mapping tags such as: servlet-mapping servlet-namequiz/servlet-name url-pattern/quiz/url-pattern /servlet-mapping So, it seems you can very simply (without complex servlet mappings) make your servlet case insensitive; that is in First letter upper case java style class naming syntax OR all lower case. HOWEVER, I am not sure if this is portable accross servers! Can someone confirm that this isn't just a quirk of Tomcat? Should it work this way based on the servlet spec Is it portable across servlet runners Does this work on Tomcat 4.0 Jake - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Setting properties outside of the WAR
Oh good, it's not just me. Thanks, I would appreciate it if you did forward me a copy of that script. Cheers Ritchie - Original Message - From: "Kitching Simon" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 03, 2001 6:07 PM Subject: RE: Setting properties outside of the WAR I think that this whole issue (specifying configuration parameters to web applications) needs some serious thought - possibly at the level of the servlet spec development group, even. The problem is that two deployments of the same application are not necessarily identical. The most obvious example is where two otherwise identical installations need to be configured to use different databases (ie different JDBC connection strings). It is really **nasty** to deploy a webapp, then have to edit a string inside the WEB-INF/web.xml as part of the deployment procedure. (a) it's hard to describe in such a way that an "application support team" can reliably get it right, (b) if it is stuffed up, then really nasty consequences can occur - testing system gets connected to production database, or production system gets connected to development database, which is worse ???!! I think what is needed, instead, **is** some configuration outside of the webapp. Upgrading a webapp then doesn't "throw away" the configuration settings used for the previous release. Obviously, there needs to be some kind of consistency checking to ensure that new configuration items don't need to be added for the new release, etc. My current solution (which you are welcome to, Ritchie, if you want a copy) is a perl script which is run after installing a copy of the webapp. It searches the tree of files, replacing any occurrence of strings of form @token-name@ with a value from a property file which is specific to each *installation* of the webapp. My development installation of the webapp gets configured using one property file, my acceptance-test instance uses a second, and the production system uses a third properties file. While the *main* file that gets modified during the install is the web.xml file, there are other files that get modified, eg the log4j configuration options file which is also in WEB-INF. Note that I do not want to use ANT to do this token-replacement during building of the "WAR" file, because I want to have a standard WAR file that can be deployed into development, testing and production. Any alternatives that could be used to configure a webapp per-deployment would be welcome - I'm not perfectly happy with my current solution, I just can't think of anything better Regards, Simon -Original Message- From: Craig R. McClanahan [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, January 02, 2001 10:10 PM To: [EMAIL PROTECTED] Subject: Re: Setting properties outside of the WAR Ritchie Young wrote: Thanks for the response but that wasn't quite what I was getting at. The idea was that there should be some easy way for an administrator to set a property for the application. It just strikes me that the TOMCAT_OPTIONS variable is a slightly cumbersome way especially when there start to be a few more applications. I thought that the "Context" tag in server.xml wouldn't be a bad place to incorporate application specific settings such as where the application can find it's properties file. This would also allow for multiple instance of the same application to use different configurations but only one WAR file. The settings in server.xml are designed to configure Tomcat's own features -- not your application. Your app is responsible for that. You can do things in a portable way (for example, call ServletContext.getResource("/WEB-INF/myprops.properties")), or not, as you choose. Keep in mind that the intent of web applications is that they are *stand alone* gadgets, to be dragged and dropped onto a servlet container (*any* container, not just Tomcat) and work correctly. Given that, it does not make sense for the servlet API to provide any mechanism to access resources outside of the WAR. You are free, of course, to implement any such technique (such as passing the absolute pathname to a properties file in a servlet initialization parameter), but you are making it harder on people who want to deploy your webapp in a variety of environments, as well as limiting the set of environments in which your app can run (for example, an ISP might prohibit file access in order to protect the various web apps from each other). Cheers Ritchie Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
manage tomcat via Web
Hi all! Does anybody know is there any way to manage tomcat via Web ? Like Jrun for example ? Thank you! -- Best regards, Max mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
SSL for Stand Alone Tomcat WebServer
Does anyone know of any documentation or a step-by-step process for setting up SSL with Tomcat as a stand-alone web server. We want to use Sun's JSSE with Tomcat to provide SSL for our web application. Any assistance would be appreciated...we would like to reward your assistance with some free "stuff". Thanks! Matt VaughnConsultant303.770.7200 - office303.770.5452 - fax303.995.3108 - cell
How manage multiples developers with Tomcat ?
Hello and happy new year ! We have a lot of developers who needs to develop java servlets and we have chosen Tomcat 3.2.1 Apache 1.3.14 as servers. (because they are open source and a lot of stuff are developped for this (Cocoon, Jetspeed)). [for the moment i've used only Tomcat 3.1] But we have a problem : when a developer want to add a servlet to the server he must restart the Tomcat server, because else the dependencies of the servlet aren't seen by the server. For example if i put a hello.class file in the classes folder of the webapp and i compile it there is no problem to reach the servlet after without restarting the server (just type http://myhost/mywebapp/servlet?hello or the fully qualified class name). But if this servlet call other servlet Tomcat give us an error (ClassNotFound). So the questions are : - Must i install a tomcat server for each developer (who can play with it, add the servlet, restarting it without disturbing the others developers) ? I don't want this because this is a lot of work for maintain one server per developer... - Is there a solution to reload a webapp without stopping the entire server ? (it will be the most useful for me) - and finally if this feature isn't present in Tomcat 3 should be present in Catalina ? (or other servlet container) PS : I haven't find a solution in the mailing list archives. Thanks per advance for your answers, Regards, -- [EMAIL PROTECTED] INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41 06902 SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Setting properties outside of the WAR
Hi Ritchie (and anyone else interested) Something else occurred to me after sending this email, and reading an unrelated email from Craig. Craig was talking about being able to run a webapp direct from a WAR file without unpacking it. Yes, the idea sounds nice, but then how is anyone to configure the webapp? The web.xml file can't be edited! This implies that the WAR is built with the necessary attributes already set, but isn't that like distributing a shrink-wrapped application with all the configuration items hard-wired and impossible to change by the end user??? Anyway, here's the perl script and a few related files. Documentation is in the comments inside "install.pl". The code may seem a little odd in places - the install program is a result of "experimenting" with various approaches, and not all the traces of previous experiments have been removed! install.pl install.cfg installTokensExample.cfg and here's an example of a file that will be modified during install: web.xml.install What I do to distribute an app is build a jar file containing the install.pl, install.cfg and installTokensExample.cfg files, and then a subdirectory containing the entire web application. To install a distribution the first time: * create an install directory, cd to it * Unjar the jar * cp installTokensExample.cfg ../installTokens.cfg (note rename) * vi ../installTokens.cfg and set specific attributes for that install * perl install.pl To upgrade a distribution, ie where a proper installTokens.cfg has already been created, * delete the old install directory * recreate the install directory, cd to it * unjar the new jar file * perl install.pl Any feedback welcome Cheers, Simon -Original Message- From: Ritchie Young [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, January 03, 2001 4:30 PM To: [EMAIL PROTECTED] Subject: Re: Setting properties outside of the WAR Oh good, it's not just me. Thanks, I would appreciate it if you did forward me a copy of that script. Cheers Ritchie - Original Message - From: "Kitching Simon" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 03, 2001 6:07 PM Subject: RE: Setting properties outside of the WAR I think that this whole issue (specifying configuration parameters to web applications) needs some serious thought - possibly at the level of the servlet spec development group, even. The problem is that two deployments of the same application are not necessarily identical. The most obvious example is where two otherwise identical installations need to be configured to use different databases (ie different JDBC connection strings). It is really **nasty** to deploy a webapp, then have to edit a string inside the WEB-INF/web.xml as part of the deployment procedure. (a) it's hard to describe in such a way that an "application support team" can reliably get it right, (b) if it is stuffed up, then really nasty consequences can occur - testing system gets connected to production database, or production system gets connected to development database, which is worse ???!! I think what is needed, instead, **is** some configuration outside of the webapp. Upgrading a webapp then doesn't "throw away" the configuration settings used for the previous release. Obviously, there needs to be some kind of consistency checking to ensure that new configuration items don't need to be added for the new release, etc. My current solution (which you are welcome to, Ritchie, if you want a copy) is a perl script which is run after installing a copy of the webapp. It searches the tree of files, replacing any occurrence of strings of form @token-name@ with a value from a property file which is specific to each *installation* of the webapp. My development installation of the webapp gets configured using one property file, my acceptance-test instance uses a second, and the production system uses a third properties file. While the *main* file that gets modified during the install is the web.xml file, there are other files that get modified, eg the log4j configuration options file which is also in WEB-INF. Note that I do not want to use ANT to do this token-replacement during building of the "WAR" file, because I want to have a standard WAR file that can be deployed into development, testing and production. Any alternatives that could be used to configure a webapp per-deployment would be welcome - I'm not perfectly happy with my current solution, I just can't think of anything better Regards, Simon -Original Message- From: Craig R. McClanahan [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, January 02, 2001 10:10 PM To: [EMAIL PROTECTED] Subject: Re: Setting properties outside of the WAR Ritchie Young wrote: Thanks for the response but that wasn't quite what I was getting at. The idea was that there should
Re: curious behavior - pseudo servlet-mapping with mod_jk
That's because you're using the InvokerInterceptor that is mapped to all /servlet/ requests. In your server.xml file you'll see the entry: RequestInterceptor className="org.apache.tomcat.request.InvokerInterceptor" debug="0" prefix="/servlet/" / It is just a handy tool to use during development that allows you to call any servlet without having to register it in servlet-mapping. Apparently it accepts both the class name and the servlet name to invoke a servlet. For servlets that are defined within a package, you'd use http://localhost/mycontext/servlet/xxx.yyy.mypackage.Quiz (could be that it must be http://localhost/mycontext/servlet/xxx/yyy/mypackage/Quiz, not sure) with Quiz being in the appropriate sub-/sub-/subdirectory under /WEB-INF/classes. Most servlet-containers will have a similar mechanism, but I don't think there's really a standard, so for production you'd better use the standard servlet-mapping entries. Luc Vanlerberghe Jacob Kjome wrote: I just noticed something that seems to work for me, but I can't determine quite why? Maybe someone can confirm that this is expected behavior or not. I am running Tomcat 3.2.1 on Windows 2000 It seems that if you have a servlet registered in web.xml like this: servlet servlet-namequiz/servlet-name servlet-classQuiz/servlet-class /servlet AND you have the default values in mod_jk.conf: JkMount /mycontext/*.jsp ajp13 JkMount /mycontext/servlet/* ajp13 you are able to access the above servlet at either of the following URL's: http://localhost/mycontext/servlet/Quiz http://localhost/mycontext/servlet/quiz Notice the case difference in Quiz/quiz It seems that the servlet-name provides a rudimentary amount of servlet mapping. I tested this theory by changing the servlet-name to "quiza" and testing that. After I did that, "Quiz" and "quiza" worked, but "quiz" did not. NOTE: This was done WITHOUT servlet mapping tags such as: servlet-mapping servlet-namequiz/servlet-name url-pattern/quiz/url-pattern /servlet-mapping So, it seems you can very simply (without complex servlet mappings) make your servlet case insensitive; that is in First letter upper case java style class naming syntax OR all lower case. HOWEVER, I am not sure if this is portable accross servers! Can someone confirm that this isn't just a quirk of Tomcat? Should it work this way based on the servlet spec Is it portable across servlet runners Does this work on Tomcat 4.0 Jake - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Q: HTTP Headers
I am having a problem with an automated process in a servlet taking too long and the browser times out. Anyone know of a way to set the timeout limit in headers? i.e. response.setHeader("TIMEOUT", "10"); ... --- Michael Wentzel Software Developer Software As We Think - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: SSL for Stand Alone Tomcat WebServer
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-ssl-howto.html Filip - Original Message - From: Vaughn, Matt To: '[EMAIL PROTECTED]' Sent: Wednesday, January 03, 2001 8:17 AM Subject: SSL for Stand Alone Tomcat WebServer Does anyone know of any documentation or a step-by-step process for setting up SSL with Tomcat as a stand-alone web server. We want to use Sun's JSSE with Tomcat to provide SSL for our web application. Any assistance would be appreciated...we would like to reward your assistance with some free "stuff". Thanks! Matt VaughnConsultant303.770.7200 - office303.770.5452 - fax303.995.3108 - cell
Re: mod_jserv.so
I recommend converting over to mod_jk.so instead. It is an easier to use protocol. mod_jserv.so will not be continued in development. take a look at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html Filip - Original Message - From: Mark Burton To: [EMAIL PROTECTED] Sent: Wednesday, January 03, 2001 6:00 AM Subject: mod_jserv.so I work for a company that is developing software that uses the Apacheweb serverwith Tomcat as a servlet engine. We have been testing the software on Windows NT machines, but would now like to test it under Sun Solaris. We have Apache running successfully on the Sun, but are unable to get Tomcat running. Our research indicates that we do not have a correct version of the file mod_jserv.so. Does anybody know where we can get a version of this file for Sun Solaris?
Re: .jsp error after install
where abouts do you set up the Java Home variable - Original Message - From: Randy Layman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 03, 2001 6:27 AM Subject: RE: .jsp error after install You didn't set JAVA_HOME to include the jdk. Randy -Original Message- From: Gary Lyons [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 03, 2001 9:07 AM To: [EMAIL PROTECTED] Subject: .jsp error after install Hi, I just installed tomcat3.2.1 on Solaris 8 on a SPARC Ultra. The install went well and after starting the stand alone server I tried to run the exaples included with the distribution from the http://myhost:8080/examples/jsp/index.html page. The servlet examples ran well but the .jsp examples all return the error below. I have poured through my conf files and can't find anything obvious. Any help appreciated. Gary Lyons Error: 500 Location: /examples/jsp/num/numguess.jsp Internal Servlet Error: javax.servlet.ServletException: sun/tools/javac/Main 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.(ServletException.java:161) at org.apache.jasper.servlet.JspServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.service(Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(Compiled Code) at org.apache.tomcat.core.ContextManager.service(Compiled Code) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compi led Code) at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code) at java.lang.Thread.run(Compiled Code) Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128) at org.apache.jasper.compiler.Compiler.compile(Compiled Code) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.service(Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(Compiled Code) at org.apache.tomcat.core.ContextManager.service(Compiled Code) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compi led Code) at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code) at java.lang.Thread.run(Compiled Code) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Problem with Tomcat as NT service
Does your wrapper.properties include the jar or zip file of your JDBC driver? Betty - Original Message - From: Vinod [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 03, 2001 3:47 AM Subject: Problem with Tomcat as NT service Hi, I have jakarta-tomcat-3.2 running on Win NT4 and IIS. I have used jk_nt_service.exe to make tomcat as NT service and followed the steps as it is in the documentation. After that I have started the service, when I run a small jdbc example I got the sql exception 'No suitable jdbc driver found'. The same program runs fine when I start tomcat manually. Please provide solution. Thanx n Regards, Vinod - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: EJBs
Title: Message Look at jboss and openejb (just type those words in your browser address bar - the search engine will find the appropriate sites.) -Original Message-From: Christopher Benson [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 02, 2001 9:27 PMTo: [EMAIL PROTECTED]Subject: EJBs Does anyone know if there are there any plans to expand Tomcat to be an EJB container as well as a JSP/Servlet/JavaBean container. If not, does Apache or any other reputable open source organization have an open source EJB container that would work well in tandem with Tomcat? I'm not looking for a commercial EJB container. Is there an open source EJB reference implementation available? Thanks, Christopher
Re: Setting properties outside of the WAR
Perhaps where this is going is a WebApp configurator that knew how to parse XML's , and could display the properties as a administrator-friendly menu, rather than a grisly collection of XML tags. The application might also be able to save a backup copy of configuration, and perhaps patch an older configuration to a new configuration -- and/or let you roll back if you screw something up. It could be used with any WebApp out-of-the-box, but there might also be extensions if developers "wrote to it". The Struts Digester utility might make a good backbone for something like this. Just an idea. (My plate's already full.-) -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel 716 425-0252; Fax 716 223-2506. -- http://www.husted.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
pls help-freebsd,mod_jk,apache,up all night and turning psycho!
Well, getting past the point of frustration anyway. I read all the docs and have set Athis up on NT fine with virtual hosting and apache...and put JRun on 4 different OS's but can't get this install to work. I am running Apache 1.3.9 on 3.4-RELEASE FreeBSD Tomcat is 3.2.1. JDK is the native 1.2.2 for FreeBSD I built mod_jk.so from source. I start up tomcat. 7001 for http, 8001 for ajp12, and 9001 for ajp13. I can connect to the http port (7001) and jsp's run fine. However, if I invoke a jsp from apache, apache is not sending the request to tomcat. I know it is such a simple problem, but really, I been up all night and need some help before I go crazy:) I start up apache, no problems. It works. No errors in mod_jk.log. It creates the workers. No errors in servlet.log or jasper.log Here is some snippets of what I have done. If you see the error of my ways, please feel free to punish me however you see fit. Thanks! My apache file: LoadModulejk_module libexec/apache/mod_jk.so AddModule mod_jk.c # Configure mod_jk # JkWorkersFile /usr/local/jakarta-tomcat-3.2.1/conf/workers.properties JkLogFile /usr/local/etc/apache/mod_jk.log JkLogLevelerror VirtualHost 216.55.177.74 DocumentRoot /usr/local/www/rhoderunner ServerName www.rhoderunner.com JkMount /*.jsp ajp13rhoderunner JkMount /servlet/* ajp13rhoderunner /VirtualHost My worker.properties file: worker.list=ajp12rhoderunner,ajp13rhoderunner (left out ajp12rhoderunner worker...on port 8001) # # Defining a worker named ajp13 and of type ajp13 # Note that the name and the type do not have to match. # worker.ajp13rhoderunner.port=9001 worker.ajp13rhoderunner.host=localhost worker.ajp13rhoderunner.type=ajp13 # # Specifies the load balance factor when used with # a load balancing worker. # Note: # lbfactor must be 0 # Low lbfactor means less work done by the worker. worker.ajp13rhoderunner.lbfactor=1 My server.xml file: (of course I have an AJP12 connector on 8001) !--enable AJP13 support -- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/ Parameter name="port" value="9001"/ /Connector Host name="www.rhoderunner.com" Context path="/" docBase="/usr/local/www/rhoderunner" debug="0"/ /Host - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Newbie Q: How to get a Servlet workiing?
Hi, I recently got Tomcat 3.2.1 running (standalone) on my Redhat 6.1 machine. I got it installed in /usr/local/tomcat and has changed nothing. Supposed I got a servlet class, say abc.class then where should I put this file and what else do I need to do with Tomcat configuration to get it running? Thanks Bosco
RE: .jsp error after install
the script files in TOMCAT_HOME/bin/ setup all of your environment params. where abouts do you set up the Java Home variable -- Michael Wentzel Software Developer Software As We Think - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: virtual domains config...
On Wed, Jan 03, 2001 at 01:31:59PM +0530, Parvez wrote: how do i configure httpd.conf to integrate tomcat only for one of the virtual domains, i tried to include tomcat-apache.conf in that virtual domain. but does not work. has anyone tried it. Just put the mount directives into the virtualhost block and the rest outside. -- Ingo Luetkebohle / [EMAIL PROTECTED] / 95428014 / |SchemantiX Open Source contact; Computational Linguistics |student; Fargonauten.DE sysadmin; Gimp Registry maintainer; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Accessing a local webserver with IE 5.5
Buried somewhere in your network settings (I'm in front of an NT box at the moment) is an indicator of when Win2K should try to connect to a network. Your's is currently set to "always connect". Find that setting and change it to "never connect". Then you won't be prompted to connect. -Original Message- From: Stefán F. Stefánsson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 03, 2001 5:42 AM To: Tomcat-User Subject: Accessing a local webserver with IE 5.5 Hi. I've set up Tomcat at home on a computer not connected to the Internet. It's running Win 2000 Pro. The problem is that when I try to access my locally running webserver I always get the prompt about if I want to connect to the internet or stay offline. If I select to stay offline I receive a notification that the page is not available for offline viewing. There must be a way so I'm asking you... has anybody had (and fixed) that problem? Kind regards, Stefan Freyr Stefan Freyr Stefansson Software Developer deCODE Genetics, Inc. http://www.decode.com Phone: (+354) 570 2854 GSM: (+354) 861 1718 Fax: (+354) 491 3782 Stefan Stefansson.vcf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: curious behavior - pseudo servlet-mapping with mod_jk
Thanks, Luc But I'm not sure if you answered my question or not. I understand the /servlet/ stuff and that you can even leave out any registration of a servlet and see that servlet under, for example, /servlet/Quiz (as long as the class is named Quiz.class with case being meaningful). The thing I'm seeing, but not sure why, is that when actaully registering a servlet like: servlet servlet-namequiz/servlet-name servlet-classQuiz/servlet-class /servlet you can now reference the serlvet in question by calling it with the spelling in either the servlet-name or servlet-class. Maybe that is what you just said. The thing is, you can throw out the fact that Tomcat uses /servlet/ in the default settings for the RequestInterceptor in server.xml. That path can be different among servlet runners. As long as the URL in your HTML is relative and is written like href="./quiz", you will be on target either way. Now, if you've gotten to the servlet successfully already, the URL referencing back to itself will always be correct. The issue now becomes only "will other servlet runner RequestInterceptor's recognize the spellings of both servlet-name and servlet-class to invoke the Quiz.class servlet"? I think you may have answered the above question by saying that Tomcat's RequestInterceptor, specifically, accepts both the serlvet-name and servlet-class spellings when referencing the servlet (that is referencing Quiz.class as /Quiz or /quiz) in a URL but that this is NOT a behavior that can be counted on by other servlet runner RequestInterceptor's. Am I reading you correctly? Jake -Original Message- From: Luc Vanlerberghe [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 03, 2001 11:05 AM To: [EMAIL PROTECTED] Subject: Re: curious behavior - pseudo servlet-mapping with mod_jk That's because you're using the InvokerInterceptor that is mapped to all /servlet/ requests. In your server.xml file you'll see the entry: RequestInterceptor className="org.apache.tomcat.request.InvokerInterceptor" debug="0" prefix="/servlet/" / It is just a handy tool to use during development that allows you to call any servlet without having to register it in servlet-mapping. Apparently it accepts both the class name and the servlet name to invoke a servlet. For servlets that are defined within a package, you'd use http://localhost/mycontext/servlet/xxx.yyy.mypackage.Quiz (could be that it must be http://localhost/mycontext/servlet/xxx/yyy/mypackage/Quiz, not sure) with Quiz being in the appropriate sub-/sub-/subdirectory under /WEB-INF/classes. Most servlet-containers will have a similar mechanism, but I don't think there's really a standard, so for production you'd better use the standard servlet-mapping entries. Luc Vanlerberghe Jacob Kjome wrote: I just noticed something that seems to work for me, but I can't determine quite why? Maybe someone can confirm that this is expected behavior or not. I am running Tomcat 3.2.1 on Windows 2000 It seems that if you have a servlet registered in web.xml like this: servlet servlet-namequiz/servlet-name servlet-classQuiz/servlet-class /servlet AND you have the default values in mod_jk.conf: JkMount /mycontext/*.jsp ajp13 JkMount /mycontext/servlet/* ajp13 you are able to access the above servlet at either of the following URL's: http://localhost/mycontext/servlet/Quiz http://localhost/mycontext/servlet/quiz Notice the case difference in Quiz/quiz It seems that the servlet-name provides a rudimentary amount of servlet mapping. I tested this theory by changing the servlet-name to "quiza" and testing that. After I did that, "Quiz" and "quiza" worked, but "quiz" did not. NOTE: This was done WITHOUT servlet mapping tags such as: servlet-mapping servlet-namequiz/servlet-name url-pattern/quiz/url-pattern /servlet-mapping So, it seems you can very simply (without complex servlet mappings) make your servlet case insensitive; that is in First letter upper case java style class naming syntax OR all lower case. HOWEVER, I am not sure if this is portable accross servers! Can someone confirm that this isn't just a quirk of Tomcat? Should it work this way based on the servlet spec Is it portable across servlet runners Does this work on Tomcat 4.0 Jake - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Newbie Q: How to get a Servlet workiing?
Put your class file in ./Web-inf/classes/ and add the following to you ./Web-inf/web.xml file: servletservlet-nameABC /servlet-nameservlet-classabc /servlet-class/servlet If you want to hide the fact that it's a servlet you can add the following to your web.xml servlet-mappingservlet-nameABC /servlet-nameurl-pattern acb.htm /url-pattern/servlet-mapping Michael Wentzel Software Developer Software As We Think -Original Message-From: Vivienne [mailto:[EMAIL PROTECTED]]Sent: Wednesday, January 03, 2001 12:48 PMTo: [EMAIL PROTECTED]Subject: Newbie Q: How to get a Servlet workiing? Hi, I recently got Tomcat 3.2.1 running (standalone) on my Redhat 6.1 machine. I got it installed in /usr/local/tomcat and has changed nothing. Supposed I got a servlet class, say abc.class then where should I put this file and what else do I need to do with Tomcat configuration to get it running? Thanks Bosco
RE: Tomcat Standalone worked, now doesn't.
In my experience, this problem has one source - your box is running some server that's listening to the same port that Tomcat is trying to listen to. Since you say that you have a problem running Apache and tomcat simultaneously, it sounds like Tomcat's web server has been configured to listen to port 80, which Apache listens to by default. The best thing to do would be: 1. Do a 'ps -ef' (or the equivalent on your OS) and check that Apache has *really* stopped, and that no other servers which *could* listen to the same ports (80, 8080) are running. 2. Try starting Tomcat again. If this still doesn't work, try changing the port that Tomcat listens to. You can try something like . Any arbitrary large number should do. (If you want to use a port below 1000 (?), you must be root). Rit -Original Message- From: Sterling [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 03, 2001 11:39 AM To: Tomcat Subject: Tomcat Standalone worked, now doesn't. H- I'm trying to get Tomcat working as a stand alone on my server. Again. I have unzipped/tared the 3.2 binary into the usr/local directory. Tomcat was working before but for some reason it appeared to be interferring with Apache and would grab the pages first (timeout) than apache would display the page. It also prevented cgi scripts from being run. This was confirmed when I ./bin/shutdown.sh tomcat and all those problems went away. My apache server worked fine. I'm not looking to merge the two. But now that I try to restart Tomcat it doesn't work. I have set all the env variables. TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.1; export TOMCAT_HOME JAVA_HOME=/usr/local/jdk1.3; export JAVA_HOME CLASSPATH=/usr/local/jdk1.3/lib/tools.jar ; export CLASSPATH Thinking that apache might be interferring with tomcat's start up (it complained of an address already in use) I stopped apache (/etc/init.d/apache stop) than ran ./bin/startup.sh. This is what it did. Using classpath: /usr/local/jakarta-tomcat-3.2.1/lib/ant.jar:/usr/local/jakarta-tomcat-3.2.1/ lib/jasper.jar:/usr/local/jakarta-tomcat-3.2.1/lib/jaxp.jar:/usr/local/jakar ta-tomcat-3.2.1/lib/parser.jar:/usr/local/jakarta-tomcat-3.2.1/lib/servlet.j ar:/usr/local/jakarta-tomcat-3.2.1/lib/test:/usr/local/jakarta-tomcat-3.2.1/ lib/webserver.jar:/usr/local/jdk1.3/lib/tools.jar:/usr/local/jdk1.3/lib/tool s.jar XX:/usr/local/jakarta-tomcat-3.2.1# 2001-01-03 12:23:27 - ContextManager: Adding context Ctx( /examples ) 2001-01-03 12:23:27 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-01-03 12:23:27 - ContextManager: Adding context Ctx( ) 2001-01-03 12:23:27 - ContextManager: Adding context Ctx( /test ) FATAL:java.net.BindException: Address already in use java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397) Those FATAL.java.net errors I think are the main problem but I don't know what could be causing them. BTW - there is no tomcat.log file. There is a servlet and jasper.log file. I have pasted them below. As you can see not much there. Anyone have any thoughts on what it could be and how to fit it? Any info or assistance is much appreciated. Thanks. -Sterling PS(I'm running Debian 2.2rev2, JDK1.3, Tomcat3.2.1, and I downloaded the old Java library which was preventing it from running the first time.) xxx:/usr/local/jakarta-tomcat-3.2.1/logs# less jasper.log 2001-01-03 12:23:28 - Scratch dir for the JSP engine is: /usr/local/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples 2001-01-03 12:23:28 - IMPORTANT: Do not modify the generated servlets xxx:/usr/local/jakarta-tomcat-3.2.1/logs# less servlet.log 2001-01-03 12:23:28 - path="/examples" :jsp: init 2001-01-03 12:23:28 - path="/admin" :jsp: init 2001-01-03 12:23:28 - path="" :jsp: init 2001-01-03 12:23:29 - path="/test" :jsp: init This was created right after I ran the ./bin/startup.sh script. Well if you have any thoughts I'd love to hear them. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: .jsp error after install
In your environment before you launch the shell script, or add it to the shell script explicitly. On NT this would be: set JAVA_HOME=c:\jdk1.2 tomcat start On UNIX under a bash shell (I believe, its been a while): export JAVA_HOME=/usr/local/jdk1.2 tomcat start Randy -Original Message- From: Derek Mc Connon [mailto:[EMAIL PROTECTED]] Sent: Monday, January 03, 2022 8:33 PM To: [EMAIL PROTECTED] Subject: Re: .jsp error after install where abouts do you set up the Java Home variable - Original Message - From: Randy Layman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 03, 2001 6:27 AM Subject: RE: .jsp error after install You didn't set JAVA_HOME to include the jdk. Randy -Original Message- From: Gary Lyons [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 03, 2001 9:07 AM To: [EMAIL PROTECTED] Subject: .jsp error after install Hi, I just installed tomcat3.2.1 on Solaris 8 on a SPARC Ultra. The install went well and after starting the stand alone server I tried to run the exaples included with the distribution from the http://myhost:8080/examples/jsp/index.html page. The servlet examples ran well but the .jsp examples all return the error below. I have poured through my conf files and can't find anything obvious. Any help appreciated. Gary Lyons Error: 500 Location: /examples/jsp/num/numguess.jsp Internal Servlet Error: javax.servlet.ServletException: sun/tools/javac/Main 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.(ServletException.java:161) at org.apache.jasper.servlet.JspServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.service(Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(Compiled Code) at org.apache.tomcat.core.ContextManager.service(Compiled Code) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compi led Code) at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code) at java.lang.Thread.run(Compiled Code) Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128) at org.apache.jasper.compiler.Compiler.compile(Compiled Code) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.service(Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(Compiled Code) at org.apache.tomcat.core.ContextManager.service(Compiled Code) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compi led Code) at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code) at java.lang.Thread.run(Compiled Code) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: multiple instances of Tomcat
Amy Roh wrote: Does tomcat allow multiple instances running on the same machine? You can do this if you run Tomcat on different port numbers. What happens if you have different JSP files with same name on different ports? Does it create one java file or two? Will one overwrite the other one? There's two different scenarios: * Do you have separate TOMCAT_HOME directory hierarchies? If so, everything is independent of each other, and no overwrites will occur * Are you sharing TOMCAT_HOME directories? You are most likely going to have overwrite problems, because the work directories will be shared. - Amy Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: multiple instances of Tomcat
-Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 03, 2001 12:29 PM To: [EMAIL PROTECTED] Subject: Re: multiple instances of Tomcat Amy Roh wrote: Does tomcat allow multiple instances running on the same machine? You can do this if you run Tomcat on different port numbers. What happens if you have different JSP files with same name on different ports? Does it create one java file or two? Will one overwrite the other one? There's two different scenarios: * Do you have separate TOMCAT_HOME directory hierarchies? If so, everything is independent of each other, and no overwrites will occur * Are you sharing TOMCAT_HOME directories? You are most likely going to have overwrite problems, because the work directories will be shared. Do you truly need completely different TOMCAT_HOME directory trees? I assumed that using different log and work hierarchies would be sufficient. I have been experimenting with the following: In TOMCAT_HOME, I have separate startup.sh files, which identify specific server.xml files, as follows: $BASEDIR/tomcat.sh start -security -config ../conf/server_tst.xml "$@" The server.xml file (or, in this case, server_tst.xml file), then specifies a specific log and work directory structure, as follows: Logger name="tc_log" path="logs/tst/tomcat.log" verbosityLevel = "DEBUG" / . and later . ContextManager debug="0" workDir="work/tst" showDebugInfo="true" server_tst.xml also has the the autosetup line commented out, and the specific context I want to use is identified: !-- ContextInterceptor className="org.apache.tomcat.context.AutoSetup" / -- . and later . Context path="/tst" docBase="webapps/tst" crossContext="false" debug="0" reloadable="true" /Context It seems to me that this, along with the port changes, should work, but I'm getting errors, like this: 2001-01-03 08:50:09 - ContextManager: Error reading request, ignored - java.lang.NullPointerExceptio n at org.apache.tomcat.core.ContextManager.handleError(ContextManager.java:1099) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:80 0) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHand ler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat Standalone worked, now doesn't.
H- Thanks for the reply. That was my thoughts but I didn't know how to determine what was listening to what. I did a ps -ef and this is an entry that caught my attention. root 13970 1 0 Jan02 ?00:00:11 /usr/lib/kaffe/bin/Kaffe -Dtomcat.home ./bin/.. org.apache.tomcat.startup.Tomcat Could this be preventing Tomcat from running? Looks very suspicious but don't want to kill it unless I'm sure. Although it's very convincing I'd rather be safe than sorry at this point. Thoughts, Comments, Anecdotes ? -Sterling Ritwick Dhar wrote: In my experience, this problem has one source - your box is running some server that's listening to the same port that Tomcat is trying to listen to. Since you say that you have a problem running Apache and tomcat simultaneously, it sounds like Tomcat's web server has been configured to listen to port 80, which Apache listens to by default. The best thing to do would be: 1. Do a 'ps -ef' (or the equivalent on your OS) and check that Apache has *really* stopped, and that no other servers which *could* listen to the same ports (80, 8080) are running. 2. Try starting Tomcat again. If this still doesn't work, try changing the port that Tomcat listens to. You can try something like . Any arbitrary large number should do. (If you want to use a port below 1000 (?), you must be root). Rit -Original Message- From: Sterling [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 03, 2001 11:39 AM To: Tomcat Subject: Tomcat Standalone worked, now doesn't. H- I'm trying to get Tomcat working as a stand alone on my server. Again. I have unzipped/tared the 3.2 binary into the usr/local directory. Tomcat was working before but for some reason it appeared to be interferring with Apache and would grab the pages first (timeout) than apache would display the page. It also prevented cgi scripts from being run. This was confirmed when I ./bin/shutdown.sh tomcat and all those problems went away. My apache server worked fine. I'm not looking to merge the two. But now that I try to restart Tomcat it doesn't work. I have set all the env variables. TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.1; export TOMCAT_HOME JAVA_HOME=/usr/local/jdk1.3; export JAVA_HOME CLASSPATH=/usr/local/jdk1.3/lib/tools.jar ; export CLASSPATH Thinking that apache might be interferring with tomcat's start up (it complained of an address already in use) I stopped apache (/etc/init.d/apache stop) than ran ./bin/startup.sh. This is what it did. Using classpath: /usr/local/jakarta-tomcat-3.2.1/lib/ant.jar:/usr/local/jakarta-tomcat-3.2.1/ lib/jasper.jar:/usr/local/jakarta-tomcat-3.2.1/lib/jaxp.jar:/usr/local/jakar ta-tomcat-3.2.1/lib/parser.jar:/usr/local/jakarta-tomcat-3.2.1/lib/servlet.j ar:/usr/local/jakarta-tomcat-3.2.1/lib/test:/usr/local/jakarta-tomcat-3.2.1/ lib/webserver.jar:/usr/local/jdk1.3/lib/tools.jar:/usr/local/jdk1.3/lib/tool s.jar XX:/usr/local/jakarta-tomcat-3.2.1# 2001-01-03 12:23:27 - ContextManager: Adding context Ctx( /examples ) 2001-01-03 12:23:27 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-01-03 12:23:27 - ContextManager: Adding context Ctx( ) 2001-01-03 12:23:27 - ContextManager: Adding context Ctx( /test ) FATAL:java.net.BindException: Address already in use java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397) Those FATAL.java.net errors I think are the main problem but I don't know what could be causing them. BTW - there is no tomcat.log file. There is a servlet and jasper.log file. I have pasted them below. As you can see not much there. Anyone have any thoughts on what it could be and how to fit it? Any info or assistance is much appreciated. Thanks. -Sterling PS(I'm running Debian 2.2rev2, JDK1.3, Tomcat3.2.1, and I downloaded the old Java library which was preventing it from running the first time.) xxx:/usr/local/jakarta-tomcat-3.2.1/logs# less jasper.log 2001-01-03 12:23:28 - Scratch dir for the JSP engine is: /usr/local/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples 2001-01-03 12:23:28 - IMPORTANT: Do not modify the generated servlets xxx:/usr/local/jakarta-tomcat-3.2.1/logs# less servlet.log 2001-01-03 12:23:28 - path="/examples" :jsp: init 2001-01-03 12:23:28 - path="/admin" :jsp: init 2001-01-03 12:23:28 - path="" :jsp: init 2001-01-03 12:23:29 - path="/test" :jsp: init This was created right after I ran the ./bin/startup.sh script. Well if you have any thoughts I'd love to hear them. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For
Tomcat-4.0-m5 Problem running the build
Hi, I'm using jdk1.2, Windows NT 4.0, on an INTEL platform. I'm having a problem running Tomcat4.0 milestone 5. I followed the directions and succeeded in getting a successful build, but am having problems running the build. The following appears when I run bin\catalina start: A nonfatal internal JIT (3.00.078(x)) error 'Relocation error: NULL relocation target' has occurred in: 'org/apache/crimson/parser/Parser2.maybeComment (Z)Z': Interpreting method. Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi Starting service Tomcat-Standalone Apache Tomcat/4.0-m5 Starting service Tomcat-Apache Apache Tomcat/4.0-m5 When I try to access the default content and examples via http://localhost:8080/, the following error appears in the browser: HTTP Status 404 - / The requested resource (/) is not available. Can't access any of the example servlets or JSP's either. What am I doing wrong? Any ideas would be appreciated! please CC:[EMAIL PROTECTED] Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Tomcat import problem
I am not able to do import com.codestudio.util.*; to use PoolMan in my Java bean that i am trying to create I get below error while compile Running: javac VisitorSelect.java VisitorSelect.java:6: package com.codestudio.util does not exist import com.codestudio.util.*; ^ 1 error 1 error(s) PS : I am able to do import com.codestudio.util.*; on my jsp page and it works great What can be the problem ? It works on jsp but not in .java / class I am using Tomcat Version 3.2 (final) Jdk1.3 PoolMan v1.4.1 on Linux box Please Help ... Thanks in advance.. kpatel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat Standalone worked, now doesn't.
Ack! You are not using Sun's JDK, perhaps that is the problem? Kaffe always gives me a headache. Each time I install a machine (too often), I delete all the java-related binaries in /usr/bin. Try "java -version" and see what you're really running. T Sterling wrote: H- Thanks for the reply. That was my thoughts but I didn't know how to determine what was listening to what. I did a ps -ef and this is an entry that caught my attention. root 13970 1 0 Jan02 ?00:00:11 /usr/lib/kaffe/bin/Kaffe -Dtomcat.home ./bin/.. org.apache.tomcat.startup.Tomcat Could this be preventing Tomcat from running? Looks very suspicious but don't want to kill it unless I'm sure. Although it's very convincing I'd rather be safe than sorry at this point. Thoughts, Comments, Anecdotes ? -Sterling Ritwick Dhar wrote: In my experience, this problem has one source - your box is running some server that's listening to the same port that Tomcat is trying to listen to. Since you say that you have a problem running Apache and tomcat simultaneously, it sounds like Tomcat's web server has been configured to listen to port 80, which Apache listens to by default. The best thing to do would be: 1. Do a 'ps -ef' (or the equivalent on your OS) and check that Apache has *really* stopped, and that no other servers which *could* listen to the same ports (80, 8080) are running. 2. Try starting Tomcat again. If this still doesn't work, try changing the port that Tomcat listens to. You can try something like . Any arbitrary large number should do. (If you want to use a port below 1000 (?), you must be root). Rit -Original Message- From: Sterling [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 03, 2001 11:39 AM To: Tomcat Subject: Tomcat Standalone worked, now doesn't. H- I'm trying to get Tomcat working as a stand alone on my server. Again. I have unzipped/tared the 3.2 binary into the usr/local directory. Tomcat was working before but for some reason it appeared to be interferring with Apache and would grab the pages first (timeout) than apache would display the page. It also prevented cgi scripts from being run. This was confirmed when I ./bin/shutdown.sh tomcat and all those problems went away. My apache server worked fine. I'm not looking to merge the two. But now that I try to restart Tomcat it doesn't work. I have set all the env variables. TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.1; export TOMCAT_HOME JAVA_HOME=/usr/local/jdk1.3; export JAVA_HOME CLASSPATH=/usr/local/jdk1.3/lib/tools.jar ; export CLASSPATH Thinking that apache might be interferring with tomcat's start up (it complained of an address already in use) I stopped apache (/etc/init.d/apache stop) than ran ./bin/startup.sh. This is what it did. Using classpath: /usr/local/jakarta-tomcat-3.2.1/lib/ant.jar:/usr/local/jakarta-tomcat-3.2.1/ lib/jasper.jar:/usr/local/jakarta-tomcat-3.2.1/lib/jaxp.jar:/usr/local/jakar ta-tomcat-3.2.1/lib/parser.jar:/usr/local/jakarta-tomcat-3.2.1/lib/servlet.j ar:/usr/local/jakarta-tomcat-3.2.1/lib/test:/usr/local/jakarta-tomcat-3.2.1/ lib/webserver.jar:/usr/local/jdk1.3/lib/tools.jar:/usr/local/jdk1.3/lib/tool s.jar XX:/usr/local/jakarta-tomcat-3.2.1# 2001-01-03 12:23:27 - ContextManager: Adding context Ctx( /examples ) 2001-01-03 12:23:27 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-01-03 12:23:27 - ContextManager: Adding context Ctx( ) 2001-01-03 12:23:27 - ContextManager: Adding context Ctx( /test ) FATAL:java.net.BindException: Address already in use java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397) Those FATAL.java.net errors I think are the main problem but I don't know what could be causing them. BTW - there is no tomcat.log file. There is a servlet and jasper.log file. I have pasted them below. As you can see not much there. Anyone have any thoughts on what it could be and how to fit it? Any info or assistance is much appreciated. Thanks. -Sterling PS(I'm running Debian 2.2rev2, JDK1.3, Tomcat3.2.1, and I downloaded the old Java library which was preventing it from running the first time.) xxx:/usr/local/jakarta-tomcat-3.2.1/logs# less jasper.log 2001-01-03 12:23:28 - Scratch dir for the JSP engine is: /usr/local/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples 2001-01-03 12:23:28 - IMPORTANT: Do not modify the generated servlets xxx:/usr/local/jakarta-tomcat-3.2.1/logs# less servlet.log 2001-01-03 12:23:28 - path="/examples" :jsp: init 2001-01-03 12:23:28 - path="/admin" :jsp: init 2001-01-03 12:23:28 - path="" :jsp: init 2001-01-03 12:23:29 - path="/test" :jsp: init This was created right after I ran the
Re: Tomcat Standalone worked, now doesn't.
H- This is a confusing situation. Because... I installed tomcat in the /usr/local/ directory, Java (JDK1.3) in the same directory. Grabbed an older version of stdc++ library. After these three things were put on everything worked fine. Servlets, jsp pages everything through the 8080 port. Then I shut it down because of the aforementioned conflicts (which cleared up upon shutting down) and now it won't work. I'm thinking of just deleting the jakarta directory and untaring the file again. I spoke to another who is using the machine and they say that Kaffe has been on the system since day one and tomcat was working with that system than. Here's what the java -version pulled up. Kaffe Virtual Machine Copyright (c) 1996-1999 Transvirtual Technologies, Inc. All rights reserved Engine: Just-in-time v3 Version: 1.0.5 Java Version: 1.1 Why would it work without any modifications on the first try before and not work now? I only modified apache conf files. I'm at a total loss. Nothing has changed except the apache conf files and they were just set to use ssi, and activate cgi-bin. Aak! -Sterling Travis Low wrote: Ack! You are not using Sun's JDK, perhaps that is the problem? Kaffe always gives me a headache. Each time I install a machine (too often), I delete all the java-related binaries in /usr/bin. Try "java -version" and see what you're really running. T Sterling wrote: H- Thanks for the reply. That was my thoughts but I didn't know how to determine what was listening to what. I did a ps -ef and this is an entry that caught my attention. root 13970 1 0 Jan02 ?00:00:11 /usr/lib/kaffe/bin/Kaffe -Dtomcat.home ./bin/.. org.apache.tomcat.startup.Tomcat Could this be preventing Tomcat from running? Looks very suspicious but don't want to kill it unless I'm sure. Although it's very convincing I'd rather be safe than sorry at this point. Thoughts, Comments, Anecdotes ? -Sterling Ritwick Dhar wrote: In my experience, this problem has one source - your box is running some server that's listening to the same port that Tomcat is trying to listen to. Since you say that you have a problem running Apache and tomcat simultaneously, it sounds like Tomcat's web server has been configured to listen to port 80, which Apache listens to by default. The best thing to do would be: 1. Do a 'ps -ef' (or the equivalent on your OS) and check that Apache has *really* stopped, and that no other servers which *could* listen to the same ports (80, 8080) are running. 2. Try starting Tomcat again. If this still doesn't work, try changing the port that Tomcat listens to. You can try something like . Any arbitrary large number should do. (If you want to use a port below 1000 (?), you must be root). Rit -Original Message- From: Sterling [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 03, 2001 11:39 AM To: Tomcat Subject: Tomcat Standalone worked, now doesn't. H- I'm trying to get Tomcat working as a stand alone on my server. Again. I have unzipped/tared the 3.2 binary into the usr/local directory. Tomcat was working before but for some reason it appeared to be interferring with Apache and would grab the pages first (timeout) than apache would display the page. It also prevented cgi scripts from being run. This was confirmed when I ./bin/shutdown.sh tomcat and all those problems went away. My apache server worked fine. I'm not looking to merge the two. But now that I try to restart Tomcat it doesn't work. I have set all the env variables. TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.1; export TOMCAT_HOME JAVA_HOME=/usr/local/jdk1.3; export JAVA_HOME CLASSPATH=/usr/local/jdk1.3/lib/tools.jar ; export CLASSPATH Thinking that apache might be interferring with tomcat's start up (it complained of an address already in use) I stopped apache (/etc/init.d/apache stop) than ran ./bin/startup.sh. This is what it did. Using classpath: /usr/local/jakarta-tomcat-3.2.1/lib/ant.jar:/usr/local/jakarta-tomcat-3.2.1/ lib/jasper.jar:/usr/local/jakarta-tomcat-3.2.1/lib/jaxp.jar:/usr/local/jakar ta-tomcat-3.2.1/lib/parser.jar:/usr/local/jakarta-tomcat-3.2.1/lib/servlet.j ar:/usr/local/jakarta-tomcat-3.2.1/lib/test:/usr/local/jakarta-tomcat-3.2.1/ lib/webserver.jar:/usr/local/jdk1.3/lib/tools.jar:/usr/local/jdk1.3/lib/tool s.jar XX:/usr/local/jakarta-tomcat-3.2.1# 2001-01-03 12:23:27 - ContextManager: Adding context Ctx( /examples ) 2001-01-03 12:23:27 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-01-03 12:23:27 - ContextManager: Adding context Ctx( ) 2001-01-03 12:23:27 - ContextManager: Adding context Ctx( /test ) FATAL:java.net.BindException: Address already in use java.net.BindException: Address already in use
Servlet mapping problem
Hi guys! I'm having some problems with servlet mapping in a servlet application. My 'web.xml' file looks like this: [...] servlet servlet-nameroom/servlet-name servlet-classmyapp.presentation.Room/servlet-class /servlet servlet-mapping servlet-nameroom/servlet-name url-pattern/room/url-pattern /servlet-mapping [...] I'm using session management through URL encoding. The problem is this: if, for instance, I access the above servlet like this: http://localhost:9000/room?type=a I have no problem and everything is fine but if the sessionid goes into the URL like this: http://localhost:9000/room;jsessionid=xebW6G9aFVCb96y6yNTVSMxN?type=a I get: h1Error: 404/h1 File Not Found: /room;jsessionid=xebW6G9aFVCb96y6yNTVSMxN I'm guessing the problem is in the servlet-mapping section of the 'web.xml' file but I've tried lots of variations but nothing worked. Could anyone shed some light on this, please? -- Marco Leal MobiComp - Mobile Computing Wireless Solutions http://www.mobicomp.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: web-app-2.3.dtd
Earl: I had the same issue a few days back, try setting the CATALINA_HOME env. variable to the appropriate directory ( if it isn't already set ). That seems to have solved it for me. Good luck! David - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 03, 2001 03:00 Subject: web-app-2.3.dtd I am running tomcat-4.0 from CVS. on a linux system with the SUNW jdk-1.3.0_01 I have the servletapi for servlet-2.3 from CVS. Tomcat appears to work just fine, except if I put 2.3 tags in my web.xml file the parser does not verify it. How do I get The tomcat run time web.xml parser to recognize and use web-app-2.3.dtd? Thanks =eas= - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Problem with Tomcat as NT service
You need to specify the classpath to the JDBC driver in the wrapper.properties file. Just putting the jar in the tomcat/lib directory is not enough. Starting tomcat manually doesn't require this, as the batch file adds all the jars in the lib directory to the classpath. Happy New Year --- Aaron Knauf Implementation Consultant Genie Systems Ltd Auckland, New Zealand Ph. +64-9-573 3310 x812, email: [EMAIL PROTECTED] http://www.geniesystems.com Vinod [EMAIL PROTECTED] 04/01/2001 00:47 Please respond to tomcat-user To: cc: Subject:Problem with Tomcat as NT service Hi, I have jakarta-tomcat-3.2 running on Win NT4 and IIS. I have used jk_nt_service.exe to make tomcat as NT service and followed the steps as it is in the documentation. After that I have started the service, when I run a small jdbc example I got the sql exception 'No suitable jdbc driver found'. The same program runs fine when I start tomcat manually. Please provide solution. Thanx n Regards, Vinod - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Tomcat as NT service
Hi, I installed Tomcat 3.2 with Apache 1.3.9 using mod_jk on a NT4 system. It works fine, but I have a problem. I installed Tomcat as NT Service with jk_nt_service.exe and it works. But if I log out from the system, Tomcat crash, while Apache obviously runs. Is it normal?? Anybody can help me?? Pezzotti Damiano E-Mail : [EMAIL PROTECTED]Telefono : 0333-21.16.258ICQ# : 50101745 AlambitcoLaboratorio di design e sviluppo web basedWeb : www.alambitco.comFax : 02-700.432.209
How to serialize to specific location?
I have a bean (used in a JSP) that serializes itself once the user submits a form. When the bean serializes itself, it uses a simple file name with no path. The serialized bean is getting saved in /opt/tomcat/ even though I am running in a context that has a base path of /www/mybiz/webapps/. Any idea why it is ending up in /opt/tomcat/ ? What is the best way to have the bean saved in the path of my context without using a hard-coded path name? More to the point, any suggestions on where it really should be saved? I was trying for the same directory in which the bean lives (i.e. /www/mybiz/webapps/examples/WEB-INF/classes/show ) but I'm not sure if that is really the best place to store the serialized bean. Any help is appreciated. - Todd Chaffee - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Tomcat as NT service
Its normal if you are using JDK1.3. Its Sun's problem. Randy -Original Message- From: Damiano Pezzotti [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 03, 2001 1:52 PM To: Jakarta-Tomcat Subject: Tomcat as NT service Hi, I installed Tomcat 3.2 with Apache 1.3.9 using mod_jk on a NT4 system. It works fine, but I have a problem. I installed Tomcat as NT Service with jk_nt_service.exe and it works. But if I log out from the system, Tomcat crash, while Apache obviously runs. Is it normal?? Anybody can help me?? Pezzotti Damiano E-Mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Telefono : 0333-21.16.258 ICQ# : 50101745 Alambitco Laboratorio di design e sviluppo web based Web : www.alambitco.com http://www.alambitco.com Fax : 02-700.432.209 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Setting properties outside of the WAR
Kitching Simon wrote: I think that this whole issue (specifying configuration parameters to web applications) needs some serious thought - possibly at the level of the servlet spec development group, even. The best place to address your suggestions and comments in this regard is "[EMAIL PROTECTED]". The problem is that two deployments of the same application are not necessarily identical. The most obvious example is where two otherwise identical installations need to be configured to use different databases (ie different JDBC connection strings). The deployment descriptor approach is not unique to servlets and JSP pages -- it is consistent across all the components of a J2EE server. Most of the app server's I've seen offer some sort of "deployment tool" that lets you perform customizations like this as you deploy an application. Tomcat currently doesn't have such a thing. I think that would be a tremendously useful gadget to build. It would also solve (for Tomcat) the problems you describe below. It is really **nasty** to deploy a webapp, then have to edit a string inside the WEB-INF/web.xml as part of the deployment procedure. (a) it's hard to describe in such a way that an "application support team" can reliably get it right, (b) if it is stuffed up, then really nasty consequences can occur - testing system gets connected to production database, or production system gets connected to development database, which is worse ???!! I think what is needed, instead, **is** some configuration outside of the webapp. Upgrading a webapp then doesn't "throw away" the configuration settings used for the previous release. Obviously, there needs to be some kind of consistency checking to ensure that new configuration items don't need to be added for the new release, etc. My current solution (which you are welcome to, Ritchie, if you want a copy) is a perl script which is run after installing a copy of the webapp. It searches the tree of files, replacing any occurrence of strings of form @token-name@ with a value from a property file which is specific to each *installation* of the webapp. My development installation of the webapp gets configured using one property file, my acceptance-test instance uses a second, and the production system uses a third properties file. While the *main* file that gets modified during the install is the web.xml file, there are other files that get modified, eg the log4j configuration options file which is also in WEB-INF. Note that I do not want to use ANT to do this token-replacement during building of the "WAR" file, because I want to have a standard WAR file that can be deployed into development, testing and production. Any alternatives that could be used to configure a webapp per-deployment would be welcome - I'm not perfectly happy with my current solution, I just can't think of anything better Ah, you've just built your own custom "deploy tool" :-). A nice Swing-based GUI that did this kind of thing would sure be more pleasant. Regards, Simon Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: IlegalStateException - Please Mind it!
Ariel wrote: I am receiving the following message on my servlet running on Tomcat 3.2 on RedHat 7.0 IllegalStateException: Reader already obtained for this request. My servlet does not use getReader() nor getInputStream() The same servlet run ok in Tomcat 3.1 on Windows 2000 Without more information (the entire stack trace, and the code snippet around where you encounter this exception) it is really hard for anyone to help diagnose what is going on. One thing to note -- if you are processing a POST request, and you call one of the request.getParameter() family of methods, the servlet container *does* call request.getReader() for you, in order to process the request parameters. Ariel Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat as NT service
Damiano, This has been discussed. It is a bug in the 1.3 JVM. You can get around it by using an NT service that use JNI like jsrvany at http://jsrvany.sourceforge.net/ or by running 1.2.2 or by waiting until Sun fixes the bug in 1.3.1 John Damiano Pezzotti wrote: Hi,I installed Tomcat 3.2 with Apache 1.3.9 using mod_jk on a NT4 system. It works fine, but I have a problem.I installed Tomcat as NT Service with jk_nt_service.exe and it works.But if I log out from the system, Tomcat crash, while Apache obviously runs. Is it normal??Anybody can help me?? Pezzotti Damiano E-Mail: [EMAIL PROTECTED] Telefono : 0333-21.16.258 ICQ# : 50101745 Alambitco Laboratorio di design e sviluppo web based Web : www.alambitco.com Fax : 02-700.432.209 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: web-app-2.3.dtd
David Weinrich wrote: Earl: I had the same issue a few days back, try setting the CATALINA_HOME env. variable to the appropriate directory ( if it isn't already set ). That seems to have solved it for me. Good luck! David You also need to make sure that your web.xml file has the appropriate DOCTYPE at the top: !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd" in order to invoke the validating parser. Tomcat registers the local copy of the DTD (based on the public identifier), so it will not go across the Internet to get the DTD every time it starts. Craig - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 03, 2001 03:00 Subject: web-app-2.3.dtd I am running tomcat-4.0 from CVS. on a linux system with the SUNW jdk-1.3.0_01 I have the servletapi for servlet-2.3 from CVS. Tomcat appears to work just fine, except if I put 2.3 tags in my web.xml file the parser does not verify it. How do I get The tomcat run time web.xml parser to recognize and use web-app-2.3.dtd? Thanks =eas= - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: How to serialize to specific location?
Todd Chaffee wrote: I have a bean (used in a JSP) that serializes itself once the user submits a form. When the bean serializes itself, it uses a simple file name with no path. The serialized bean is getting saved in /opt/tomcat/ even though I am running in a context that has a base path of /www/mybiz/webapps/. Any idea why it is ending up in /opt/tomcat/ ? File I/O is an operating system thing, and has no clue what a web app is. Therefore, it just wrote the file in the current working directory of the Tomcat process. What is the best way to have the bean saved in the path of my context without using a hard-coded path name? More to the point, any suggestions on where it really should be saved? I was trying for the same directory in which the bean lives (i.e. /www/mybiz/webapps/examples/WEB-INF/classes/show ) but I'm not sure if that is really the best place to store the serialized bean. That's probably as reasonable as any, although it limits you to running in servlet containers (like Tomcat) that always expand a WAR file into an unpacked directory structure. You can calculate the pathname of the file to store your bean in like this: String path = getServletContext().getRealPath("/WEB-INF/classes/show/MyBean.ser"); Any help is appreciated. - Todd Chaffee Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Setting properties outside of the WAR
server's I've seen offer some sort of "deployment tool" that lets you perform customizations like this as you deploy an application. Off the top of my head, it seems that the right way to do it would be to specify a properties extension mechanism with more expressiveness than the simple context-param elements in the current web.xml. Right now, a good deployment tool could look into the war file and pull out the web.xml, inspect it for context-param elements and create a property sheet to set up those values. However, those properties would only be simple string name-value pairs, because there is no way to specify anything like constraints or non-string types. Hmm, perhaps the resource-ref element could be pressed into service. Basically if you had a tag that pointed to a Bean class you could define custom property editors for manipulating the properties of that class. s - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Can't find bundle - Tomcat does not start
I've had the exact same problem with the en_US locale, but no reply from anybody. This seems to be a rare but unfortunately quite persistent problem. I have only had it with Tomcat 3.2 3.2.1 on a win2000/win98 box. Surprisingly, Tomcat 3.1 and 4.0 work fine. Please, does anyone have a clue? re Jaap - Original Message - From: "Federico Delpino" [EMAIL PROTECTED] Hi people, I face with the following error when I try to start Tomcat with the line command tomcat run Exception in thread "main" java.lang.ExceptionInInitializerError: java.util.Miss ingResourceException: Can't find bundle for base name org.apache.tomcat.resource s.LocalStrings, locale it_IT at java.util.ResourceBundle.throwMissingResourceException(Resou rceBundle.java:707) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:6 79) at java.util.ResourceBundle.getBundle(ResourceBundle.java:546) at org.apache.tomcat.util.StringManager.init(StringManager.ja va:115) at org.apache.tomcat.util.StringManager.getManager(StringManage r.java:260) at org.apache.tomcat.startup.Tomcat.clinit(Tomcat.java:24) I have followed the installation instructions My system runs win 2000 pro JDK 1.3 and, as required, I have set JAVA_HOME=d:\Programmi\jdk1.3 TOMCAT_HOME=d:\Programmi\tomcat-3.2.1 Where I am wrong or what did I miss? Thanks in advance Federico -- Federico Delpino Tel. 39-51-20-95722 Osservatorio Astronomico di BolognaFax. 39-51-20-95700 via Ranzani,1 - 40126 Bologna, Italy e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat-4.0-m5 Problem running the build
Paul Fernandes wrote: Hi, I'm using jdk1.2, Windows NT 4.0, on an INTEL platform. I'm having a problem running Tomcat4.0 milestone 5. I followed the directions and succeeded in getting a successful build, but am having problems running the build. The following appears when I run bin\catalina start: A nonfatal internal JIT (3.00.078(x)) error 'Relocation error: NULL relocation target' has occurred in: 'org/apache/crimson/parser/Parser2.maybeComment (Z)Z': Interpreting method. Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi This is a know issue with the way that the JVM tries to deal with code in the "crimson" XML parser. Starting service Tomcat-Standalone Apache Tomcat/4.0-m5 Starting service Tomcat-Apache Apache Tomcat/4.0-m5 When I try to access the default content and examples via http://localhost:8080/, the following error appears in the browser: HTTP Status 404 - / The requested resource (/) is not available. Can't access any of the example servlets or JSP's either. What am I doing wrong? In the $CATALINA_HOME/webapps directory, do you see "ROOT", "examples", "manager", and "webdav" directories? If not, then you haven't finished all the steps needed, because there is no default webapp available. What I normally do is execute this from the top-level directory of the source distribution: ./build.sh which will build and install Catalina, Jasper, and the webapps into directory "../build/tomcat-4.0". You should be able to run successfully from there. Any ideas would be appreciated! please CC:[EMAIL PROTECTED] Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Mod_jk on HP-UX 11.0 (64 bit)
Has anyone had any luck building mod_jk 3.2.1 under HP-UX 11.0 (64-bit) using HP's ANSI C compiler. Apache is Server Version: Apache/1.3.14 (Unix) mod_ssl/2.7.1 OpenSSL/0.9.6 mod_jk and MM 1.1.3 (shared memory library). I just want to build the .so separately. Makefile follows ... ARCH=PA_RISC2.0 CC=cc CPP=cc -E LD=ld OPTIM=-g OS=hp-ux APACHE_HOME=/usr/local/apache INCLUDES=-I/usr/include -I$(APACHE_HOME)/include -I/usr/local/mm/include JAVA_HOME=/opt/java JAVA_INCL=-I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/$(OS) JAVA_LIB=-L$(JAVA_HOME)/jre/lib/$(ARCH) -L$(JAVA_HOME)/lib/$(ARCH)/native_threads CFLAGS=-Aa -Ae +z -DHPUX11_32 -DSHARED_MODULE -DEAPI -DEAPI_MM -D_HPUX_SOURCE LDFLAGS=-L/usr/local/mm/lib -L/usr/lib -L/usr/ccs/lib $(JAVA_LIB) SRCS=jk_ajp12_worker.c jk_connect.c jk_msg_buff.c jk_util.c jk_ajp13.c \ jk_jni_worker.c jk_pool.c jk_worker.c jk_ajp13_worker.c jk_lb_worker.c \ jk_sockbuf.c jk_map.c jk_uri_worker_map.c OBJS=$(patsubst %.c,%.o,$(SRCS)) .c.o: $(CC) -c $(OPTIM) $(CFLAGS) $(JAVA_INCL) $(INCLUDES) $ all: mod_jk.so mod_jk.so: $(OBJS) mod_jk.o $(LD) $(LDFLAGS) -v -b -o mod_jk.so $(OBJS) mod_jk.o clean: rm *.o *.so -- Kip Iles NO Boundaries Network, Inc Director of Information Systems - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat Standalone worked, now doesn't.
H- Yes that was it. Once that process was killed, tomcat started right up. Strange. Thanks to all for assisting with this. Your clues and advice are much appreciated. Thanks. -Sterling Randy Layman wrote: The problem seems to be that you started Tomcat, tried to stop Tomcat, and tried to start Tomcat again. The output of ps -ef you posted earlier shows that Tomcat is still running. If I remember correctly the people here who were using Kaffe with Tomcat were having networking problems (it wasn't shutting down correctly was one of the complaints, IIRC). It seems that you have been bitten by the same problem. Try killing the Kaffe process (or restarting the machine if you don't want to mess with killing processes) and try starting Tomcat again. Assuming that Tomcat is not set to automatically start on boot, you should be able to start Tomcat after a reboot. To recap, the problem is with how Kaffe implements some of the network APIs so it causes it to not release ports and to not shutdown when the shutdown script is run. Randy -Original Message- From: Sterling [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 03, 2001 2:51 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat Standalone worked, now doesn't. H- This is a confusing situation. Because... I installed tomcat in the /usr/local/ directory, Java (JDK1.3) in the same directory. Grabbed an older version of stdc++ library. After these three things were put on everything worked fine. Servlets, jsp pages everything through the 8080 port. Then I shut it down because of the aforementioned conflicts (which cleared up upon shutting down) and now it won't work. I'm thinking of just deleting the jakarta directory and untaring the file again. I spoke to another who is using the machine and they say that Kaffe has been on the system since day one and tomcat was working with that system than. Here's what the java -version pulled up. Kaffe Virtual Machine Copyright (c) 1996-1999 Transvirtual Technologies, Inc. All rights reserved Engine: Just-in-time v3 Version: 1.0.5 Java Version: 1.1 Why would it work without any modifications on the first try before and not work now? I only modified apache conf files. I'm at a total loss. Nothing has changed except the apache conf files and they were just set to use ssi, and activate cgi-bin. Aak! -Sterling Travis Low wrote: Ack! You are not using Sun's JDK, perhaps that is the problem? Kaffe always gives me a headache. Each time I install a machine (too often), I delete all the java-related binaries in /usr/bin. Try "java -version" and see what you're really running. T Sterling wrote: H- Thanks for the reply. That was my thoughts but I didn't know how to determine what was listening to what. I did a ps -ef and this is an entry that caught my attention. root 13970 1 0 Jan02 ?00:00:11 /usr/lib/kaffe/bin/Kaffe -Dtomcat.home ./bin/.. org.apache.tomcat.startup.Tomcat Could this be preventing Tomcat from running? Looks very suspicious but don't want to kill it unless I'm sure. Although it's very convincing I'd rather be safe than sorry at this point. Thoughts, Comments, Anecdotes ? -Sterling Ritwick Dhar wrote: In my experience, this problem has one source - your box is running some server that's listening to the same port that Tomcat is trying to listen to. Since you say that you have a problem running Apache and tomcat simultaneously, it sounds like Tomcat's web server has been configured to listen to port 80, which Apache listens to by default. The best thing to do would be: 1. Do a 'ps -ef' (or the equivalent on your OS) and check that Apache has *really* stopped, and that no other servers which *could* listen to the same ports (80, 8080) are running. 2. Try starting Tomcat again. If this still doesn't work, try changing the port that Tomcat listens to. You can try something like . Any arbitrary large number should do. (If you want to use a port below 1000 (?), you must be root). Rit -Original Message- From: Sterling [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 03, 2001 11:39 AM To: Tomcat Subject: Tomcat Standalone worked, now doesn't. H- I'm trying to get Tomcat working as a stand alone on my server. Again. I have unzipped/tared the 3.2 binary into the usr/local directory. Tomcat was working before but for some reason it appeared to be interferring with Apache and would grab the pages first (timeout) than apache would display the page. It also prevented cgi scripts from being run. This was confirmed when I ./bin/shutdown.sh tomcat and all those problems went away. My apache server worked fine. I'm not looking to merge the two. But now that I try
Re: How to serialize to specific location?
Thanks for the suggestions. Your explanations cleared things up considerably. One of your points got me wondering if I'm heading down the wrong path here. Please see my note in the original thread below. Thanks, Todd Chaffee At 12:33 PM 01/03/01 -0800, you wrote: Todd Chaffee wrote: I have a bean (used in a JSP) that serializes itself once the user submits a form. When the bean serializes itself, it uses a simple file name with no path. The serialized bean is getting saved in /opt/tomcat/ even though I am running in a context that has a base path of /www/mybiz/webapps/. Any idea why it is ending up in /opt/tomcat/ ? File I/O is an operating system thing, and has no clue what a web app is. Therefore, it just wrote the file in the current working directory of the Tomcat process. What is the best way to have the bean saved in the path of my context without using a hard-coded path name? More to the point, any suggestions on where it really should be saved? I was trying for the same directory in which the bean lives (i.e. /www/mybiz/webapps/examples/WEB-INF/classes/show ) but I'm not sure if that is really the best place to store the serialized bean. That's probably as reasonable as any, although it limits you to running in servlet containers (like Tomcat) that always expand a WAR file into an unpacked directory structure. I am serializing to implement persistence. Considering your point above, any suggestions on a 'better' way to do this? My first thought was a flat file and then I realized that serializing the bean would be more portable and a more 'java' way of doing it but maybe I'm heading down the wrong path altogether. You can calculate the pathname of the file to store your bean in like this: String path = getServletContext().getRealPath("/WEB-INF/classes/show/MyBean.ser"); Any help is appreciated. - Todd Chaffee Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: How to serialize to specific location?
Todd Chaffee wrote: I am serializing to implement persistence. Considering your point above, any suggestions on a 'better' way to do this? My first thought was a flat file and then I realized that serializing the bean would be more portable and a more 'java' way of doing it but maybe I'm heading down the wrong path altogether. Right now, the servlet spec doesn't help you any on persistence -- it only offers you a "temporary" directory that is not guaranteed to survive a server restart. There was quite a bit of discussion on the expert group responsible for the servlet 2.3 spec about supporting "writeable resources" in some fashion, but no consensus was reached in time for the spec to be published. Until this is addressed in the spec, the advice is to use external mechanisms (databases, directory servers, files, EJBs, etc.) to implement persistence. Using serialized JavaBeans in disk files certainly fits that category -- my only caution was that you cannot necessarily assume there is such a thing as a WEB-INF *directory*, although many servlet containers do the same thing that Tomcat does and expands WAR files. One approach that would avoid portability problems would be to define a context initialization parameter in your web.xml file, whose value is the name of a directory that this app is allowed to use for persistent storage. That way, you would not be hard coding any assumptions about *where* these files are into the applications that use them, and you could move them to a different place (say, because a disk was getting full), with only a single configuration file change. Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
How do I determine the admin userid and password?
Hi, I am trying to add a new context using the admin interface: http://localhost:8080/admin/contextAdmin/ However, Tomcat requires an admin user id and password. I couldn't find it from the documentation and so I created a user called "admin" and password "admin" in the file tomcat-users.xml. It lets me through and then complains with a message "You must mark the administration trusted" Any clues? Thanks, Ravi. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: How do I determine the admin userid and password?
Try this, In /conf/server.xml Context ... trusted="true" ... /context /bill "Ravi Sundaar" [EMAIL PROTECTED] on 01/03/2001 05:17:28 PM Please respond to [EMAIL PROTECTED]; Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Bill Fellows/MO/americancentury) Subject: How do I determine the admin userid and password? Hi, I am trying to add a new context using the admin interface: http://localhost:8080/admin/contextAdmin/ However, Tomcat requires an admin user id and password. I couldn't find it from the documentation and so I created a user called "admin" and password "admin" in the file tomcat-users.xml. It lets me through and then complains with a message "You must mark the administration trusted" Any clues? Thanks, Ravi. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
TOMCAT Question
Hi, I try to run Servlet from TOMCAT, but it has error. Please give me some help! The Servlet is to access Oracle DB. V8i. from the Travel DB that I download from Oracle site. I use Jdeveloper 3.1.1.2 to create this project. It compiles and runs fine in Jdeveloper. When I try to deploy it to TOMCAT, it has the following error message: Error: 500 Location: /examples/servlet/test/test Internal Servlet Error: java.lang.NullPointerException at java.lang.ClassLoader.resolveClass0(Native Method) at java.lang.ClassLoader.resolveClass(ClassLoader.java:588) at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:430) at org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoader.java:174) at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:265) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289) at org.apache.tomcat.core.Handler.service(Handler.java:254) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) It looks to me like Tomcat cannot fine the lib files. Also, the test.jar deployment file has sub directory. If I unzip them to F:\tomcat\jakarta-tomcat-3.2\webapps\examples\WEB-INF\classes, it will create several sub directories and jar files. How can I run the test.class file, if the file is in a sub directory say myproject? Can Tomcat get the lib and attachment file from all the sub directory? Thanks very much. kenny __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: web-app-2.3.dtd
Thanks for the suggestions. Here is how I started Tomcat. [eas@plutus easMail]$ CATALINA_HOME=$TOMCAT_HOME startup.sh Using CLASSPATH: /home/src/Java/jakarta/dist/tomcat-4.0/bin/bootstrap.jar:/home/src/Java/jakarta/dist/tomcat-4.0/bin/servlet.jar:/home/src/Java/jakarta/dist/tomcat-4.0/bin/naming.jar:/usr/Java/jdk/lib/tools.jar Using CATALINA_HOME: /home/src/Java/jakarta/dist/tomcat-4.0 Here are the first few lines of my 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 resource-env-ref resource-env-ref-namessl/factory/resource-env-ref-name resource-env-ref-typejavax.net.ssl.SSLSocketFactory/resource-env-ref-type /resource-env-ref servlet !-- line 12 -- servlet-nameeasMail/servlet-name And Here are the appropriate lines from the localhost log. 2001-01-03 15:55:36 ContextConfig[/easMail] Parse error in application web.xml org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet" here. at org.apache.crimson.parser.Parser2.error(Parser2.java:3008) at org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(ValidatingParser.java:349) 2001-01-03 15:55:36 ContextConfig[/easMail]: Occurred at line 12 column -1 I may be reading the DTD wrong, but my xemacs thinks I can have a servlet there, and from my reading of the DTD I do to. Can you give me a clue? Thanks =eas= On 3 Jan, Craig R. McClanahan wrote: David Weinrich wrote: Earl: I had the same issue a few days back, try setting the CATALINA_HOME env. variable to the appropriate directory ( if it isn't already set ). That seems to have solved it for me. Good luck! David You also need to make sure that your web.xml file has the appropriate DOCTYPE at the top: !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd" in order to invoke the validating parser. Tomcat registers the local copy of the DTD (based on the public identifier), so it will not go across the Internet to get the DTD every time it starts. Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: web-app-2.3.dtd
[EMAIL PROTECTED] wrote: Thanks for the suggestions. Here is how I started Tomcat. [eas@plutus easMail]$ CATALINA_HOME=$TOMCAT_HOME startup.sh Using CLASSPATH: /home/src/Java/jakarta/dist/tomcat-4.0/bin/bootstrap.jar:/home/src/Java/jakarta/dist/tomcat-4.0/bin/servlet.jar:/home/src/Java/jakarta/dist/tomcat-4.0/bin/naming.jar:/usr/Java/jdk/lib/tools.jar Using CATALINA_HOME: /home/src/Java/jakarta/dist/tomcat-4.0 Here are the first few lines of my 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 resource-env-ref resource-env-ref-namessl/factory/resource-env-ref-name resource-env-ref-typejavax.net.ssl.SSLSocketFactory/resource-env-ref-type /resource-env-ref servlet !-- line 12 -- servlet-nameeasMail/servlet-name And Here are the appropriate lines from the localhost log. 2001-01-03 15:55:36 ContextConfig[/easMail] Parse error in application web.xml org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet" here. at org.apache.crimson.parser.Parser2.error(Parser2.java:3008) at org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(ValidatingParser.java:349) 2001-01-03 15:55:36 ContextConfig[/easMail]: Occurred at line 12 column -1 Ah, so it *is* validating. I misunderstood you, and thought the problem is that it was not catching validity errors. I may be reading the DTD wrong, but my xemacs thinks I can have a servlet there, and from my reading of the DTD I do to. Can you give me a clue? Yep. The elements in the DTD must be defined in the order they are listed for the "web-app" element. In your case above, all of the servlet definitions must preceed all of the resource-env-ref definitions. No, I don't particularly like the order dependencies either, but its there and we have to live with it. Thanks Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: pls help-freebsd,mod_jk,apache,up all night and turning psycho!
Phillip, Question, did you compile mod_jk.so using the supplied makefile? If so, you didn't get the whole thing compiled. The makefile doesn't work correctly. So that is the first shibboleth. Your config files look pretty good, which is why I ask. The mod_jk.so will appear to compile and even load, but it won't work. What does the output look like for the compile? Are all the supplied files compiling? Second, I suggest you try and get things working "out of the box", I.e., with the mod_jk.conf-auto. Once things work you can then modify, add virtual hosts, etc with more assurance. Good Luck (it can be made to work), Dave - Original Message - From: "Phillip C Rhodes" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 03, 2001 12:34 PM Subject: pls help-freebsd,mod_jk,apache,up all night and turning psycho! Well, getting past the point of frustration anyway. I read all the docs and have set Athis up on NT fine with virtual hosting and apache...and put JRun on 4 different OS's but can't get this install to work. I am running Apache 1.3.9 on 3.4-RELEASE FreeBSD Tomcat is 3.2.1. JDK is the native 1.2.2 for FreeBSD I built mod_jk.so from source. I start up tomcat. 7001 for http, 8001 for ajp12, and 9001 for ajp13. I can connect to the http port (7001) and jsp's run fine. However, if I invoke a jsp from apache, apache is not sending the request to tomcat. I know it is such a simple problem, but really, I been up all night and need some help before I go crazy:) I start up apache, no problems. It works. No errors in mod_jk.log. It creates the workers. No errors in servlet.log or jasper.log Here is some snippets of what I have done. If you see the error of my ways, please feel free to punish me however you see fit. Thanks! My apache file: LoadModulejk_module libexec/apache/mod_jk.so AddModule mod_jk.c # Configure mod_jk # JkWorkersFile /usr/local/jakarta-tomcat-3.2.1/conf/workers.properties JkLogFile /usr/local/etc/apache/mod_jk.log JkLogLevelerror VirtualHost 216.55.177.74 DocumentRoot /usr/local/www/rhoderunner ServerName www.rhoderunner.com JkMount /*.jsp ajp13rhoderunner JkMount /servlet/* ajp13rhoderunner /VirtualHost My worker.properties file: worker.list=ajp12rhoderunner,ajp13rhoderunner (left out ajp12rhoderunner worker...on port 8001) # # Defining a worker named ajp13 and of type ajp13 # Note that the name and the type do not have to match. # worker.ajp13rhoderunner.port=9001 worker.ajp13rhoderunner.host=localhost worker.ajp13rhoderunner.type=ajp13 # # Specifies the load balance factor when used with # a load balancing worker. # Note: # lbfactor must be 0 # Low lbfactor means less work done by the worker. worker.ajp13rhoderunner.lbfactor=1 My server.xml file: (of course I have an AJP12 connector on 8001) !--enable AJP13 support -- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/ Parameter name="port" value="9001"/ /Connector Host name="www.rhoderunner.com" Context path="/" docBase="/usr/local/www/rhoderunner" debug="0"/ /Host - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
JSP debugging question
I'm using Tomcat 3.2.1 with JBuilder 4.0 foundation. I've managed to configure it appropriately to debug my Tomcat application, although I have one problem that I cannot figure out...hoping someone has the answer. My JSP files are in a subdirectory of my webapp context directory...called "jsp" (my intention is to use a directory tree under "jsp" to better organize my JSPs vs. putting them all in one directory). When Tomcat/Jasper converts a JSP to a .java file, it puts a package statement at the top of the .java file with the directory name (in this case "jsp") as the package for that file. The problem is that Tomcat/Jasper doesn't place the file in a directory matching the package in the Tomcat work directory...instead, it simply mangles the filename to indicate the package structure, and places the file in the top level work directory for the web In order to work around this problem, I created an ANT target that copies the .java source files to the appropriate package directories within the Tomcat work directory for my webapp. Unfortunately, I have to run this every time after re-deploying the webapp. In order to make the .java source files (generated from JSPs) visible in JBuilder's debugger, I have also added a JBuilder required library containing as a source path, the Tomcat work directory with the "jsp" directory appended. This has the effect of adding the .java files in the jsp sub-directory in Tomcat webapp work directory to the JBuilder source file path, thus making the .java files generated from the JSPs visible within JBuilder. This works...sort of. By doing this, I am able to single step debug into the .java file for a JSP, and view instance and local variables. Unfortunately, I am unable to set a breakpoint in the JSP's .java file. Of some note, I *am* able to set breakpoints in the .java files that are generated by the Struts example application's JSPs. The only difference that I can discern is that the struts-example application places all of its JSPs in the top level webapp context directory. On a side note, I tried adding the package "jsp" to the JBuilder project (using the little green + at the top left of the JBuilder main window), but this didn't seem to have any effect. I'd greatly appreciate any ideas on how to get this to work, as it does slow down the debugging process not being able to set breakpoints in these generated .java files. Oh, one more thing Does anyone know why Tomcat/Jasper places the generated .java and .class files in a flat directory, rather than a directory structure that mirrors that used for the JSP files? This is annoying, and seems out of character with the whole concept of Java packages. Thanks very much for any help, Rick Horowitz _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
bind problem
Hi All Could anyone shed some light on this error I get when starting tomcat. csjsp:/usr/local/tomcat/bin# ./startup.sh Using classpath: .:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:/usr/local/ tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/webs erver.jar:/usr/local/tomcat/lib/xml.jar csjsp:/usr/local/tomcat/bin# Context log: path="/examples" Adding context path="/examples" docBase="webapps/examples" Context log: path="" Adding context path="" docBase="webapps/ROOT" Context log: path="/test" Adding context path="/test" docBase="webapps/test" Starting tomcat. Check logs/tomcat.log for error messages Starting tomcat install="/usr/local/tomcat" home="/usr/local/tomcat" classPath="/usr/share/java/repository:.:/usr/local/tomcat/lib/ant.jar:/usr/l ocal/tomcat/lib/jasper.jar:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomc at/lib/test:/usr/local/tomcat/lib/webserver.jar:/usr/local/tomcat/lib/xml.ja r" Context log: path="/admin" Automatic context load docBase="/usr/local/tomcat/webapps/admin" Context log: path="/admin" Adding context path="/admin" docBase="/usr/local/tomcat/webapps/admin" FATAL:java.net.BindException: Address already in use java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397) at java.net.ServerSocket.init(ServerSocket.java:170) at java.net.ServerSocket.init(ServerSocket.java:121) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS ocketFactory.java:97) at org.apache.tomcat.service.SimpleTcpEndpoint.startEndpoint(SimpleTcpEndpoint. java:186) at org.apache.tomcat.service.SimpleTcpConnector.start(SimpleTcpConnector.java:1 42) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:253) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:157) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163) Andrew Burrows National IT Manager Flexstor.net Australia 5 Roundhay Court Berwick VIC 3806 Mobile: 0402300400 Phone: 613 97073008 Fax: 613 99236069 E-mail: [EMAIL PROTECTED] cc E-mail: [EMAIL PROTECTED] www.flexstornet.com.au - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: bind problem
The address port that Tomcat is trying to listen on is already in use... --- Andrew Burrows [EMAIL PROTECTED] wrote: Hi All Could anyone shed some light on this error I get when starting tomcat. csjsp:/usr/local/tomcat/bin# ./startup.sh Using classpath: .:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:/usr/local/ tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/webs erver.jar:/usr/local/tomcat/lib/xml.jar csjsp:/usr/local/tomcat/bin# Context log: path="/examples" Adding context path="/examples" docBase="webapps/examples" Context log: path="" Adding context path="" docBase="webapps/ROOT" Context log: path="/test" Adding context path="/test" docBase="webapps/test" Starting tomcat. Check logs/tomcat.log for error messages Starting tomcat install="/usr/local/tomcat" home="/usr/local/tomcat" classPath="/usr/share/java/repository:.:/usr/local/tomcat/lib/ant.jar:/usr/l ocal/tomcat/lib/jasper.jar:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomc at/lib/test:/usr/local/tomcat/lib/webserver.jar:/usr/local/tomcat/lib/xml.ja r" Context log: path="/admin" Automatic context load docBase="/usr/local/tomcat/webapps/admin" Context log: path="/admin" Adding context path="/admin" docBase="/usr/local/tomcat/webapps/admin" FATAL:java.net.BindException: Address already in use java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397) at java.net.ServerSocket.init(ServerSocket.java:170) at java.net.ServerSocket.init(ServerSocket.java:121) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS ocketFactory.java:97) at org.apache.tomcat.service.SimpleTcpEndpoint.startEndpoint(SimpleTcpEndpoint. java:186) at org.apache.tomcat.service.SimpleTcpConnector.start(SimpleTcpConnector.java:1 42) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:253) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:157) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163) Andrew Burrows National IT Manager Flexstor.net Australia 5 Roundhay Court Berwick VIC 3806 Mobile: 0402300400 Phone: 613 97073008 Fax: 613 99236069 E-mail: [EMAIL PROTECTED] cc E-mail: [EMAIL PROTECTED] www.flexstornet.com.au - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Accessing Context's lib path
Do I understand this right? If I place a jar file in a context's lib directory my classes should have access to it? When I display System.getProperty("java.class.path") all that appears is the $CLASSPATH with $TOMCAT_HOME/classes and the jar files in the $TOMCAT_HOME/lib directory. How do my servlets determine where it's supporting classes are? How are any of my classes (especially my secure classloader) to know the location of their servlet context? According to the API, I can determine that the classes I need are in the "myclasses.jar" file within the "lib" directory of the WEB-INF directory under the directory named the same as my myWebApp.war file, but I have no idea where myWebApp.war was placed: $UNKNOWN_PATH/myWebApp/WEB-INF/lib/myclasses.jar How do I figure out $UNKNOWN_PATH? The end goal is to be able to create a .war file with just one set of class files that can be easily deployable by simply placing the .war file in the webapps directory. I'm finding that in order to deploy my servlet application in Tomcat, I have to place the .war file in the webapps directory, extract the particular .jar files and place them in the $TOMACT_HOME/lib directory as well. This makes for difficult deployment. I use my own classloader as a part of an application framework, and this classloader is integral to the framework, making it undesirable to by-pass for servlet 2.2 deployment. It uses the 1.2 delegation model by over-ridding findClass() and letting loadClass() delegate loading up to the parent classloaders before calling the custom-written findClass(), and it still cannot find any classes in the myclasses.jar. Now I know that myclasses.jar is being accessed, because the rest of the framework is being loaded via the web.xml deployment file. Any help would be greatly appreciated. Steve Cote - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: bind problem
Hi David, Could you tell me how to find what process is using this port. Andrew Ps It is install on a linux box. From: "David M. Holmes" [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Wed, 3 Jan 2001 20:34:57 -0800 To: [EMAIL PROTECTED] Subject: Re: bind problem The address port that Tomcat is trying to listen on is already in use... --- Andrew Burrows [EMAIL PROTECTED] wrote: Hi All Could anyone shed some light on this error I get when starting tomcat. csjsp:/usr/local/tomcat/bin# ./startup.sh Using classpath: .:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:/usr/local/ tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/webs erver.jar:/usr/local/tomcat/lib/xml.jar csjsp:/usr/local/tomcat/bin# Context log: path="/examples" Adding context path="/examples" docBase="webapps/examples" Context log: path="" Adding context path="" docBase="webapps/ROOT" Context log: path="/test" Adding context path="/test" docBase="webapps/test" Starting tomcat. Check logs/tomcat.log for error messages Starting tomcat install="/usr/local/tomcat" home="/usr/local/tomcat" classPath="/usr/share/java/repository:.:/usr/local/tomcat/lib/ant.jar:/usr/l ocal/tomcat/lib/jasper.jar:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomc at/lib/test:/usr/local/tomcat/lib/webserver.jar:/usr/local/tomcat/lib/xml.ja r" Context log: path="/admin" Automatic context load docBase="/usr/local/tomcat/webapps/admin" Context log: path="/admin" Adding context path="/admin" docBase="/usr/local/tomcat/webapps/admin" FATAL:java.net.BindException: Address already in use java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397) at java.net.ServerSocket.init(ServerSocket.java:170) at java.net.ServerSocket.init(ServerSocket.java:121) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS ocketFactory.java:97) at org.apache.tomcat.service.SimpleTcpEndpoint.startEndpoint(SimpleTcpEndpoint. java:186) at org.apache.tomcat.service.SimpleTcpConnector.start(SimpleTcpConnector.java:1 42) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:253) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:157) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163) Andrew Burrows National IT Manager Flexstor.net Australia 5 Roundhay Court Berwick VIC 3806 Mobile: 0402300400 Phone: 613 97073008 Fax: 613 99236069 E-mail: [EMAIL PROTECTED] cc E-mail: [EMAIL PROTECTED] www.flexstornet.com.au - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: bind problem
Use netstat -nlp to find the process id that is listening on that port. Cheers Ritchie - Original Message - From: "Andrew Burrows" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 04, 2001 11:23 AM Subject: Re: bind problem Hi David, Could you tell me how to find what process is using this port. Andrew Ps It is install on a linux box. From: "David M. Holmes" [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Wed, 3 Jan 2001 20:34:57 -0800 To: [EMAIL PROTECTED] Subject: Re: bind problem The address port that Tomcat is trying to listen on is already in use... --- Andrew Burrows [EMAIL PROTECTED] wrote: Hi All Could anyone shed some light on this error I get when starting tomcat. csjsp:/usr/local/tomcat/bin# ./startup.sh Using classpath: .:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:/usr/local/ tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/webs erver.jar:/usr/local/tomcat/lib/xml.jar csjsp:/usr/local/tomcat/bin# Context log: path="/examples" Adding context path="/examples" docBase="webapps/examples" Context log: path="" Adding context path="" docBase="webapps/ROOT" Context log: path="/test" Adding context path="/test" docBase="webapps/test" Starting tomcat. Check logs/tomcat.log for error messages Starting tomcat install="/usr/local/tomcat" home="/usr/local/tomcat" classPath="/usr/share/java/repository:.:/usr/local/tomcat/lib/ant.jar:/usr/l ocal/tomcat/lib/jasper.jar:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomc at/lib/test:/usr/local/tomcat/lib/webserver.jar:/usr/local/tomcat/lib/xml.ja r" Context log: path="/admin" Automatic context load docBase="/usr/local/tomcat/webapps/admin" Context log: path="/admin" Adding context path="/admin" docBase="/usr/local/tomcat/webapps/admin" FATAL:java.net.BindException: Address already in use java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397) at java.net.ServerSocket.init(ServerSocket.java:170) at java.net.ServerSocket.init(ServerSocket.java:121) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS ocketFactory.java:97) at org.apache.tomcat.service.SimpleTcpEndpoint.startEndpoint(SimpleTcpEndpoint. java:186) at org.apache.tomcat.service.SimpleTcpConnector.start(SimpleTcpConnector.java:1 42) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:253) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:157) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163) Andrew Burrows National IT Manager Flexstor.net Australia 5 Roundhay Court Berwick VIC 3806 Mobile: 0402300400 Phone: 613 97073008 Fax: 613 99236069 E-mail: [EMAIL PROTECTED] cc E-mail: [EMAIL PROTECTED] www.flexstornet.com.au - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Accessing Context's lib path
Steve Cote wrote: Do I understand this right? If I place a jar file in a context's lib directory my classes should have access to it? Yes. To be slightly more precise, we're talking about JAR files you place in the WEB-INF/lib directory of your web app. When I display System.getProperty("java.class.path") all that appears is the $CLASSPATH with $TOMCAT_HOME/classes and the jar files in the $TOMCAT_HOME/lib directory. That is because you are trying to look at the system class path. Tomcat creates a custom class loader per web app -- and it is inside the class loader that the makes classes in JAR files under WEB-INF/lib (as well as unpacked classes under WEB-INF/classes) available to your web app. When you remember that each webapp has a *different* set of classes visible to it, it makes sense why the system classpath cannot be used -- it's global to the entire Tomcat process. How do my servlets determine where it's supporting classes are? How are any of my classes (especially my secure classloader) to know the location of their servlet context? What "secure classloader"? The one that Tomcat creates for you? That one is a private implementation that understands it belongs to a servlet context. Any classloader that you create (assuming the servlet container allows you to) must be told where to load classes from as part of it's configuration. According to the API, I can determine that the classes I need are in the "myclasses.jar" file within the "lib" directory of the WEB-INF directory under the directory named the same as my myWebApp.war file, but I have no idea where myWebApp.war was placed: $UNKNOWN_PATH/myWebApp/WEB-INF/lib/myclasses.jar How do I figure out $UNKNOWN_PATH? Why do you care? Tomcat takes care of all this bookkeeping for you. The end goal is to be able to create a .war file with just one set of class files that can be easily deployable by simply placing the .war file in the webapps directory. I'm finding that in order to deploy my servlet application in Tomcat, I have to place the .war file in the webapps directory, extract the particular .jar files and place them in the $TOMACT_HOME/lib directory as well. This makes for difficult deployment. Then you are doing something wrong, or there is something wrong with your WAR file, or you are still using Tomcat 3.1 (if that is the case, go directly to http://jakarta.apache.org and get version 3.2.1). I use my own classloader as a part of an application framework, and this classloader is integral to the framework, making it undesirable to by-pass for servlet 2.2 deployment. It uses the 1.2 delegation model by over-ridding findClass() and letting loadClass() delegate loading up to the parent classloaders before calling the custom-written findClass(), and it still cannot find any classes in the myclasses.jar. Now I know that myclasses.jar is being accessed, because the rest of the framework is being loaded via the web.xml deployment file. If you're using Tomcat 3.1 give up now -- it does not support the 1.2 delegation model at all. Under Tomcat 3.2 you need to make sure you uncomment the appropriate 1.2-related interceptors in order to enable support for the delegation model. Under Tomcat 4.0 you should have no problems if you do the following to initialize your classloader (assume this is in the init() method of your servlet): ClassLoader parent = this.getClass().getClassLoader(); MyClassLoader myLoader = new MyClassLoader(parent);// Assumes a constructor // like the standard java.lang.ClassLoader to // set the parent classloader. Any help would be greatly appreciated. Steve Cote Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: bind problem
Hi Ritchie, I ran that but it hasn't listed anything on that port. csjsp:/etc/apache# netstat -nlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp0 0 0.0.0.0:80 0.0.0.0:* LISTEN 25856/apache tcp0 0 0.0.0.0:80800.0.0.0:* LISTEN 258/java tcp0 0 0.0.0.0:21 0.0.0.0:* LISTEN 224/proftpd (accept tcp0 0 0.0.0.0:22 0.0.0.0:* LISTEN 216/sshd tcp0 0 0.0.0.0:33060.0.0.0:* LISTEN 181/mysqld raw0 0 0.0.0.0:1 0.0.0.0:* 7 - raw0 0 0.0.0.0:6 0.0.0.0:* 7 - Active UNIX domain sockets (only servers) Proto RefCnt Flags Type State I-Node PID/Program name Path unix 0 [ ACC ] STREAM LISTENING 127181/mysqld /var/run/mysqld/mysqld.sock unix 0 [ ACC ] STREAM L Andrew Burrows National IT Manager Flexstor.net Australia 5 Roundhay Court Berwick VIC 3806 Mobile: 0402300400 Phone: 613 97073008 Fax: 613 99236069 E-mail: [EMAIL PROTECTED] cc E-mail: [EMAIL PROTECTED] www.flexstornet.com.au From: "Ritchie Young" [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Thu, 4 Jan 2001 11:34:54 +0800 To: [EMAIL PROTECTED] Subject: Re: bind problem Use netstat -nlp to find the process id that is listening on that port. Cheers Ritchie - Original Message - From: "Andrew Burrows" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 04, 2001 11:23 AM Subject: Re: bind problem Hi David, Could you tell me how to find what process is using this port. Andrew Ps It is install on a linux box. From: "David M. Holmes" [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Wed, 3 Jan 2001 20:34:57 -0800 To: [EMAIL PROTECTED] Subject: Re: bind problem The address port that Tomcat is trying to listen on is already in use... --- Andrew Burrows [EMAIL PROTECTED] wrote: Hi All Could anyone shed some light on this error I get when starting tomcat. csjsp:/usr/local/tomcat/bin# ./startup.sh Using classpath: .:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:/usr/local/ tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/webs erver.jar:/usr/local/tomcat/lib/xml.jar csjsp:/usr/local/tomcat/bin# Context log: path="/examples" Adding context path="/examples" docBase="webapps/examples" Context log: path="" Adding context path="" docBase="webapps/ROOT" Context log: path="/test" Adding context path="/test" docBase="webapps/test" Starting tomcat. Check logs/tomcat.log for error messages Starting tomcat install="/usr/local/tomcat" home="/usr/local/tomcat" classPath="/usr/share/java/repository:.:/usr/local/tomcat/lib/ant.jar:/usr/l ocal/tomcat/lib/jasper.jar:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomc at/lib/test:/usr/local/tomcat/lib/webserver.jar:/usr/local/tomcat/lib/xml.ja r" Context log: path="/admin" Automatic context load docBase="/usr/local/tomcat/webapps/admin" Context log: path="/admin" Adding context path="/admin" docBase="/usr/local/tomcat/webapps/admin" FATAL:java.net.BindException: Address already in use java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397) at java.net.ServerSocket.init(ServerSocket.java:170) at java.net.ServerSocket.init(ServerSocket.java:121) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS ocketFactory.java:97) at org.apache.tomcat.service.SimpleTcpEndpoint.startEndpoint(SimpleTcpEndpoint. java:186) at org.apache.tomcat.service.SimpleTcpConnector.start(SimpleTcpConnector.java:1 42) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:253) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:157) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163) Andrew Burrows National IT Manager Flexstor.net Australia 5 Roundhay Court Berwick VIC 3806 Mobile: 0402300400 Phone: 613 97073008 Fax: 613 99236069 E-mail: [EMAIL PROTECTED] cc E-mail: [EMAIL PROTECTED] www.flexstornet.com.au - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/
Re: bind problem
Which port are we talking about here? If you haven't changed server.xml then it would be trying to listen on ports 8080 and 8007. It looks here like you have a java process of some kind listening on port 8080 (PID 258). If this is the state that the system is in before you try to start tomcat and you haven't modified server.xml then you should expect to see the exception that you saw. Try using the ps command to find out more about the 258 process. If this is a fresh install then it's very likely an instance of Tomcat that didn't get shutdown properly. Cheers Ritchie - Original Message - From: "Andrew Burrows" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 04, 2001 11:53 AM Subject: Re: bind problem Hi Ritchie, I ran that but it hasn't listed anything on that port. csjsp:/etc/apache# netstat -nlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp0 0 0.0.0.0:80 0.0.0.0:* LISTEN 25856/apache tcp0 0 0.0.0.0:80800.0.0.0:* LISTEN 258/java tcp0 0 0.0.0.0:21 0.0.0.0:* LISTEN 224/proftpd (accept tcp0 0 0.0.0.0:22 0.0.0.0:* LISTEN 216/sshd tcp0 0 0.0.0.0:33060.0.0.0:* LISTEN 181/mysqld raw0 0 0.0.0.0:1 0.0.0.0:* 7 - raw0 0 0.0.0.0:6 0.0.0.0:* 7 - Active UNIX domain sockets (only servers) Proto RefCnt Flags Type State I-Node PID/Program name Path unix 0 [ ACC ] STREAM LISTENING 127181/mysqld /var/run/mysqld/mysqld.sock unix 0 [ ACC ] STREAM L Andrew Burrows National IT Manager Flexstor.net Australia 5 Roundhay Court Berwick VIC 3806 Mobile: 0402300400 Phone: 613 97073008 Fax: 613 99236069 E-mail: [EMAIL PROTECTED] cc E-mail: [EMAIL PROTECTED] www.flexstornet.com.au From: "Ritchie Young" [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Thu, 4 Jan 2001 11:34:54 +0800 To: [EMAIL PROTECTED] Subject: Re: bind problem Use netstat -nlp to find the process id that is listening on that port. Cheers Ritchie - Original Message - From: "Andrew Burrows" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 04, 2001 11:23 AM Subject: Re: bind problem Hi David, Could you tell me how to find what process is using this port. Andrew Ps It is install on a linux box. From: "David M. Holmes" [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Wed, 3 Jan 2001 20:34:57 -0800 To: [EMAIL PROTECTED] Subject: Re: bind problem The address port that Tomcat is trying to listen on is already in use... --- Andrew Burrows [EMAIL PROTECTED] wrote: Hi All Could anyone shed some light on this error I get when starting tomcat. csjsp:/usr/local/tomcat/bin# ./startup.sh Using classpath: .:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:/usr/local/ tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/webs erver.jar:/usr/local/tomcat/lib/xml.jar csjsp:/usr/local/tomcat/bin# Context log: path="/examples" Adding context path="/examples" docBase="webapps/examples" Context log: path="" Adding context path="" docBase="webapps/ROOT" Context log: path="/test" Adding context path="/test" docBase="webapps/test" Starting tomcat. Check logs/tomcat.log for error messages Starting tomcat install="/usr/local/tomcat" home="/usr/local/tomcat" classPath="/usr/share/java/repository:.:/usr/local/tomcat/lib/ant.jar:/usr/l ocal/tomcat/lib/jasper.jar:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomc at/lib/test:/usr/local/tomcat/lib/webserver.jar:/usr/local/tomcat/lib/xml.ja r" Context log: path="/admin" Automatic context load docBase="/usr/local/tomcat/webapps/admin" Context log: path="/admin" Adding context path="/admin" docBase="/usr/local/tomcat/webapps/admin" FATAL:java.net.BindException: Address already in use java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397) at java.net.ServerSocket.init(ServerSocket.java:170) at java.net.ServerSocket.init(ServerSocket.java:121) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS ocketFactory.java:97) at org.apache.tomcat.service.SimpleTcpEndpoint.startEndpoint(SimpleTcpEndpoint. java:186) at org.apache.tomcat.service.SimpleTcpConnector.start(SimpleTcpConnector.java:1 42) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:253) at
Re: virtual domains config...
hi thanks Ingo, i got it done for the virtual domains. it says file not found for the other domain, i.e. when i type http://otherdomain.foo.com/examples/jsp/test.jsp but when i enter http://otherdomain.foo.com:8080/examples/jsp/test.jsp it shows me the file. How do i restrict the jsp's and servlets on port 8080 also. parvez And Then Ingo Luetkebohle wrote . On Wed, Jan 03, 2001 at 01:31:59PM +0530, Parvez wrote: how do i configure httpd.conf to integrate tomcat only for one of the virtual domains, i tried to include tomcat-apache.conf in that virtual domain. but does not work. has anyone tried it. Just put the mount directives into the virtualhost block and the rest outside. -- Ingo Luetkebohle / [EMAIL PROTECTED] / 95428014 / |SchemantiX Open Source contact; Computational Linguistics |student; Fargonauten.DE sysadmin; Gimp Registry maintainer; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
virtual host..
I have tried to setup virtual host with Tomcat but failed. JSP run on main.somewhere.com but None of the JSP run on the a.somewhere.com virtual host. here is my server.xml configuration: . !-- Virtual host example - In "127.0.0.1" virtual host we'll reverse "/" and "/examples" (XXX need a better example ) (use "http://127.0.0.1/examples" ) Host name="127.0.0.1" Context path="" docBase="webapps/examples" / Context path="/examples" docBase="webapps/ROOT" / /Host -- Host name="a.somewhere.com" Context path="" docBase="/home/somewhere/a" / /Host /ContextManager /Server Here is my httpd.conf. ... JkWorkersFile /home/apps/jakarta/jakarta-tomcat-3.2.1/conf/workers.properties JkLogFile /var/log/httpd/mod_jk.log JkLogLevel warn VirtualHost 10.2.1.60 ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/apps/apache-1.3.14/htdocs CustomLog /home/apps/apache-1.3.14/logs/somewhere.log combined Servername main.somewhere.com JkMount /servlet/* ajp13 JkMount /*.jsp ajp13 Alias /examples "/home/apps/jakarta/jakarta-tomcat-3.2.1/webapps/examples" Directory "/home/apps/jakarta/jakarta-tomcat-3.2.1/webapps/examples" Options Indexes FollowSymLinks /Directory Directory "/home/apps/jakarta/jakarta-tomcat-3.2.1/webapps/examples/WEB-INF/" AllowOverride None deny from all /Directory Directory "/home/apps/jakarta/jakarta-tomcat-3.2.1/webapps/examples/META-INF/" AllowOverride None deny from all /Directory /VirtualHost VirtualHost 10.2.1.60 ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/somewhere/a/htdocs CustomLog /home/apps/apache-1.3.14/logs/somewhere-a.log combined Servername a.somewhere.com JkMount /*.jsp ajp13 JkMount /myapp/* ajp13 Directory "/home/somewhere/a" Options Indexes FollowSymLinks /Directory Directory "/home/somewhere/a/WEB-INF" AllowOverride None deny from all /Directory Directory "/home/somewhere//META-INF" AllowOverride None deny from all /Directory /VirtualHost - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Tomcat: Installation problem
I'm trying to install Tomcat on my PC with Windows 98 (second edition). == My autoexex.bat: @C:\PROGRA~1\NORTON~1\NAVDX.EXE /Startup @ECHO OFF PATH=c:\windows;c:\windows\command;c:\ibmtools;c:\;C:\MSSQL7\BINN LH DOSKEY SET PATH=c:\jdk1.3\bin;c:\jdk1.3\lib;%PATH% SET CLASSPATH=.;c:\jdk1.3\bin;c:\jdk1.3\lib;c:\tomcat\bin;c:\tomcat\lib;c:\CoreJavaBook rem SET CLASSPATH=c:\CoreJavaBook;c:\jdk1.3\bin;c:\jdk1.3\lib;c:\tomcat\bin;c:\tomcat\lib SET TOMCAT_HOME=c:\tomcat SET JAVA_HOME=c:\jdk1.3 C:\essolo.com ** There is the outcome of my efforts: C:\tomcat\binstartup ENTER "Out of environment space Out of environment space Unable to set CLASSPATH dynamically. Note: To set the CLASSPATH dynamically on Win9x systems only DOS 8.3 names may be used in TOMCAT_HOME! Setting your CLASSPATH statically. Out of environment space Out of environment space Using CLASSPATH: ..\classes Out of environment space Starting Tomcat in new window Bad command or file name C:\tomcat\bin " ** C:\tomcat\doc\uguide\tomcat_ug.html - some basic information about Tomcat (an excerpt): "As you can see, the Win32 version of tomcat.bat is not as robust as the Unix one. Especially, it does not guess the values of JAVA_HOME and only tries "." as a guess for TOMCAT_HOME. It can build CLASSPATH dynamically, but not in all cases. It can not build CLASSPATH dynamically if TOMCAT_HOME contains spaces, or on Win9x, if TOMCAT_HOME contains non-8.3 directory names." = My friend has installed Tomcat on his PC with Windows'98 successfully using the same instructions as myself. However, I'm put in a spot by the above mentioned Note about TOMCAT_HOME and DOS 8.3 names... What's wrong with my autoexec.bat? There was a suggestion to set environmental space variable (ENVIRONMENTAL_SPACE ?) in the Windows'98 2nd edition. However, I do not know what is the correct syntax of that setting. Please advise me. Thanks, Vlad
About filtering or redirecting problem.
Hi all!! I'd like to know how to redirect the result of the php script to the Tomcat. Php module is compiled on Apache 1.3.12 , and I use Tomcat3.2.1 , jdk1.2.2 on linux. Is there a method to do that? Please help me~~
Software Download
The last time 30.04.2000 I downloaded Tomcat I got the following files (Windows version): ApacheModuleJServ.dll isapi_redirect.dll jni_connect.dll nsapi_redirect.dll jakarta-ant.zip jakarta-tomcat.zip jakarta-tools.zip jakarta-watchdog.zip jni_connect_dll.zip nsapi_redirect_dll.zip This time I only could find the following on the various servers: ApacheModuleJServ.dll isapi_redirect.dll jni_connect.dll mod_jk.dll nsapi_redirect.dll jk_nt_service.exe Q: Is this all or are some missing. If so, where are the rest. And where is the doc? Hope you can help. Brgds John Pashley Information must be free --- Remember When ... Meg was the name of my girlfriend and gig was a job for the nights now they all mean different things and that really mega bytes --- Icarus Enterprises Ltd. Siriusstr. 10 CH-8044 Zürich Tel: +41-1-260 36 66 Fax: +41-1-260 36 65 Mobile: +41-79-400 36 66 Email: [EMAIL PROTECTED] Web: www.icarus.ch SITA: ZRHSUXS Compuserve: [EMAIL PROTECTED] Location: N 47.22.82 E 008.33.20 Altitude: 512m / 1680ft --- Information must be free --- Remember When ... Meg was the name of my girlfriend and gig was a job for the nights now they all mean different things and that really mega bytes --- Icarus Enterprises Ltd. Siriusstr. 10 CH-8044 Zürich Tel: +41-1-260 36 66 Fax: +41-1-260 36 65 Mobile: +41-79-400 36 66 Email: [EMAIL PROTECTED] Web: www.icarus.ch SITA: ZRHSUXS Compuserve: [EMAIL PROTECTED] Location: N 47.22.82 E 008.33.20 Altitude: 512m / 1680ft --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Newbie Q: How to get a Servlet workiing?
If you can go to the examples and run them in tomcat then just mirror the hello world program which is a servlet inthe webapps example directory. Use the examples as a reference - that why they are there. You needto adda context in you server.xml file. Look at the example context and copy it and change it for your webapp. and then create your ownwebapp. Like -- webapps\test\ -- just like webapps\examples -- also copy the web.xml file from example and delete everything referring to any of the examplesexcept the hello world. You can add all the directories that example has andutilize them as you mimic the examples. This is a Great way for a beginner to learn tomcat and servlets. I would learn servletsfirst and then go on to JSP. First things first. -- Pete -- - Original Message - From: Vivienne To: [EMAIL PROTECTED] Sent: Wednesday, January 03, 2001 9:47 AM Subject: Newbie Q: How to get a Servlet workiing? Hi, I recently got Tomcat 3.2.1 running (standalone) on my Redhat 6.1 machine. I got it installed in /usr/local/tomcat and has changed nothing. Supposed I got a servlet class, say abc.class then where should I put this file and what else do I need to do with Tomcat configuration to get it running? Thanks Bosco
AW: pls help-freebsd,mod_jk,apache,up all night and turning psycho!
hello, 1st step use the makefile i've attached to this mail. the one which comes with the tomcat distribution ist crap (sorry, 'bout that). it defines symboles as c compiler flags which wont work on freebsd. note: i'm talking about freebsd 4.0 2nd step - configuring the module to work with apache --- take a look at the mod_jk.conf file i've attached to this mail. you can copy the example section and use it for your own webapps. finally you have to add this to the apache.conf file... IfModule mod_jk.c Include [MyDestination]/mod_jk.conf /IfModule 3rd step - what happens during compilation --- first of all - all files will be compiled! but u'll get some warnings. don't bother about them, for me mod_jk works even with those warnings. if you are experienced in c programming, you might take a look at the source code to fix the warnings. 4th step - what distribution do i use -- i'm using the 3.3 distribution. this distribution doesn't generate the mod_jk.conf-auto. finally i'm using the linux-jdk1.2.2 + linux-jdk1.3.0 freebsd port. hope this helps bye daniel haischt -- p.s. btw - can you send me the url to the native freebsd 1.2.2 jdk? -Ursprüngliche Nachricht- Von: Dave Smith [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 20. Oktober 2000 01:20 An: [EMAIL PROTECTED] Betreff: Re: pls help-freebsd,mod_jk,apache,up all night and turning psycho! Phillip, Question, did you compile mod_jk.so using the supplied makefile? If so, you didn't get the whole thing compiled. The makefile doesn't work correctly. So that is the first shibboleth. Your config files look pretty good, which is why I ask. The mod_jk.so will appear to compile and even load, but it won't work. What does the output look like for the compile? Are all the supplied files compiling? Second, I suggest you try and get things working "out of the box", I.e., with the mod_jk.conf-auto. Once things work you can then modify, add virtual hosts, etc with more assurance. Good Luck (it can be made to work), Dave - Original Message - From: "Phillip C Rhodes" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 03, 2001 12:34 PM Subject: pls help-freebsd,mod_jk,apache,up all night and turning psycho! Well, getting past the point of frustration anyway. I read all the docs and have set Athis up on NT fine with virtual hosting and apache...and put JRun on 4 different OS's but can't get this install to work. I am running Apache 1.3.9 on 3.4-RELEASE FreeBSD Tomcat is 3.2.1. JDK is the native 1.2.2 for FreeBSD I built mod_jk.so from source. I start up tomcat. 7001 for http, 8001 for ajp12, and 9001 for ajp13. I can connect to the http port (7001) and jsp's run fine. However, if I invoke a jsp from apache, apache is not sending the request to tomcat. I know it is such a simple problem, but really, I been up all night and need some help before I go crazy:) I start up apache, no problems. It works. No errors in mod_jk.log. It creates the workers. No errors in servlet.log or jasper.log Here is some snippets of what I have done. If you see the error of my ways, please feel free to punish me however you see fit. Thanks! My apache file: LoadModulejk_module libexec/apache/mod_jk.so AddModule mod_jk.c # Configure mod_jk # JkWorkersFile /usr/local/jakarta-tomcat-3.2.1/conf/workers.properties JkLogFile /usr/local/etc/apache/mod_jk.log JkLogLevelerror VirtualHost 216.55.177.74 DocumentRoot /usr/local/www/rhoderunner ServerName www.rhoderunner.com JkMount /*.jsp ajp13rhoderunner JkMount /servlet/* ajp13rhoderunner /VirtualHost My worker.properties file: worker.list=ajp12rhoderunner,ajp13rhoderunner (left out ajp12rhoderunner worker...on port 8001) # # Defining a worker named ajp13 and of type ajp13 # Note that the name and the type do not have to match. # worker.ajp13rhoderunner.port=9001 worker.ajp13rhoderunner.host=localhost worker.ajp13rhoderunner.type=ajp13 # # Specifies the load balance factor when used with # a load balancing worker. # Note: # lbfactor must be 0 # Low lbfactor means less work done by the worker. worker.ajp13rhoderunner.lbfactor=1 My server.xml file: (of course I have an AJP12 connector on 8001) !--enable AJP13 support -- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/ Parameter name="port" value="9001"/ /Connector Host name="www.rhoderunner.com" Context path="/" docBase="/usr/local/www/rhoderunner" debug="0"/ /Host - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
Re: Tomcat: Installation problem
You must set the initial environment memory alotment to 2816 MB, When you Open a DOS window, click on properties, click on memory, set initial environment memory to 2816 - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 03, 2001 9:58 PM Subject: Tomcat: Installation problem I'm trying to install Tomcat on my PC with Windows 98 (second edition). == My autoexex.bat: @C:\PROGRA~1\NORTON~1\NAVDX.EXE /Startup @ECHO OFF PATH=c:\windows;c:\windows\command;c:\ibmtools;c:\;C:\MSSQL7\BINN LH DOSKEY SET PATH=c:\jdk1.3\bin;c:\jdk1.3\lib;%PATH% SET CLASSPATH=.;c:\jdk1.3\bin;c:\jdk1.3\lib;c:\tomcat\bin;c:\tomcat\lib;c:\CoreJavaBook rem SET CLASSPATH=c:\CoreJavaBook;c:\jdk1.3\bin;c:\jdk1.3\lib;c:\tomcat\bin;c:\tomcat\lib SET TOMCAT_HOME=c:\tomcat SET JAVA_HOME=c:\jdk1.3 C:\essolo.com ** There is the outcome of my efforts: C:\tomcat\binstartup ENTER "Out of environment space Out of environment space Unable to set CLASSPATH dynamically. Note: To set the CLASSPATH dynamically on Win9x systems only DOS 8.3 names may be used in TOMCAT_HOME! Setting your CLASSPATH statically. Out of environment space Out of environment space Using CLASSPATH: ..\classes Out of environment space Starting Tomcat in new window Bad command or file name C:\tomcat\bin " ** C:\tomcat\doc\uguide\tomcat_ug.html - some basic information about Tomcat (an excerpt): "As you can see, the Win32 version of tomcat.bat is not as robust as the Unix one. Especially, it does not guess the values of JAVA_HOME and only tries "." as a guess for TOMCAT_HOME. It can build CLASSPATH dynamically, but not in all cases. It can not build CLASSPATH dynamically if TOMCAT_HOME contains spaces, or on Win9x, if TOMCAT_HOME contains non-8.3 directory names." = My friend has installed Tomcat on his PC with Windows'98 successfully using the same instructions as myself. However, I'm put in a spot by the above mentioned Note about TOMCAT_HOME and DOS 8.3 names... What's wrong with my autoexec.bat? There was a suggestion to set environmental space variable (ENVIRONMENTAL_SPACE ?) in the Windows'98 2nd edition. However, I do not know what is the correct syntax of that setting. Please advise me. Thanks, Vlad
mod_jk problem ???
Hello all, Where can I, get the shared object of mod_jk. Its not available in the site. Some one please help me 2 find out. I'm running Debian GNU/Linux. I, also tried with the RPM's available. So, I, get the source and compiled. Still its giving me problem like the following, 2000-12-30 10:35:05 - ContextManager: Adding context Ctx( /examples ) 2000-12-30 10:35:05 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2000-12-30 10:35:05 - ContextManager: Adding context Ctx( /hello.jsp ) 2000-12-30 10:35:05 - ContextManager: Adding context Ctx( /myapp ) 2000-12-30 10:35:05 - ContextManager: Adding context Ctx( ) 2000-12-30 10:35:05 - ContextManager: Adding context Ctx( /test ) 2000-12-30 10:35:06 - Ctx( /examples ): XmlReader - init /examples webapps/examples 2000-12-30 10:35:06 - Ctx( /examples ): Reading /usr/local/jakarta-tomcat-3.2.1/webapps/examples/WEB-INF/web.xml 2000-12-30 10:35:07 - Ctx( /examples ): Add user tomcat tomcat tomcat 2000-12-30 10:35:07 - Ctx( /examples ): Add user role1 tomcat role1 2000-12-30 10:35:07 - Ctx( /examples ): Add user both tomcat tomcat,role1 2000-12-30 10:35:07 - Ctx( /examples ): Loading -2147483646 jsp 2000-12-30 10:35:10 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 HANDLER THREAD PROBLEM: java.net.SocketException: Invalid argumentcat-3.2.1/webapps/examples" /hello.jsp context##rces (including static) that# java.net.SocketException: Invalid argument at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:156) at java.net.Socket.setSoLinger(Socket.java:106) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:122) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:314) Thankx in advance Regards Nagappan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]