Re: a question about mod_jk.conf-auto
Nick Stoianov wrote: > Where does Tomcat gathers the information to create mod_jk.conf-auto? server.xml and the structure of your webapps directory - basically what contexts are created. You dont have to use the autogenerated file. Take a copy of it, change it as you like, and have your httpd.conf include point to the copy you've modified. Mind you that if you do this you then bear the responsibility of ensuring the config is valid - apachectl configtest is very nice here (o: cheers dim > > There is a line in mod_jk.conf-auto saying : > JkMount /examples/servlet/* ajp12 > > I tried changing web.xml , server.xml, etc. -> it always generates : > JkMount /examples/servlet/* ajp12 > > and I want to change it to: > JkMount /examples/servlets/* ajp12 > > The problem is that I already have servlets calling different servlets and > classes from /servlets (not from /servlet ) > > Please advice > > Nick
Re: FW: newbie: Starting Tomcat
You tried Jim's suggestion of removing the test.war as well as the test directory. Maybe some background might help you: When tomcat starts up, it looks in the directory %TOMCAT_HOME%\webapps and any directories or war files it finds it will attempt to create a context for. THat is what the following says: > > > 2001-06-12 04:16:19 - ContextManager: Adding context Ctx( /test ) So if you have removed the test.war and the test directory, and then restarted, you shouldn't see that error. Can you confirm for me that the command dir %TOMCAT_HOME%\webapps\test* doesn't find any files or directories? If that doesn't find anything, and you still get the above output from the startup, then something odd is happening and I think the best bet would be to delete the entire tomcat install and start from scratch. hope this helps cheesr dim
Re: JSP Examples Error 500
Hi, Have you set JAVA_HOME Environment variable pointing to jdk? HTH Moin "Baker, Gary" wrote: > Hi, > > I've installed tomcat binaries and I'm running it in standalone mode. The >servlets on the samples > page works but I get error 500 on the jsp examples. I've read the FAQ, searched >archives, etc, and I've > found many similar problems but very few answers. Any help would be greatly >appreciated! > > Thanks, Gary > > DETAILS : > > [/export/home/gmb/tomcat/jakarta-tomcat-3.2.2] % echo $JAVA_HOME > /usr/j2se > [/export/home/gmb/tomcat/jakarta-tomcat-3.2.2] % echo $CLASSPATH > CLASSPATH: Undefined variable. > [/export/home/gmb/tomcat/jakarta-tomcat-3.2.2] % ./bin/startup.sh > Guessing TOMCAT_HOME from tomcat.sh to ./bin/.. > Setting TOMCAT_HOME to ./bin/.. > Using classpath: >./bin/../lib/ant.jar:./bin/../lib/jasper.jar:./bin/../lib/jaxp.jar:./bin/../lib/parser.jar:./bin/../lib/servlet.jar:./bin/../lib/test:./bin/../lib/webserver.jar:/usr/j2se/lib/tools.jar > [/export/home/gmb/tomcat/jakarta-tomcat-3.2.2] % 2001-06-15 04:35:26 - >ContextManager: Adding context Ctx( /examples ) > 2001-06-15 04:35:26 - ContextManager: Adding context Ctx( /admin ) > Starting tomcat. Check logs/tomcat.log for error messages > 2001-06-15 04:35:26 - ContextManager: Adding context Ctx( ) > 2001-06-15 04:35:26 - ContextManager: Adding context Ctx( /test ) > 2001-06-15 04:35:27 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 > 2001-06-15 04:35:27 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 > > I GET THIS ERROR WHEN I ACCESS THE SAMPLES HOMEPAGE : > > [/export/home/gmb/tomcat/jakarta-tomcat-3.2.2] % 2001-06-15 04:35:38 - >ContextManager: SocketException reading request, ignored - java.net.SocketException: >Connection reset by peer > at java.net.PlainSocketImpl.socketAvailable(Native Method) > at java.net.PlainSocketImpl.available(PlainSocketImpl.java:451) > at java.net.SocketInputStream.available(SocketInputStream.java:137) > at >org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:217) > at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) > at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) > at java.lang.Thread.run(Thread.java:484) > > AND THEN I GET A MESSAGE LIKE THIS WHENEVER I ACCESS ANY OF THE JSP EXAMPLES > > 2001-06-15 04:36:39 - Ctx( /examples ): JasperException: R( /examples + >/jsp/colors/colrs.jsp + null) Cannot read file: /jsp/colors/colrs.jsp > 2001-06-15 04:36:39 - Ctx( /examples ): Exception in: R( /examples + >/jsp/colors/colrs.jsp + null) - java.lang.NoSuchMethodError > at >org.apache.tomcat.context.ExceptionHandler.doService(DefaultCMSetter.java:289) > at org.apache.tomcat.core.Handler.service(Handler.java:287) > at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) > at >org.apache.tomcat.core.ContextManager.handleError(ContextManager.java:1160) > at org.apache.tomcat.core.Handler.service(Handler.java:312) > 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:213) > at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) > at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) > at java.lang.Thread.run(Thread.java:484) > > [/export/home/gmb] % uname -a > SunOS pequod 5.7 Generic_106541-12 sun4u sparc SUNW,Ultra-2 > > [/export/home/gmb] % java -version > java version "1.3.0" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0) > Java HotSpot(TM) Client VM (build 1.3.0, mixed mode) > [/export/home/gmb] %
RE: Accessing a packaged file
On Tue, 24 Apr 2001, Milt Epstein wrote: > On Mon, 23 Apr 2001, Filip Hanik wrote: > > > > In this case, the class and the resource were packaged together: > > > that should mean you could use the same class-loader for both, no? > > > (Assuming, of course, the user didn't monkey around with your > > > classes,...) > > > > this may however not be guaranteed at all times. especially if you > > monkey:ed around with your classpath, hence it is safer to use the > > context class loader instead. that way you don't have to worry, > > better to play it safe, don't you agree? > > Once again, I ask, what is the difference between the > Class/ClassLoader getResource* methods and the ServletContext ones? > Thanks. > This didn't get answered in April, but it's worth an answer for the archives. The ServletContext.getResource() methods are used to access static resources from your web application. For example, if you want to read the web.xml file for your own app, the portable way to do this is: InputStream stream = getServletContext().getResourceAsStream("/WEB-INF/web.xml"); On the other hand, Class.getResource* (and therefore ClassLoader.getResource*) are used to load resource files from the class path for your web application (i.e. from unloaded files in /WEB-INF/classes or inside a JAR file in /WEB-INF/lib). Craig McClanahan
Re: Starting tomcat with existing network
<< window for tomcat does not remain open. I assume this means that tomcat does not keep running. >> I think there is an error in the script. Try this: if you are running tomcat4 - do: \bin\catalina start if tomcat3 - do: \bin\tomcat start Examine logs. Make sure ENV Variables are set - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 15, 2001 9:30 PM Subject: Starting tomcat with existing network I have a small LAN (2 Windows 98 machines connected via a hub). When I try to start Tomcat standalone using startup.bat, I get no error messages, but the DOS window for tomcat does not remain open. I assume this means that tomcat does not keep running. Could this be related to the fact that I already have a network running? If so, how can I start tomcat properly without disconnecting the machine from the network? Dom Pante [EMAIL PROTECTED]
Starting tomcat with existing network
I have a small LAN (2 Windows 98 machines connected via a hub). When I try to start Tomcat standalone using startup.bat, I get no error messages, but the DOS window for tomcat does not remain open. I assume this means that tomcat does not keep running. Could this be related to the fact that I already have a network running? If so, how can I start tomcat properly without disconnecting the machine from the network? Dom Pante [EMAIL PROTECTED]
Re: problem with mod_jk and Tomcat
On 1. Invoke servlet will go where you tell it to go. Examine URL-PATTERN under \conf\web.xml: invoker /servlet/* Hope this helps - Original Message - From: "Nick Stoianov" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 15, 2001 7:20 PM Subject: problem with mod_jk and Tomcat > Hi, > > I have the following problem. I was running Apache JServ and decided to > upgrade to Tomcat with mod_jk and Apache. The installation went well. The > sample servlets and JSPs work well. But now I'm having the following problems: > > 1. My old servlets that were working with Jserv don't work with Tomcat. I > tried to find the reason and I found out that to invoke the servlets you have > to go to http://localhost/servlet/the_name_of_the_servlet > Okbut my servlets have redirections to http://localhost/servlets (not > servlet) . I changed the JkMount in mod_jk.conf to mount /servlets for the > servlet files. But it still doesn't work. > My question is: how can I make tomcat to look for servlets in /servlets (not > in /servlet)? > > 2. When I try to run the /admin JSP page I get ERROR 500: > javax.servlet.ServletException: URL contains encoded special chars > > > I will really appreciate if someone helps me with these problems. > > Nick Stoianov
a question about mod_jk.conf-auto
hi , I have a question: Where does Tomcat gathers the information to create mod_jk.conf-auto? There is a line in mod_jk.conf-auto saying : JkMount /examples/servlet/* ajp12 I tried changing web.xml , server.xml, etc. -> it always generates : JkMount /examples/servlet/* ajp12 and I want to change it to: JkMount /examples/servlets/* ajp12 The problem is that I already have servlets calling different servlets and classes from /servlets (not from /servlet ) Please advice Nick
Tomcat and PWS under Win98
Hi. I've just finished configuring Tomcat to work with PWS following the How To guide and I'd like to make a suggestion, if it is ok. I lost several hours with an error due to a misunderstanding of step 8 in the configuration of the ISAPI Redirector. I think the way the procedure is written led me to believe that I should create a new key named "Filter DLLs" under HKEY_LOCAL_...\Parameters, inside which I created a string value named "jakarta" with the value set to the path of the isapi_redirect.dll. In fact, what has to be done is to create a new string value named "Filter DLLs" under HKEY_LOCAL_...\Parameters with the value set to the path of the isapi_redirect.dll. I think it would be best to rephrase this step in order to keep others from misunderstanding it like I did. Thank you. Best regards. Pedro Gaspar. ___ Visit http://www.visto.com/info, your free web-based communications center. Visto.com. Life on the Dot.
ISAPI not being called
I followed the instructions for how to setup tomcat with IIS. I use W2k and iis5 I cannot get the isapi filter to be called. the log file shows no GET statement looking for the jakarta/ isapi filter. the pages show but tomcat is not being used at all. I kept trying to send this email with screen shots but they were rejected by your mail server. Please let me know what I can do. thanks, Michael
problem with mod_jk and Tomcat
Hi, I have the following problem. I was running Apache JServ and decided to upgrade to Tomcat with mod_jk and Apache. The installation went well. The sample servlets and JSPs work well. But now I'm having the following problems: 1. My old servlets that were working with Jserv don't work with Tomcat. I tried to find the reason and I found out that to invoke the servlets you have to go to http://localhost/servlet/the_name_of_the_servlet Okbut my servlets have redirections to http://localhost/servlets (not servlet) . I changed the JkMount in mod_jk.conf to mount /servlets for the servlet files. But it still doesn't work. My question is: how can I make tomcat to look for servlets in /servlets (not in /servlet)? 2. When I try to run the /admin JSP page I get ERROR 500: javax.servlet.ServletException: URL contains encoded special chars I will really appreciate if someone helps me with these problems. Nick Stoianov
weird messages
Tim-- ([EMAIL PROTECTED]) I hope that WebDav doesn't mind if we learn something from you. If some of us is on the wrong track - please correct and point to the right direction. Thanks in advance for your constructive input.
RE: Automaticaly update the servlets
Tomcat contexts use a different class loader. Put the driver jar file into tomcat webapps\contextname\web-inf\lib directory and the classes will be found. -Original Message- From: Pablo Morillas [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 12, 2001 5:03 PM To: [EMAIL PROTECTED] Subject: Re: Automaticaly update the servlets Well. When I compile the servlet I haven't got problems with the java.sql package. I have problems when I try to run this into Tomcat. I am using Tomcat as a service in a Win2K box. I suspect that my problem is that the JVM that starts when the service start is using a wrong CLASSPATH. Could it be true? Thanks. == Pablo Morillas http://www.sortes.com [EMAIL PROTECTED] == - Original Message - From: "Luba Powell" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 12, 2001 11:29 PM Subject: Re: Automaticaly update the servlets > did you: > import java.sql.*; > > - Original Message - > From: "Pablo Morillas" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, June 12, 2001 5:23 PM > Subject: Re: Automaticaly update the servlets > > > > Ok, but my problem is that when I put in a servlet > > 'Class.forName("sun.jdbc.odbc.JdbcOdbcDriver")' I get the message > > NoClassDefFoundError. > > > > == > > Pablo Morillas > > http://www.sortes.com > > [EMAIL PROTECTED] > > == > > - Original Message - > > From: "Luba Powell" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Tuesday, June 12, 2001 11:21 PM > > Subject: Re: Automaticaly update the servlets > > > > > > > This jar is in my classpath yet becouse if I type in the DOS Console > "java > > > sun.jdbc.odbc.JdbcOdbcDriver" I get the message: "NoSuchMethodError: > main" > > > instead of "NoClassDefFoundError? > > > > > > This is correct. This class does not have main method. > > > > > > - Original Message - > > > From: "Pablo Morillas" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Tuesday, June 12, 2001 5:12 PM > > > Subject: Re: Automaticaly update the servlets > > > > > > > > > > Yes. Finally I have get the proper result. Mines servlets are > > > automatically > > > > updated. Thanks to all. > > > > > > > > But, in other side, when I've tried to use the jdbc.odbc driver I have > > get > > > > the message NoClassDefFoundError. I've resolved it setting another > line > > in > > > > the wrapper.properties file: > > > > wrapper.class_path=$(wrapper.java_home)\jre\lib\rt.jar > > > > > > > > This jar is in my classpath yet becouse if I type in the DOS Console > > "java > > > > sun.jdbc.odbc.JdbcOdbcDriver" I get the message: "NoSuchMethodError: > > main" > > > > instead of "NoClassDefFoundError". > > > > > > > > My question is: what classpath use jk_nt_service if no definition is > set > > > for > > > > it in the wrapper.properties file? > > > > > > > > Thanks to all that are bearing me. ;-) > > > > > > > > == > > > > Pablo Morillas > > > > http://www.sortes.com > > > > [EMAIL PROTECTED] > > > > == > > > > - Original Message - > > > > From: "Milt Epstein" <[EMAIL PROTECTED]> > > > > To: <[EMAIL PROTECTED]> > > > > Sent: Friday, June 08, 2001 6:41 PM > > > > Subject: Re: Automaticaly update the servlets > > > > > > > > > > > > > On Fri, 8 Jun 2001, Pablo Morillas wrote: > > > > > > > > > > > Thanks. I beleive that I'm seen the light. My problem is that my > > > > > > system class loader (in my server) is loading my classes instead > > > > > > Tomcat, ins't it? > > > > > > > > > > Well, I won't guarantee it 100%, but it very well could be the > > problem. > > > > > > > > > > >Could anyone give me an address where I can > find > > > > > > information about the way that Tomcat class loader runs? > > > > > > > > > > I don't have a specific source, but I believe there are > > > > > tutorials/articles about on the web -- do a search at > www.google.com. > > > > > I'm pretty sure there was a JDC Tech Tips about classloaders > (they're > > > > > all up on the JDC site), and other sites (e.g. javaworld) may have > > > > > stuff on it as well. You can also check the tomcat > > > > > documentation/source. > > > > > > > > > > > > > > > > How can I force to Tomcat Class loader to take my servlets? > > > > > > > > > > Simply change your classpath so that the relevant directories > > > > > (.../WEB-INF/classes, and probably .../WEB-INF/lib as well) are not > > > > > included. Do that, try again, and let us know whether it worked. > > > > > > > > > > > > > > > > - Original Message - > > > > > > From: "Randy Layman" <[EMAIL PROTECTED]> > > > > > > To: <[EMAIL PROTECTED]> > > > > > > Sent: Friday, June 08, 2001 4:25 PM > > > > > > Subject: RE: Automaticaly update the servlets > > > > > > > > > > > > > > > > > > > > > > > > > > The problem is that
Re: jvm.stder jvm.stdout
tomcat.sh start > logfile 2>&1 - Original Message - From: "Gary Rather" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 15, 2001 4:58 PM Subject: jvm.stder jvm.stdout > I am running tomcat on a solaris box. > Everything seems to be working correctly but I do not get a jvm.stderr or a > jvm.stdout file. > > Where do I find the documentation that covers this? > Or in other words how do I turn this on? > > Gary Rather > Sesame Technology > >
jvm.stder jvm.stdout
I am running tomcat on a solaris box. Everything seems to be working correctly but I do not get a jvm.stderr or a jvm.stdout file. Where do I find the documentation that covers this? Or in other words how do I turn this on? Gary Rather Sesame Technology
Re: mail return
At 01:38 PM 6/15/2001, you wrote: >Sometimes I get weird message: Sometimes I get weird message too. But I ignore them by telling self to shut up.
Re: IllegalAccessError when run from Tomcat
This is a good suggestion. However, I have been working with Jini for awhile where classes: inner and otherwise are being shipped, deserialized and loaded cross the world, but didn't run into this one. Although MarshalledObject wrapper protects classes from being misinterpreted in my case. We'll keep digging. - Original Message - From: "Robert Schweng" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 15, 2001 4:42 PM Subject: Re: IllegalAccessError when run from Tomcat > hi, > could it be, it is in reason that classes over the web are interpreted > as URIs. > many systems could cause trouble when > interpreting a dir path like com.class.class$innerclass > to com/class/class?innerclass in Linux > or on NT to com\class\class?innerclass > > > cheers > Robert > > > - Original Message - > From: <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, June 15, 2001 10:19 PM > Subject: Re: IllegalAccessError when run from Tomcat > > > > Good idea, I didn't realize System.getSecurityManager existed. It is > > returning null, so there is no SecurityManager established and that isn't > > my problem. Anyone have other ideas? I'm pretty sure this is legal, it > > works when not run under Tomcat, and it is 3'rd party code I'm running so > I > > don't want to pull out the inner class. This is happening in JTidy. > JTidy > > isn't used anywhere else in Tomcat is it (in one of the standard jars)? > Do > > I have some wierd conflict between different versions of classes with the > > same name? I searched, but didn't find anything like that. Thanks for > the > > ideas so far - I would love some other suggestions on what to try? > > > > >Put: > > >System.out.println(System.getSecurityManager()) into your program. > > >Let us know what it says. > > > > > >- Original Message - > > >From: <[EMAIL PROTECTED]> > > >To: <[EMAIL PROTECTED]> > > >Sent: Friday, June 15, 2001 11:20 AM > > >Subject: IllegalAccessError when run from Tomcat > > > > > > > > >> When running a servlet from within Tomcat I get the following > exception: > > >> > > >> java.lang.IllegalAccessError: try to access field > > >org.w3c.tidy.ParserImpl._parseHead from class > > >org.w3c.tidy.ParserImpl$ParseHTML > > >> at org.w3c.tidy.ParserImpl$ParseHTML.parse(ParserImpl.java) > > >> at org.w3c.tidy.ParserImpl.parseDocument(ParserImpl.java) > > >> at org.w3c.tidy.Tidy.parse(Tidy.java) > > >> at org.w3c.tidy.Tidy.parseDOM(Tidy.java) > > >> ... > > >> > > >> A method in the inner class $ParseHTML is trying to access a private > field > > >> _parseHead in the containing class, but that is legal as far as I know. > > >> When I move the body of this servlet to a stand alone application it > runs > > >> fine - no exceptions. Is there some strange JVM security manager here > that > > >> is different from running as a real application? Anyone have an idea > what > > >> is going on? > > >> > > > > >
Re: JSP Examples Error 500
Why are you pointing to Enterprise version of JDK: $JAVA_HOME /usr/j2se shouldn't it be /usr/jdk1.3? - Original Message - From: "Baker, Gary" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 15, 2001 4:33 PM Subject: JSP Examples Error 500 > > Hi, > > I've installed tomcat binaries and I'm running it in standalone mode. The servlets on the samples > page works but I get error 500 on the jsp examples. I've read the FAQ, searched archives, etc, and I've > found many similar problems but very few answers. Any help would be greatly appreciated! > > Thanks, Gary > > DETAILS : > > [/export/home/gmb/tomcat/jakarta-tomcat-3.2.2] % echo $JAVA_HOME > /usr/j2se > [/export/home/gmb/tomcat/jakarta-tomcat-3.2.2] % echo $CLASSPATH > CLASSPATH: Undefined variable. > [/export/home/gmb/tomcat/jakarta-tomcat-3.2.2] % ./bin/startup.sh > Guessing TOMCAT_HOME from tomcat.sh to ./bin/.. > Setting TOMCAT_HOME to ./bin/.. > Using classpath: ./bin/../lib/ant.jar:./bin/../lib/jasper.jar:./bin/../lib/jaxp.jar:./bin/../ lib/parser.jar:./bin/../lib/servlet.jar:./bin/../lib/test:./bin/../lib/webse rver.jar:/usr/j2se/lib/tools.jar > [/export/home/gmb/tomcat/jakarta-tomcat-3.2.2] % 2001-06-15 04:35:26 - ContextManager: Adding context Ctx( /examples ) > 2001-06-15 04:35:26 - ContextManager: Adding context Ctx( /admin ) > Starting tomcat. Check logs/tomcat.log for error messages > 2001-06-15 04:35:26 - ContextManager: Adding context Ctx( ) > 2001-06-15 04:35:26 - ContextManager: Adding context Ctx( /test ) > 2001-06-15 04:35:27 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 > 2001-06-15 04:35:27 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 > > I GET THIS ERROR WHEN I ACCESS THE SAMPLES HOMEPAGE : > > [/export/home/gmb/tomcat/jakarta-tomcat-3.2.2] % 2001-06-15 04:35:38 - ContextManager: SocketException reading request, ignored - java.net.SocketException: Connection reset by peer > at java.net.PlainSocketImpl.socketAvailable(Native Method) > at java.net.PlainSocketImpl.available(PlainSocketImpl.java:451) > at java.net.SocketInputStream.available(SocketInputStream.java:137) > at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:217) > at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) > at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) > at java.lang.Thread.run(Thread.java:484) > > AND THEN I GET A MESSAGE LIKE THIS WHENEVER I ACCESS ANY OF THE JSP EXAMPLES > > 2001-06-15 04:36:39 - Ctx( /examples ): JasperException: R( /examples + /jsp/colors/colrs.jsp + null) Cannot read file: /jsp/colors/colrs.jsp > 2001-06-15 04:36:39 - Ctx( /examples ): Exception in: R( /examples + /jsp/colors/colrs.jsp + null) - java.lang.NoSuchMethodError > at org.apache.tomcat.context.ExceptionHandler.doService(DefaultCMSetter.java:28 9) > at org.apache.tomcat.core.Handler.service(Handler.java:287) > at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) > at org.apache.tomcat.core.ContextManager.handleError(ContextManager.java:1160) > at org.apache.tomcat.core.Handler.service(Handler.java:312) > at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) > at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) > at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) > at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:213) > at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) > at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) > at java.lang.Thread.run(Thread.java:484) > > [/export/home/gmb] % uname -a > SunOS pequod 5.7 Generic_106541-12 sun4u sparc SUNW,Ultra-2 > > [/export/home/gmb] % java -version > java version "1.3.0" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0) > Java HotSpot(TM) Client VM (build 1.3.0, mixed mode) > [/export/home/gmb] % >
Re: IllegalAccessError when run from Tomcat
hi, could it be, it is in reason that classes over the web are interpreted as URIs. many systems could cause trouble when interpreting a dir path like com.class.class$innerclass to com/class/class?innerclass in Linux or on NT to com\class\class?innerclass cheers Robert - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 15, 2001 10:19 PM Subject: Re: IllegalAccessError when run from Tomcat > Good idea, I didn't realize System.getSecurityManager existed. It is > returning null, so there is no SecurityManager established and that isn't > my problem. Anyone have other ideas? I'm pretty sure this is legal, it > works when not run under Tomcat, and it is 3'rd party code I'm running so I > don't want to pull out the inner class. This is happening in JTidy. JTidy > isn't used anywhere else in Tomcat is it (in one of the standard jars)? Do > I have some wierd conflict between different versions of classes with the > same name? I searched, but didn't find anything like that. Thanks for the > ideas so far - I would love some other suggestions on what to try? > > >Put: > >System.out.println(System.getSecurityManager()) into your program. > >Let us know what it says. > > > >- Original Message - > >From: <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]> > >Sent: Friday, June 15, 2001 11:20 AM > >Subject: IllegalAccessError when run from Tomcat > > > > > >> When running a servlet from within Tomcat I get the following exception: > >> > >> java.lang.IllegalAccessError: try to access field > >org.w3c.tidy.ParserImpl._parseHead from class > >org.w3c.tidy.ParserImpl$ParseHTML > >> at org.w3c.tidy.ParserImpl$ParseHTML.parse(ParserImpl.java) > >> at org.w3c.tidy.ParserImpl.parseDocument(ParserImpl.java) > >> at org.w3c.tidy.Tidy.parse(Tidy.java) > >> at org.w3c.tidy.Tidy.parseDOM(Tidy.java) > >> ... > >> > >> A method in the inner class $ParseHTML is trying to access a private field > >> _parseHead in the containing class, but that is legal as far as I know. > >> When I move the body of this servlet to a stand alone application it runs > >> fine - no exceptions. Is there some strange JVM security manager here that > >> is different from running as a real application? Anyone have an idea what > >> is going on? > >> > >
mail return
Sometimes I get weird message: << The original message was received at Fri, 15 Jun 2001 13:35:56 -0700 (PDT) from localhost [127.0.0.1] >> Does anyone else receiving these?
JSP Examples Error 500
Hi, I've installed tomcat binaries and I'm running it in standalone mode. The servlets on the samples page works but I get error 500 on the jsp examples. I've read the FAQ, searched archives, etc, and I've found many similar problems but very few answers. Any help would be greatly appreciated! Thanks, Gary DETAILS : [/export/home/gmb/tomcat/jakarta-tomcat-3.2.2] % echo $JAVA_HOME /usr/j2se [/export/home/gmb/tomcat/jakarta-tomcat-3.2.2] % echo $CLASSPATH CLASSPATH: Undefined variable. [/export/home/gmb/tomcat/jakarta-tomcat-3.2.2] % ./bin/startup.sh Guessing TOMCAT_HOME from tomcat.sh to ./bin/.. Setting TOMCAT_HOME to ./bin/.. Using classpath: ./bin/../lib/ant.jar:./bin/../lib/jasper.jar:./bin/../lib/jaxp.jar:./bin/../lib/parser.jar:./bin/../lib/servlet.jar:./bin/../lib/test:./bin/../lib/webserver.jar:/usr/j2se/lib/tools.jar [/export/home/gmb/tomcat/jakarta-tomcat-3.2.2] % 2001-06-15 04:35:26 - ContextManager: Adding context Ctx( /examples ) 2001-06-15 04:35:26 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-06-15 04:35:26 - ContextManager: Adding context Ctx( ) 2001-06-15 04:35:26 - ContextManager: Adding context Ctx( /test ) 2001-06-15 04:35:27 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-06-15 04:35:27 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 I GET THIS ERROR WHEN I ACCESS THE SAMPLES HOMEPAGE : [/export/home/gmb/tomcat/jakarta-tomcat-3.2.2] % 2001-06-15 04:35:38 - ContextManager: SocketException reading request, ignored - java.net.SocketException: Connection reset by peer at java.net.PlainSocketImpl.socketAvailable(Native Method) at java.net.PlainSocketImpl.available(PlainSocketImpl.java:451) at java.net.SocketInputStream.available(SocketInputStream.java:137) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:217) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) AND THEN I GET A MESSAGE LIKE THIS WHENEVER I ACCESS ANY OF THE JSP EXAMPLES 2001-06-15 04:36:39 - Ctx( /examples ): JasperException: R( /examples + /jsp/colors/colrs.jsp + null) Cannot read file: /jsp/colors/colrs.jsp 2001-06-15 04:36:39 - Ctx( /examples ): Exception in: R( /examples + /jsp/colors/colrs.jsp + null) - java.lang.NoSuchMethodError at org.apache.tomcat.context.ExceptionHandler.doService(DefaultCMSetter.java:289) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.handleError(ContextManager.java:1160) at org.apache.tomcat.core.Handler.service(Handler.java:312) 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:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) [/export/home/gmb] % uname -a SunOS pequod 5.7 Generic_106541-12 sun4u sparc SUNW,Ultra-2 [/export/home/gmb] % java -version java version "1.3.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0) Java HotSpot(TM) Client VM (build 1.3.0, mixed mode) [/export/home/gmb] %
Re: IllegalAccessError when run from Tomcat
<> It seems that way. This is linkage error, meaning, it went thru compiler fine, but at run time the field definition changed. R/Luba - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 15, 2001 4:19 PM Subject: Re: IllegalAccessError when run from Tomcat > Good idea, I didn't realize System.getSecurityManager existed. It is > returning null, so there is no SecurityManager established and that isn't > my problem. Anyone have other ideas? I'm pretty sure this is legal, it > works when not run under Tomcat, and it is 3'rd party code I'm running so I > don't want to pull out the inner class. This is happening in JTidy. JTidy > isn't used anywhere else in Tomcat is it (in one of the standard jars)? Do > I have some wierd conflict between different versions of classes with the > same name? I searched, but didn't find anything like that. Thanks for the > ideas so far - I would love some other suggestions on what to try? > > >Put: > >System.out.println(System.getSecurityManager()) into your program. > >Let us know what it says. > > > >- Original Message - > >From: <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]> > >Sent: Friday, June 15, 2001 11:20 AM > >Subject: IllegalAccessError when run from Tomcat > > > > > >> When running a servlet from within Tomcat I get the following exception: > >> > >> java.lang.IllegalAccessError: try to access field > >org.w3c.tidy.ParserImpl._parseHead from class > >org.w3c.tidy.ParserImpl$ParseHTML > >> at org.w3c.tidy.ParserImpl$ParseHTML.parse(ParserImpl.java) > >> at org.w3c.tidy.ParserImpl.parseDocument(ParserImpl.java) > >> at org.w3c.tidy.Tidy.parse(Tidy.java) > >> at org.w3c.tidy.Tidy.parseDOM(Tidy.java) > >> ... > >> > >> A method in the inner class $ParseHTML is trying to access a private field > >> _parseHead in the containing class, but that is legal as far as I know. > >> When I move the body of this servlet to a stand alone application it runs > >> fine - no exceptions. Is there some strange JVM security manager here that > >> is different from running as a real application? Anyone have an idea what > >> is going on? > >> > >
Re: Default web.xml
I get this with both Tomcat 3.2.1 and 3.2.2. I'm using JDK 1.2.2. No error message appears. I just get the full text of the JSP file as if it were a text file (i.e. NO preprocessing at all) when I access /basic/login.tem Here are excerpts from the stderr.log (I've got Tomcat setup as a 2000 service on my development machine). The log shows two contexts: 1) /basic where no special JSP setup has been made, but the changes to the DEFAULT web.xml have been made. 2) /teacherapplication where the exact same tag in the default web.xml was also placed in the APPLICATION's web.xml. Log excerpt # 1) 2001-06-15 12:57:21 - ContextManager: SimpleMapper1: SM: extension map /basic/*.jsp Ct (jsp(org.apache.jasper.servlet.JspServlet/null) ) Log excerpt # 2) 2001-06-15 12:57:21 - ContextManager: SimpleMapper1: SM: extension map /teacherapplication/*.jsp Ct (jsp(org.apache.jasper.servlet.JspServlet/null) ) 2001-06-15 12:57:21 - ContextManager: SimpleMapper1: SM: extension map /teacherapplication/*.tem Ct (jsp(org.apache.jasper.servlet.JspServlet/null) ) The log seems to show that there isn't an extension mapping being created for all contexts - just the one where I explicitly told it to in the APPLICATION web.xml. That's why I'm wondering if Tomcat is *supposed* to create the extension mapping based on the default web.xml, or if it's only supposed to use the DEFAULT provided with Tomcat without changes (i.e. is this a bug or a feature). Thanks, Tim Shadel >>> "Luba Powell" <[EMAIL PROTECTED]> 06/15/01 02:06PM >>> What is the error message you are getting? - Original Message - From: "cathy moffatt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 15, 2001 4:09 PM Subject: RE: Default web.xml > After much difficulty I did manage to get Tomcat3.2.2 to run servlets & jsp, > but only with JDK1.3.1 not JDK1.3.0_02 > I suspect an incompatibility problem > > -Original Message- > From: Michael Wentzel [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 15, 2001 3:05 PM > To: '[EMAIL PROTECTED]' > Subject: RE: Default web.xml > > > What version of tomcat are you running? > > > --- > Michael Wentzel > Software Developer > Software As We Think - http://www.aswethink.com > >>> Timothy Shadel >>> I have a quick question about how the default web.xml found in the conf directory is supposed to act. The Tomcat User's guide says it acts as a default web.xml for all web applications. I tried to add the following to it: jsp *.jsp jsp *.tem because we wanted to logically separate our JSP files used as templates from those providing major content. However, accessing a valid JSP file that's been renamed with a .tem extension returns only the actual file contents instead of being translated as a JSP. The same tag works perfectly in an application's web.xml. Am I supposed to be able to modify the web.xml in the conf directory and have it affect all applications, or is it only supposed to work with the one that comes with Tomcat by default? Thanks, Tim Shadel
RE: Apache+Tomcat mod_jk 3.2.2 install problem
Hi, Well I guess you are not the only one having this problem. I had to turn back to Jserv module. It works fine. -Original Message- From: Edilmar Alves [mailto:[EMAIL PROTECTED]] Sent: Friday, June 15, 2001 4:37 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Apache+Tomcat mod_jk 3.2.2 install problem I installed Tomcat 3.2.2 with Linux RedHat k2.2.17-14cl, and http://localhost:8080/ works fine, all examples servlets/JSPs. Then, I tried to install the integration with Apache 1.3.14. This is the error: [root@email conf]# /etc/rc.d/init.d/httpd start Iniciando httpd: BUG IN DYNAMIC LINKER ld.so: dynamic-link.h: 57: elf_get_dynamic_ info: Assertion `! "bad dynamic tag"' failed! I tried with both libraries: mod_jk.so-eapi mod_jk.so-noeapi renaming it to mod_jk.so and putting it into libexec (a link to modules). PS: Apache works fine without Tomcat module.
Re: jsp
Cool question. JSP like a servlet has to have an entry. Luckily we don't have to worry about it since tomcat's JspC.java program not only dynamically creates the context but also loads the generated servlet. if (servletout != null) { servletout.write("\n\t\n\t\t"); servletout.write(thisServletName); servletout.write("\n\t\t"); servletout.write(thisServletName); servletout.write("\n\t\n"); } if (mappingout != null) { mappingout.write("\n\t\n\t\t"); mappingout.write(file); mappingout.write("\n\t\t"); mappingout.write(thisServletName); mappingout.write("\n\t\n"); } - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 15, 2001 3:48 PM Subject: jsp > I am not that familiar with jsp, but with servlets whenever you create a new > one you have to add it to the web.xml, stating the name, class and the url > identification. If this is not done for the servlet it doesn't work. However > for the jsp examples, all of the examples work without an explicit entry in > the web.xml stating all the necessary info similarly to the servlet. Can > anyone explain why this is. >
Re: IllegalAccessError when run from Tomcat
Good idea, I didn't realize System.getSecurityManager existed. It is returning null, so there is no SecurityManager established and that isn't my problem. Anyone have other ideas? I'm pretty sure this is legal, it works when not run under Tomcat, and it is 3'rd party code I'm running so I don't want to pull out the inner class. This is happening in JTidy. JTidy isn't used anywhere else in Tomcat is it (in one of the standard jars)? Do I have some wierd conflict between different versions of classes with the same name? I searched, but didn't find anything like that. Thanks for the ideas so far - I would love some other suggestions on what to try? >Put: >System.out.println(System.getSecurityManager()) into your program. >Let us know what it says. > >- Original Message - >From: <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Friday, June 15, 2001 11:20 AM >Subject: IllegalAccessError when run from Tomcat > > >> When running a servlet from within Tomcat I get the following exception: >> >> java.lang.IllegalAccessError: try to access field >org.w3c.tidy.ParserImpl._parseHead from class >org.w3c.tidy.ParserImpl$ParseHTML >> at org.w3c.tidy.ParserImpl$ParseHTML.parse(ParserImpl.java) >> at org.w3c.tidy.ParserImpl.parseDocument(ParserImpl.java) >> at org.w3c.tidy.Tidy.parse(Tidy.java) >> at org.w3c.tidy.Tidy.parseDOM(Tidy.java) >> ... >> >> A method in the inner class $ParseHTML is trying to access a private field >> _parseHead in the containing class, but that is legal as far as I know. >> When I move the body of this servlet to a stand alone application it runs >> fine - no exceptions. Is there some strange JVM security manager here that >> is different from running as a real application? Anyone have an idea what >> is going on? >>
RE: RPM-always restart
I installed it from the RPM and it went fine. But when I exit linuxconf it always wants to restart it even if it already runs. WHY??? -Original Message- From: GOMEZ Henri [mailto:[EMAIL PROTECTED]] Sent: Friday, June 15, 2001 12:31 AM To: [EMAIL PROTECTED] Subject: RE: RPM >Thanks. But where can I find mod_jserv.so for Apache? http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.2/rpms/tomcat-m od-3.2.2-1.i386.rpm mod_jk/mod_jserv > >> Be up to date : >> >> use 3.2.2 :) >> >> http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.2/rpms/ >> >
Off Topic
Hi users, I know that's an off-topic email, but I wish everybody here a happy Father's day, for those who are father or for their fathers... regards. Lic. Martin O. Mauri Profesion + Auge A.F.J.P Parana 666 - Cap. Federal TE: (011) 4373-7786/7 int: 422 [EMAIL PROTECTED] www.profesi.com.ar
Re: (wrapper.tomcat_home)\classes directory
hi, they normaly exist and contain servlet classes wrapper.tomcat_home opints to a webapp's web-inf folder there can be a folder name classes which contains servlets. but there might be no classes directory (your webapp can only contain *.jsp and *.html files without servlets) hope this helps cheers hype - Original Message - From: Mitchell, Jason <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 15, 2001 9:00 PM Subject: (wrapper.tomcat_home)\classes directory > I'm trying to set up tomcat in windows nt using IIS as the web server and I > cant get it to start either as a service or using the setup.bat > > I noticed that the (wrapper.tomcat_home)\classes directory does not exist. > Should it? If so where would I get the .class files to populate it? > > jason >
Re: Default web.xml
What is the error message you are getting? - Original Message - From: "cathy moffatt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 15, 2001 4:09 PM Subject: RE: Default web.xml > After much difficulty I did manage to get Tomcat3.2.2 to run servlets & jsp, > but only with JDK1.3.1 not JDK1.3.0_02 > I suspect an incompatibility problem > > -Original Message- > From: Michael Wentzel [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 15, 2001 3:05 PM > To: '[EMAIL PROTECTED]' > Subject: RE: Default web.xml > > > What version of tomcat are you running? > > > --- > Michael Wentzel > Software Developer > Software As We Think - http://www.aswethink.com >
Re: root context
hi, i also had this problem. i really dont know why its loaded twice but my suggestion is to put the code in the service method of the servlet which is really called only 1 time per session. this is what i did. cheers hype - Original Message - From: Mike Erickson <[EMAIL PROTECTED]> To: Tomcat-User (E-mail) <[EMAIL PROTECTED]> Sent: Friday, June 15, 2001 9:49 PM Subject: root context > hi, I have a servlet that I want to map to the root context, I removed > ROOT.war and copied my war file (foo.war) to the webapps folder and > added the following to server.xml: > > docBase="webapps/foo" > crossContext="false" > debug="0" > reloadable="false" > > > > I can now access the servlet by hitting localhost/servlet/servletname > but I can also still access the server by hitting > localhost/foo/servlet/servletname, since the war is still in the webapps > folder, tomcat still automatically loads the context.. this is what I > expected, but I've noticed in servlet.log that the servlet init occurs > twice, once for the root context and once for the "foo" context, this is > not good.. so I thought that if I disable autoloading the foo context > would not init unless someone hit it (which is fine with me) so I set > to 0 within the web.xml file inside my war file, > restarted and I still see both context's running the init, even though I > expected to see none.. > > so is this the way to use the root context? and how can I not have 2 > instances of the servlet running? > have I missed any other tricks when using the root context? > > thanks > Mike Erickson > > > > >
RE: jsp
JSP container translates JSP to JAVA servlet code & calls Servlet container to process it Look in jakarta-tomcat-3.2.2\work\localhost_8080%2Fexamples You will find the servlet automatically created by the containers. Hope this helps Cathy Moffatt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, June 15, 2001 3:48 PM To: [EMAIL PROTECTED] Subject: jsp I am not that familiar with jsp, but with servlets whenever you create a new one you have to add it to the web.xml, stating the name, class and the url identification. If this is not done for the servlet it doesn't work. However for the jsp examples, all of the examples work without an explicit entry in the web.xml stating all the necessary info similarly to the servlet. Can anyone explain why this is.
RE: Default web.xml
After much difficulty I did manage to get Tomcat3.2.2 to run servlets & jsp, but only with JDK1.3.1 not JDK1.3.0_02 I suspect an incompatibility problem -Original Message- From: Michael Wentzel [mailto:[EMAIL PROTECTED]] Sent: Friday, June 15, 2001 3:05 PM To: '[EMAIL PROTECTED]' Subject: RE: Default web.xml What version of tomcat are you running? --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
root context
hi, I have a servlet that I want to map to the root context, I removed ROOT.war and copied my war file (foo.war) to the webapps folder and added the following to server.xml: I can now access the servlet by hitting localhost/servlet/servletname but I can also still access the server by hitting localhost/foo/servlet/servletname, since the war is still in the webapps folder, tomcat still automatically loads the context.. this is what I expected, but I've noticed in servlet.log that the servlet init occurs twice, once for the root context and once for the "foo" context, this is not good.. so I thought that if I disable autoloading the foo context would not init unless someone hit it (which is fine with me) so I set to 0 within the web.xml file inside my war file, restarted and I still see both context's running the init, even though I expected to see none.. so is this the way to use the root context? and how can I not have 2 instances of the servlet running? have I missed any other tricks when using the root context? thanks Mike Erickson
jsp
I am not that familiar with jsp, but with servlets whenever you create a new one you have to add it to the web.xml, stating the name, class and the url identification. If this is not done for the servlet it doesn't work. However for the jsp examples, all of the examples work without an explicit entry in the web.xml stating all the necessary info similarly to the servlet. Can anyone explain why this is.
RE: Default web.xml
What version of tomcat are you running? --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
Default web.xml
I have a quick question about how the default web.xml found in the conf directory is supposed to act. The Tomcat User's guide says it acts as a default web.xml for all web applications. I tried to add the following to it: jsp *.jsp jsp *.tem because we wanted to logically separate our JSP files used as templates from those providing major content. However, accessing a valid JSP file that's been renamed with a .tem extension returns only the actual file contents instead of being translated as a JSP. The same tag works perfectly in an application's web.xml. Am I supposed to be able to modify the web.xml in the conf directory and have it affect all applications, or is it only supposed to work with the one that comes with Tomcat by default? Thanks, Tim Shadel
(wrapper.tomcat_home)\classes directory
I'm trying to set up tomcat in windows nt using IIS as the web server and I cant get it to start either as a service or using the setup.bat I noticed that the (wrapper.tomcat_home)\classes directory does not exist. Should it? If so where would I get the .class files to populate it? jason
RE: executing the servlet
> if you wanna run servlet on context "examples" all the > servlet will run by default at "servlets" and if you > have a servlet named "HelloWorldExample" the url > should be > > http://localhost/examples/servlets/TestServlet > > > --- [EMAIL PROTECTED] wrote: > > What do I put in the url to execute a servlet on a > > localhost machine. I am > > using jakarta as standalone. > > Is it: http://localhost/servletpage ?please > help JMHO, but it seems blatently obvious that no personal research was done to find an answer to this question before posting to the maillist. I will say what I, and many others here, have said many, many times before... The order in which you should find solutions to problems is as follows(and this applies to anything, not just tomcat): 1. View documentation(local and online) 2. Search through list archives 3. If you still can't find a solution then and only then should you post to the list. I understand that starting out can be daunting but if you don't learn to pick this kind of stuff up yourself you will always be 'relying on the kindness of strangers'. Typically, you can find an answer for yourself much more quickly than waiting around for someone else to answer you anyways. This stuff, plus creating alternative mappings to servlets, is VERY well documented IMHO. OK, I've finished ranting on this matter. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com Undergraduate Student Georgia Institute of Technology, CoC mailto:[EMAIL PROTECTED]
Re: web.xml
leave it there. otherwise you would need to make an entry for your own app. just learn what they are doing first. - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 15, 2001 2:47 PM Subject: web.xml > Hi, in the directory ~webapps\examples\Web-inf directory I added this: > > > > helloworld > > > HelloWorldExample > > > > > helloworld > > > /helloworld > > > > to the web.xml directory. I am assuming that from this there has to be a java > class in the~/webapps/examples/Web-inf/classes directory called > HelloWorldExample. However when I call this with a browser do I have to call > it like this: > http://localhost/examples/helloworld -or- > http://localhost/examples/servlets/helloworld -or- > http://localhost/examples/HelloWorldExample > > Also does it matter where you put the servlet helloworld. Currently it's in > "C:\tomcat\webapps\examples\servlets\helloworld.html"
web.xml
Hi, in the directory ~webapps\examples\Web-inf directory I added this: helloworld HelloWorldExample helloworld /helloworld to the web.xml directory. I am assuming that from this there has to be a java class in the~/webapps/examples/Web-inf/classes directory called HelloWorldExample. However when I call this with a browser do I have to call it like this: http://localhost/examples/helloworld -or- http://localhost/examples/servlets/helloworld -or- http://localhost/examples/HelloWorldExample Also does it matter where you put the servlet helloworld. Currently it's in "C:\tomcat\webapps\examples\servlets\helloworld.html"
Re: executing the servlet
Look at tomcat example, dude: . http://localhost:8080/example/servlets/index.html - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 15, 2001 2:13 PM Subject: executing the servlet > What do I put in the url to execute a servlet on a localhost machine. I am > using jakarta as standalone. > Is it: http://localhost/servletpage ?please help >
Re: executing the servlet
if you wanna run servlet on context "examples" all the servlet will run by default at "servlets" and if you have a servlet named "HelloWorldExample" the url should be http://localhost/examples/servlets/TestServlet Hope that helps Francis --- [EMAIL PROTECTED] wrote: > What do I put in the url to execute a servlet on a > localhost machine. I am > using jakarta as standalone. > Is it: http://localhost/servletpage ?please help __ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/
TOMCAT 3.1 and IIS4 WITH NT4 SP6A
I've been running Tomcat 3.1 which comes bundled with Borland JBUILDER4 on my personal NT workstation using PWS. I am now trying the install Tomcat on and NT IIS server. I have verified all of the installation instructions in the Tomcat IIS HOWTO document and gone through the troubleshooting procedures of this document. When I launch the STARTUP.BAT file, it immediately shuts itself down. The isapi log shows the following: [jk_uri_worker_map.c (111)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [jk_uri_worker_map.c (144)]: Into jk_uri_worker_map_t::uri_worker_map_open [jk_uri_worker_map.c (158)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 3 [jk_uri_worker_map.c (214)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /servlet/=ajp12 was added [jk_uri_worker_map.c (214)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=ajp12 was added [jk_uri_worker_map.c (214)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /context/=worker_name was added [jk_uri_worker_map.c (243)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 3 rules [jk_uri_worker_map.c (264)]: jk_uri_worker_map_t::uri_worker_map_open, done [jk_worker.c (98)]: Into wc_open [jk_worker.c (217)]: Into build_worker_map, creating 1 workers [jk_worker.c (223)]: build_worker_map, creating worker ajp12 [jk_worker.c (154)]: Into wc_create_worker [jk_worker.c (168)]: wc_create_worker, about to create instance ajp12 of ajp12 [jk_ajp12_worker.c (264)]: Into ajp12_worker_factory [jk_worker.c (177)]: wc_create_worker, about to validate and init ajp12 [jk_ajp12_worker.c (182)]: Into jk_worker_t::validate [jk_ajp12_worker.c (194)]: In jk_worker_t::validate for worker ajp12 contact is localhost:8007 [jk_worker.c (187)]: wc_create_worker, done [jk_worker.c (233)]: build_worker_map, removing old ajp12 worker [jk_worker.c (245)]: build_worker_map, done [jk_worker.c (118)]: wc_open, done [jk_isapi_plugin.c (385)]: In HttpFilterProc test redirection of /examples/jsp/index.html [jk_uri_worker_map.c (286)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (338)]: jk_uri_worker_map_t::uri_worker_map_open, done with ajp12 [jk_isapi_plugin.c (395)]: In HttpFilterProc /examples/jsp/index.html should redirect to ajp12 [jk_worker.c (139)]: Into wc_get_worker_for_name ajp12 [jk_worker.c (143)]: wc_get_worker_for_name, done found a worker [jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service [jk_connect.c (107)]: Into jk_open_socket [jk_connect.c (114)]: jk_open_socket, try to connect socket = 1448 [jk_connect.c (123)]: jk_open_socket, after connect ret = -1 [jk_connect.c (142)]: jk_open_socket, connect() failed errno = 61 [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = -1 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 [jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done [jk_uri_worker_map.c (127)]: Into jk_uri_worker_map_t::uri_worker_map_free [jk_uri_worker_map.c (273)]: Into jk_uri_worker_map_t::uri_worker_map_close [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_worker.c (125)]: Into wc_close [jk_worker.c (127)]: wc_close, done Any ideas what might be causing this to happen? Thanks in advance for your response.
RE: tomcat security, JDBCRealm, SimpleRealm readable passwords
> Hi, > I've set up tomcat 3.3 and almost everything works fine. > I've set up a mySQL database 'authority' to authenticate against > in a simple test webapplication. And now I have the following question > and maybe someone can help me. > I don't like having passwords on my filesystem readable to people > who have fileaccess. If I'm using SimpleRealm I have users/passwords > in clear text in a file and thats not secure. If I use > JDBCRealm I can store encrypted passwords in the table, but I don't > know how tomcat can read them. So in the table I have to use > passwords that are not encrypted. > On the other hand if I let tomcat > connect to the database as user 'tomcat' for example with some > password anyone who will find out about the password will > be able to connect to the database and read all the authentication > information without a problem. > So my question is: > Is there anyway to use password encryption in tomcats > authentication mechanism? > I'd greatly appreciate any help, None of these methods really support credential encryption in their current state. But as you may well know;) Tomcat is open source, therefore if you take a look at org.apache.tomcat.request.JDBCRealm.java in the src tree and the method authenticate(String, String) you will see where users are authenticated. You could modify this class in any manner you see fit to authenticate against encrypted passwords in the database table. I was actually planning on doing this myself for our use but haven't gotten to it just yet. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
executing the servlet
What do I put in the url to execute a servlet on a localhost machine. I am using jakarta as standalone. Is it: http://localhost/servletpage ?please help
Need mod_jk.so for Solaris 7, apache 1.3.9, tomcat 3.2.1
HI there, I've read all the messages on the mailing list but can't seem to find any msg related to this configuration. Been trying for 3 days to compile the mod_jk.so using the command on mod_jk-howto.html from jakarta without any luck, after fine-tuning all the parameters inside apxs. Any help would be appreciated. Thanks. Will.
tomcat security, JDBCRealm, SimpleRealm readable passwords
Hi, I've set up tomcat 3.3 and almost everything works fine. I've set up a mySQL database 'authority' to authenticate against in a simple test webapplication. And now I have the following question and maybe someone can help me. I don't like having passwords on my filesystem readable to people who have fileaccess. If I'm using SimpleRealm I have users/passwords in clear text in a file and thats not secure. If I use JDBCRealm I can store encrypted passwords in the table, but I don't know how tomcat can read them. So in the table I have to use passwords that are not encrypted. On the other hand if I let tomcat connect to the database as user 'tomcat' for example with some password anyone who will find out about the password will be able to connect to the database and read all the authentication information without a problem. So my question is: Is there anyway to use password encryption in tomcats authentication mechanism? I'd greatly appreciate any help, Yours Dirk
RE: jre or jdk
If you don't need to run things like the Soap administrator, you don't need tools.jar -Original Message- From: Michael Jennings [mailto:[EMAIL PROTECTED]] Sent: Friday, June 15, 2001 1:32 PM To: [EMAIL PROTECTED] Subject: Re: jre or jdk Bonjour! The only thing tomcat needs out of the JDK is the tools.jar file. If you take a tools.jar file from a JDK and put it in your CLASSPATH, you can use a JRE to launch tomcat. The problem with the 8007 I don't know. I think by default tomcat listens on port 8080. The thing to do is make sure tomcat works on port 8080 then try to get it working with apache. Hope this helps! -Mike - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 15, 2001 10:18 AM Subject: jre or jdk I use a apache1.3.9, tomcat 3.2.2 and the mod_jserv.so module : I only want to run servlet not jsp! Should I get JDK or only jre? Just because the URL http://localhost:8007 give me : HANDLER THREAD PROBLEM: java.io.IOException: Stream broken java.io.IOException: Stream broken at org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Ajp1 2ConnectionHandler.java, Compiled Code) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) Is the http://localhost:8007 a JSP Thanks __ Voila vous propose une boite aux lettres gratuite sur Voila Mail: http://mail.voila.fr
Re: I need help!!
I understand that these are 2 different products. Technically speaking - they don't have to keep them in sync. I've been desperate more than once... - Original Message - From: "Marc-andre Thibodeau" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 15, 2001 12:32 PM Subject: Re: I need help!! > > I LOVE YOU!!! > > It was because of the servlet.jar! I just deleted it and now it works!!! > But could somebody tell me what is the point of putting a tomcat version with > an incompatible version of the servlet api in the same download directory??? > grrr... > > Well, I feel better now! > > Thanks a lot! > > MA > > Luba Powell wrote: > > > Could it be that those packages have incompatible classes: > > jakarta-tomcat-4.0-b5.zip & jakarta-servletapi-4.0-b5.zip > > > > Why do you need jakarta-servletapi? tomcat supports servlets. > > > > - Original Message - > > From: "Marc-andre Thibodeau" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Friday, June 15, 2001 10:54 AM > > Subject: I need help!! > > > > > > > > I spent too many hours trying to solve my problem. The next step will > > > be a psychotherapist! > > > > > > Here is all I did: > > > > > > Trying to install: Tomcat 4.0 b5 > > > JDK: 1.3.0 > > > OS: Linux 6.1 > > > downloaded: jakarta-tomcat-4.0-b5.zip & jakarta-servletapi-4.0-b5.zip > > > > > > unzipped both of them > > > set CATALINA_HOME correctly > > > set JAVA_HOME correctly > > > set TOMCAT_HOME to same directory as CATALINA_HOME > > > put servlet.jar file downloaded in $CATALINA_HOME/lib > > > executed $CATALINA_HOME/bin/startup.sh > > > > > > and here's the important parts of the logfiles I get: > > > > > > localhost_examples_log.2001-06-15.txt > > > - > > > 2001-06-15 10:30:12 StandardContext[/examples]: Exception starting > > > filter Compression Filter > > > java.lang.ClassCastException: compressionFilters.CompressionFilter > > > at > > > > > org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter > > Config.java:250) > > > > > > at > > > > > org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil > > terConfig.java:311) > > > > > > (... and other ClassCastExceptions, all related to filters) > > > > > > localhost_log_2001-06-15.txt > > > -- > > > 2001-06-15 10:49:34 StandardContext[]: Servlet threw load() exception > > > javax.servlet.ServletException: Class > > > org.apache.jasper.servlet.JspServlet is not a Servlet > > > at > > > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813) > > > > > > - Root Cause - > > > java.lang.ClassCastException: org.apache.jasper.servlet.JspServlet > > > at > > > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810) > > > > > > (... and other ServletExceptions) > > > > > > If anybody can help, I would appreciate it a lot! > > > > > > MA > > > >
Re: jre or jdk
Bonjour! The only thing tomcat needs out of the JDK is the tools.jar file. If you take a tools.jar file from a JDK and put it in your CLASSPATH, you can use a JRE to launch tomcat. The problem with the 8007 I don't know. I think by default tomcat listens on port 8080. The thing to do is make sure tomcat works on port 8080 then try to get it working with apache. Hope this helps! -Mike - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 15, 2001 10:18 AM Subject: jre or jdk I use a apache1.3.9, tomcat 3.2.2 and the mod_jserv.so module : I only want to run servlet not jsp! Should I get JDK or only jre? Just because the URL http://localhost:8007 give me : HANDLER THREAD PROBLEM: java.io.IOException: Stream broken java.io.IOException: Stream broken at org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Ajp1 2ConnectionHandler.java, Compiled Code) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) Is the http://localhost:8007 a JSP Thanks __ Voila vous propose une boite aux lettres gratuite sur Voila Mail: http://mail.voila.fr
Re: I need help!!
I LOVE YOU!!! It was because of the servlet.jar! I just deleted it and now it works!!! But could somebody tell me what is the point of putting a tomcat version with an incompatible version of the servlet api in the same download directory??? grrr... Well, I feel better now! Thanks a lot! MA Luba Powell wrote: > Could it be that those packages have incompatible classes: > jakarta-tomcat-4.0-b5.zip & jakarta-servletapi-4.0-b5.zip > > Why do you need jakarta-servletapi? tomcat supports servlets. > > - Original Message - > From: "Marc-andre Thibodeau" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, June 15, 2001 10:54 AM > Subject: I need help!! > > > > > I spent too many hours trying to solve my problem. The next step will > > be a psychotherapist! > > > > Here is all I did: > > > > Trying to install: Tomcat 4.0 b5 > > JDK: 1.3.0 > > OS: Linux 6.1 > > downloaded: jakarta-tomcat-4.0-b5.zip & jakarta-servletapi-4.0-b5.zip > > > > unzipped both of them > > set CATALINA_HOME correctly > > set JAVA_HOME correctly > > set TOMCAT_HOME to same directory as CATALINA_HOME > > put servlet.jar file downloaded in $CATALINA_HOME/lib > > executed $CATALINA_HOME/bin/startup.sh > > > > and here's the important parts of the logfiles I get: > > > > localhost_examples_log.2001-06-15.txt > > - > > 2001-06-15 10:30:12 StandardContext[/examples]: Exception starting > > filter Compression Filter > > java.lang.ClassCastException: compressionFilters.CompressionFilter > > at > > > org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter > Config.java:250) > > > > at > > > org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil > terConfig.java:311) > > > > (... and other ClassCastExceptions, all related to filters) > > > > localhost_log_2001-06-15.txt > > -- > > 2001-06-15 10:49:34 StandardContext[]: Servlet threw load() exception > > javax.servlet.ServletException: Class > > org.apache.jasper.servlet.JspServlet is not a Servlet > > at > > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813) > > > > - Root Cause - > > java.lang.ClassCastException: org.apache.jasper.servlet.JspServlet > > at > > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810) > > > > (... and other ServletExceptions) > > > > If anybody can help, I would appreciate it a lot! > > > > MA > >
jre or jdk
I use a apache1.3.9, tomcat 3.2.2 and the mod_jserv.so module : I only want to run servlet not jsp! Should I get JDK or only jre? Just because the URL http://localhost:8007 give me : HANDLER THREAD PROBLEM: java.io.IOException: Stream broken java.io.IOException: Stream broken at org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Ajp12ConnectionHandler.java, Compiled Code) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) Is the http://localhost:8007 a JSP Thanks __ Voila vous propose une boite aux lettres gratuite sur Voila Mail: http://mail.voila.fr
Re: Tomcat Book
There's an interesting pryect called Tomcat book, it will be the full guide of application development with Tomcat, just wait a couple of months :) > Hi all, > > Does anybody know if there is a book explaining Tomcat? Or a tutorial somewhere on the net? > thanks a lot > > > David DELGRANCHE > [EMAIL PROTECTED] > tel. 02.99 05.34.25 > Fax: 02.99.05.34.05 > Sogitec Industries > 24, Avenue Lavoisier > ZI du Champ Niguel > 35174 BRUZ CEDEX > >
Problem compiling apache 1.3.19
Hi there, I've downloaded Apache 1.3.19 and tried to run Configure in apache_1.3.19/src, but I got the following errors: Using config file: Configuration Creating Makefile + configured for Solaris 270 platform + setting C pre-processor to /lib/cpp + checking for system header files + adding selected modules + checking sizeof various data types + doing sanity check on compiler and options ** A test compilation with your Makefile configuration ** failed. The below error output from the compilation ** test will give you an idea what is failing. Note that ** Apache requires an ANSI C Compiler, such as gcc. Error Output for sanity check cd ..; /net/kronos/export/apps/kronos1/gcc.v2.95.2/bin/gcc -DSOLARIS2=270 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED -o helpers/dummy helpers/dummy.c -lsocket -lnsl gcc: installation problem, cannot exec `cpp': No such file or directory *** Error code 1 make: Fatal error: Command failed for target `dummy' = End of Error Report = Aborting! I am using Solaris 2.7, gcc is 2.95.2. Anything wrong with my gcc options? Libraries missing? Any help much appreciated. Thanks. -- Regards, William.
Server Side Includes using tags in an .shtml file
Hello, I would like to know if Tomcat supports the use of tags in an shtml file for server side includes? Here's my shtml file: timezone! Example of Server-Side Includes This an places the date and time for various time zones dynamically in this .shtml file. The current time in London is: The CurrentTime class file compiles just fine. I think, Tomcat is not parsing the .shtml file. If that's true, what can I do. I have added a new AddType and AddHandler in the tomcat.conf file: AddType text/x-server-parsed-html .shtml AddHandler server-parsed html Options +Includes But that didn't seem to fix the problem. Any suggestions. As always, thank you in advance for your help. Sincerely, [EMAIL PROTECTED]
Tomcat won't start with j2sdk 1.3.1 & Linux
Has anyone run Tomcat under linux with j2sdk 1.3.1-b24? I have been using Tomcat 3.2.1 (and now 3.2.2) happily for some time now with j2sdk 1.3 and linux (SuSE 7.1, kernel 2.4.5). I decided to get current with my Java VM, but when I try to start up Tomcat I get this error: /usr/local/tomcat/bin/tomcat.sh: line 180: 20646 Segmentation fault $JAVACMD $TOMCAT_OPTS -Dtomcat.home=${TOMCAT_HOME} org.apache.tomcat.startup.Tomcat "$@" The only difference is the new Java SDK. Other Java applications run successfully with the new SDK. I also have Tomcat 3.2.2/j2sdk 1.3.1-b24 running fine under Solaris 8. Any ideas? Thanks, Douglas Hornig Dartmouth-Hitchcock Medical Center
Re: Tomcat starting problem
dbs[160] startup.sh This an OS error, not tomcat. Unix admin should be able to help you - Original Message - From: yilmaz To: [EMAIL PROTECTED] Sent: Friday, June 15, 2001 11:58 AM Subject: Tomcat starting problem hi everyone at first it looks as it is a very basic question though not so.. i have installed tomcat nearly one month ago, on unix OS everything went fine, it was working smoothly. however, today when i tried to access the files i put in hte webapps directory previously , i couldn't. the server dosen't work anymore. the reason is that when the http server of our campus restarted, all the environment variables set by users have been cancelled, so i tried to set again according to the instructions on hte tomcat docs as follows: setenv TOMCAT_HOME /user/staff/wapteam/tomcat setenv JAVA_HOME /usr/java1.2/ setenv CLASSPATH user/staff/wapteam/tomcat/bin where tomcat is the directory that tomcat files reside when i try to start the server by : 'startup.sh ' command it gives the following error: dbs[160] startup.shUsing classpath: /user/staff/wapteam/tomcat=/lib/*:/user/staff/wapteam/tomcat/./tomcat.sh: usr/java1.2=/bin/java: not found what is wrong ? can someone help me , please? thanks in advance :) cheers
RE: Tomcat Book
Although not specifically devoted to Tomcat, the book "Java Servlet Programming, 2nd Edition" by Jason Hunter with William Crawford (O'Reilly, April 2001, ISBN 0-596-00040-5) uses Tomcat as the servlet engine for the servlet examples and has some useful documentation about configuring and using Tomcat. However, the documentation which accompanies Tomcat is the best source I know of. I have not yet looked at http://tomcatbook.sourceforge.net Barry -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Friday, June 15, 2001 9:10 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Tomcat Book there is currently one being written. it is still in the early stages http://tomcatbook.sourceforge.net also the online documentation is pretty good as well Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net >-Original Message- >From: David DELGRANCHE [mailto:[EMAIL PROTECTED]] >Sent: Friday, June 15, 2001 9:22 AM >To: '[EMAIL PROTECTED]' >Subject: Tomcat Book > > > Hi all, > > Does anybody know if there is a book explaining Tomcat? Or >a tutorial somewhere on the net? > thanks a lot > > >David DELGRANCHE >[EMAIL PROTECTED] >tel. 02.99 05.34.25 >Fax: 02.99.05.34.05 >Sogitec Industries >24, Avenue Lavoisier >ZI du Champ Niguel >35174 BRUZ CEDEX > > > >
RE: Tomcat starting problem
somehow, your environment variables are getting screwed up, there is an "=" sign to much in there try to edit startup.sh directly or tomcat.sh and do the command inside the shell script export JAVA_HOME=/usr/java1.2; and that should do the trick. Filip ~Namaste - I bow to the divine in you~Filip HanikSoftware Architect[EMAIL PROTECTED]www.filip.net -Original Message-From: yilmaz [mailto:[EMAIL PROTECTED]]Sent: Friday, June 15, 2001 8:58 AMTo: [EMAIL PROTECTED]Subject: Tomcat starting problem hi everyone at first it looks as it is a very basic question though not so.. i have installed tomcat nearly one month ago, on unix OS everything went fine, it was working smoothly. however, today when i tried to access the files i put in hte webapps directory previously , i couldn't. the server dosen't work anymore. the reason is that when the http server of our campus restarted, all the environment variables set by users have been cancelled, so i tried to set again according to the instructions on hte tomcat docs as follows: setenv TOMCAT_HOME /user/staff/wapteam/tomcat setenv JAVA_HOME /usr/java1.2/ setenv CLASSPATH user/staff/wapteam/tomcat/bin where tomcat is the directory that tomcat files reside when i try to start the server by : 'startup.sh ' command it gives the following error: dbs[160] startup.shUsing classpath: /user/staff/wapteam/tomcat=/lib/*:/user/staff/wapteam/tomcat/./tomcat.sh: usr/java1.2=/bin/java: not found what is wrong ? can someone help me , please? thanks in advance :) cheers
Tomcat starting problem
hi everyone at first it looks as it is a very basic question though not so.. i have installed tomcat nearly one month ago, on unix OS everything went fine, it was working smoothly. however, today when i tried to access the files i put in hte webapps directory previously , i couldn't. the server dosen't work anymore. the reason is that when the http server of our campus restarted, all the environment variables set by users have been cancelled, so i tried to set again according to the instructions on hte tomcat docs as follows: setenv TOMCAT_HOME /user/staff/wapteam/tomcat setenv JAVA_HOME /usr/java1.2/ setenv CLASSPATH user/staff/wapteam/tomcat/bin where tomcat is the directory that tomcat files reside when i try to start the server by : 'startup.sh ' command it gives the following error: dbs[160] startup.shUsing classpath: /user/staff/wapteam/tomcat=/lib/*:/user/staff/wapteam/tomcat/./tomcat.sh: usr/java1.2=/bin/java: not found what is wrong ? can someone help me , please? thanks in advance :) cheers
Re: I need help!!
Could it be that those packages have incompatible classes: jakarta-tomcat-4.0-b5.zip & jakarta-servletapi-4.0-b5.zip Why do you need jakarta-servletapi? tomcat supports servlets. - Original Message - From: "Marc-andre Thibodeau" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 15, 2001 10:54 AM Subject: I need help!! > > I spent too many hours trying to solve my problem. The next step will > be a psychotherapist! > > Here is all I did: > > Trying to install: Tomcat 4.0 b5 > JDK: 1.3.0 > OS: Linux 6.1 > downloaded: jakarta-tomcat-4.0-b5.zip & jakarta-servletapi-4.0-b5.zip > > unzipped both of them > set CATALINA_HOME correctly > set JAVA_HOME correctly > set TOMCAT_HOME to same directory as CATALINA_HOME > put servlet.jar file downloaded in $CATALINA_HOME/lib > executed $CATALINA_HOME/bin/startup.sh > > and here's the important parts of the logfiles I get: > > localhost_examples_log.2001-06-15.txt > - > 2001-06-15 10:30:12 StandardContext[/examples]: Exception starting > filter Compression Filter > java.lang.ClassCastException: compressionFilters.CompressionFilter > at > org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter Config.java:250) > > at > org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil terConfig.java:311) > > (... and other ClassCastExceptions, all related to filters) > > localhost_log_2001-06-15.txt > -- > 2001-06-15 10:49:34 StandardContext[]: Servlet threw load() exception > javax.servlet.ServletException: Class > org.apache.jasper.servlet.JspServlet is not a Servlet > at > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813) > > - Root Cause - > java.lang.ClassCastException: org.apache.jasper.servlet.JspServlet > at > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810) > > (... and other ServletExceptions) > > If anybody can help, I would appreciate it a lot! > > MA >
RE: Tomcat Book
there is currently one being written. it is still in the early stages http://tomcatbook.sourceforge.net also the online documentation is pretty good as well Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net >-Original Message- >From: David DELGRANCHE [mailto:[EMAIL PROTECTED]] >Sent: Friday, June 15, 2001 9:22 AM >To: '[EMAIL PROTECTED]' >Subject: Tomcat Book > > > Hi all, > > Does anybody know if there is a book explaining Tomcat? Or >a tutorial somewhere on the net? > thanks a lot > > >David DELGRANCHE >[EMAIL PROTECTED] >tel. 02.99 05.34.25 >Fax: 02.99.05.34.05 >Sogitec Industries >24, Avenue Lavoisier >ZI du Champ Niguel >35174 BRUZ CEDEX > > > >
I need help!!
I spent too many hours trying to solve my problem. The next step will be a psychotherapist! Here is all I did: Trying to install: Tomcat 4.0 b5 JDK: 1.3.0 OS: Linux 6.1 downloaded: jakarta-tomcat-4.0-b5.zip & jakarta-servletapi-4.0-b5.zip unzipped both of them set CATALINA_HOME correctly set JAVA_HOME correctly set TOMCAT_HOME to same directory as CATALINA_HOME put servlet.jar file downloaded in $CATALINA_HOME/lib executed $CATALINA_HOME/bin/startup.sh and here's the important parts of the logfiles I get: localhost_examples_log.2001-06-15.txt - 2001-06-15 10:30:12 StandardContext[/examples]: Exception starting filter Compression Filter java.lang.ClassCastException: compressionFilters.CompressionFilter at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:250) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:311) (... and other ClassCastExceptions, all related to filters) localhost_log_2001-06-15.txt -- 2001-06-15 10:49:34 StandardContext[]: Servlet threw load() exception javax.servlet.ServletException: Class org.apache.jasper.servlet.JspServlet is not a Servlet at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813) - Root Cause - java.lang.ClassCastException: org.apache.jasper.servlet.JspServlet at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810) (... and other ServletExceptions) If anybody can help, I would appreciate it a lot! MA
RE: Extra header data on browser IE
I have the exact same problem when using a tomcat-apache configuration. I have not been able to find a solution for that problem with response.sendRedirect(). I have resorted to using in my pages. I forget what method that translates to in Java, but I think someone posted something about it a few days ago. Brandon -Original Message- From: Yogesh Shah(JP) [mailto:[EMAIL PROTECTED]] Sent: Friday, June 15, 2001 10:35 AM To: [EMAIL PROTECTED] Subject: Extra header data on browser IE Hi All, I am using JDK1.3, IIS-4, Tomcat 3.1 and XSQL servlet(from oracle network for simplified sql-xml-xsl transformation) on win NT server 4. This servlet parses the xsql file and outputs html format. I have also configured the Tomcat-IIS through ISAPI-redirector (downloaded from jakarta.apache.org). Now I am using a redirector component in java (using servletContext) to redirect the browser from one xsql page to another. The component clears the ServletResponse Buffer and the redirects to required URL. // * Code snap ** HttpServletResponse res = request.getHttpServletResponse(); Folowing commands if(!res.isCommitted()) // Checks if the header contents are already written or not { res.reset(); // remove the buffer containts if header is not written }else { reportError(rootNode,"Already commited"); return; } try { res.sendRedirect(strRedirectURL);// redirect to required URL }catch (Exception lEx) { reportError(rootNode,lEx.getMessage()); } // * ***PROBLEM ** This works fine when I view pages which are got redirected from above component on tomcat- IE-5/Netscape 4.7(NS) when accesed tomcat direcly through 8080 port and also works fine when the same page is viewed in Netscape through IIS (through default port 80) . But I am getting the extra header data on browser (on top) in IE when view the same pages through IIS. This is the problem occuring only on IE - IIS - Tomcat configuration. The extra data contains header information and some HTML data also. *** does anybody haves any solution or any idea why is so happening. Please kindly reply if you have any soltion or suggetion. Thanks. Regards Yogesh Shah
Re: IllegalAccessError when run from Tomcat
i am not perfectly sure, but as far as i know are inner classes in beans not allowed!!. so i could imagine this is also a fact for servlets. but dont ask me why. anyway would it be worth to try cause its pretty simple to make the inner classe outer classes. cheers hype - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 15, 2001 5:20 PM Subject: IllegalAccessError when run from Tomcat > When running a servlet from within Tomcat I get the following exception: > > java.lang.IllegalAccessError: try to access field org.w3c.tidy.ParserImpl._parseHead from class org.w3c.tidy.ParserImpl$ParseHTML > at org.w3c.tidy.ParserImpl$ParseHTML.parse(ParserImpl.java) > at org.w3c.tidy.ParserImpl.parseDocument(ParserImpl.java) > at org.w3c.tidy.Tidy.parse(Tidy.java) > at org.w3c.tidy.Tidy.parseDOM(Tidy.java) > ... > > A method in the inner class $ParseHTML is trying to access a private field > _parseHead in the containing class, but that is legal as far as I know. > When I move the body of this servlet to a stand alone application it runs > fine - no exceptions. Is there some strange JVM security manager here that > is different from running as a real application? Anyone have an idea what > is going on? >
RE: FW: newbie: Starting Tomcat
Hello all. It's me again. Unfortunately, no further than when I first started trying to run Tomcat. I have tried every suggestion given me to no avail. I should also note that the two log files created when I attempt to start Tomcat [server.log and jasper.log] are both empty. And that there is no tomcat.log. The error messages are still the same as listed below. Feeling hopeless, LeRoi -Original Message- From: Jim Cheesman [mailto:[EMAIL PROTECTED]] Sent: 15 June 2001 12:17 To: [EMAIL PROTECTED] Subject: RE: FW: newbie: Starting Tomcat At 12:28 PM 15/06/01, you wrote: >Firstly, a big thanx for the help so far. I have felt so helpless for the >last couple of days just trying to get Tomcat working. > >Jean-Etienne: I have tried the suggestion of including "jnet.jar" in my >classpath, however, it appears that I don't even have that file in my >"Tomcat" or "Java" directories. > >Dimitri: I deleted the test directory and reran "tomcat run" with no >success. I get the same error message and the test directory is recreated. >I have located several "LocalSTrings_en.properties" files in the following >directories: > >E:\jakarta-tomcat-3.2.2\src\org\apache\tomcat\ resources >E:\jakarta-tomcat-3.2.2\\webapps\examples\WEB-INF\classes > >Should I move or copy this file somewhere else as well? You could try copying the files to the webapps\test\WEB-INF\classes directory and see if that helps - I'm guessing that the test directory is being recreated from the test.war file you have in the webapps directory - you could also try deleting test.war and the test directory. (And don't worry - I'm sure most of us went through the same thing setting tomcat up the first time: I certainly did ;) HTH, JimC >Cheers, >LeRoi > >-Original Message- >From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] >Sent: 15 June 2001 10:29 >To: [EMAIL PROTECTED] >Subject: Re: FW: newbie: Starting Tomcat > >The problem here is with the test context, not the server itself. Have you >possibly removed some files from the %TOMCAT_HOME%\webapps\test directory? >If not, try removing the entire webapps\test directory and restarting. > >What is happening is that when the test context is being initialized a >servlet is being loaded on startup that is looking for a resource bundle and >failing (for some reason). This bindle is from memory in the >test\WEB-INF\classes directory, and by the looks of the exception should be >a >file named "en_US" or something (I think there is a "LocalStrings_en" file >there???). > >hope this helps. > >cheesr >dim > >On Fri, 15 Jun 2001 19:11, you wrote: > > Hello, > > > > I'm new to java and was coming to grips with it until I got to the > > chapter on SERVLETS. I hope some one out there can help me and I > > would like to thank you in advance. > > > > I downloaded and installed Tomcat 3.2.2 under NT 4.0 (SP 6) without > > any problems. I also have JDK 1.3 on the machine. Following one > > posting on "Google" I added the line to the server.xml file: > > > className="org.apache.tomcat.request.Jdk12Interceptor" /> > > > > > > When trying to start Tomcat I get the following message: > > > > E:\jakarta-tomcat-3.2.2\bin>tomcat run > > Including all jars in E:\jakarta-tomcat-3.2.2\lib in your CLASSPATH. > > > > Using CLASSPATH: > > >E:\jakarta-tomcat-3.2.2\classes;E:\jakarta-tomcat-3.2.2\lib\ant.jar;E:\jaka > >r ta-tomc > > >at-3.2.2\lib\jasper.jar;E:\jakarta-tomcat-3.2.2\lib\jaxp.jar;E:\jakarta-tom > >c at-3.2.2\lib\parser.jar; > > >E:\jakarta-tomcat-3.2.2\lib\servlet.jar;E:\jakarta-tomcat-3.2.2\lib\webserv > >e r.jar > > > > 2001-06-12 04:16:19 - ContextManager: Adding context Ctx( /examples ) > > 2001-06-12 04:16:19 - ContextManager: Adding context Ctx( /admin ) > > Starting tomcat. Check logs/tomcat.log for error messages > > 2001-06-12 04:16:19 - ContextManager: Adding context Ctx( ) > > 2001-06-12 04:16:19 - ContextManager: Adding context Ctx( /test ) > > Exception in thread "main" java.lang.ExceptionInInitializerError: > > java.util.MissingResourceException > > > > : Can't find bundle for base name javax.servlet.http.LocalStrings, > > > > locale en_US > > at java.util.ResourceBundle.throwMissingResourceException(Unknown > > Source) > > at java.util.ResourceBundle.getBundleImpl(Unknown Source) > > at java.util.ResourceBundle.getBundle(Unknown Source) > > at javax.servlet.http.HttpServlet.(HttpServlet.java:144) > > at java.lang.Class.newInstance0(Native Method) > > at java.lang.Class.newInstance(Unknown Source) > > at > > org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:268) > > at > > org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289) > > at > > >org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartu > >p Interceptor.j > > ava:130) > > at > > org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491) > > at >
Re: IllegalAccessError when run from Tomcat
Put: System.out.println(System.getSecurityManager()) into your program. Let us know what it says. - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 15, 2001 11:20 AM Subject: IllegalAccessError when run from Tomcat > When running a servlet from within Tomcat I get the following exception: > > java.lang.IllegalAccessError: try to access field org.w3c.tidy.ParserImpl._parseHead from class org.w3c.tidy.ParserImpl$ParseHTML > at org.w3c.tidy.ParserImpl$ParseHTML.parse(ParserImpl.java) > at org.w3c.tidy.ParserImpl.parseDocument(ParserImpl.java) > at org.w3c.tidy.Tidy.parse(Tidy.java) > at org.w3c.tidy.Tidy.parseDOM(Tidy.java) > ... > > A method in the inner class $ParseHTML is trying to access a private field > _parseHead in the containing class, but that is legal as far as I know. > When I move the body of this servlet to a stand alone application it runs > fine - no exceptions. Is there some strange JVM security manager here that > is different from running as a real application? Anyone have an idea what > is going on? >
Extra header data on browser IE
Hi All, I am using JDK1.3, IIS-4, Tomcat 3.1 and XSQL servlet(from oracle network for simplified sql-xml-xsl transformation) on win NT server 4. This servlet parses the xsql file and outputs html format. I have also configured the Tomcat-IIS through ISAPI-redirector (downloaded from jakarta.apache.org). Now I am using a redirector component in java (using servletContext) to redirect the browser from one xsql page to another. The component clears the ServletResponse Buffer and the redirects to required URL. // * Code snap ** HttpServletResponse res = request.getHttpServletResponse(); Folowing commands if(!res.isCommitted()) // Checks if the header contents are already written or not { res.reset(); // remove the buffer containts if header is not written }else { reportError(rootNode,"Already commited"); return; } try { res.sendRedirect(strRedirectURL);// redirect to required URL }catch (Exception lEx) { reportError(rootNode,lEx.getMessage()); } // * ***PROBLEM ** This works fine when I view pages which are got redirected from above component on tomcat- IE-5/Netscape 4.7(NS) when accesed tomcat direcly through 8080 port and also works fine when the same page is viewed in Netscape through IIS (through default port 80) . But I am getting the extra header data on browser (on top) in IE when view the same pages through IIS. This is the problem occuring only on IE - IIS - Tomcat configuration. The extra data contains header information and some HTML data also. *** does anybody haves any solution or any idea why is so happening. Please kindly reply if you have any soltion or suggetion. Thanks. Regards Yogesh Shah
Extra header data displayed on browserIE
Hi All, I am using JDK1.3, IIS-4, Tomcat 3.1 and XSQL servlet(from oracle network for simplified sql-xml-xsl transformation) on win NT server 4. This servlet parses the xsql file and outputs html format. I have also configured the Tomcat-IIS through ISAPI-redirector (downloaded from jakarta.apache.org). Now I am using a redirector component in java (using servletContext) to redirect the browser from one xsql page to another. The component clears the ServletResponse Buffer and the redirects to required URL. // * Code snap ** HttpServletResponse res = request.getHttpServletResponse(); Folowing commands if(!res.isCommitted()) // Checks if the header contents are already written or not { res.reset(); // remove the buffer containts if header is not written }else { reportError(rootNode,"Already commited"); return; } try { res.sendRedirect(strRedirectURL); // redirect to required URL }catch (Exception lEx) { reportError(rootNode,lEx.getMessage()); } // * ***PROBLEM ** This works fine when I view pages which are got redirected from above component on tomcat- IE-5/Netscape 4.7(NS) when accesed tomcat direcly through 8080 port and also works fine when the same page is viewed in Netscape through IIS (through default port 80) . But I am getting the extra header data on browser (on top) in IE when view the same pages through IIS. This is the problem occuring only on IE - IIS - Tomcat configuration. The extra data may contains header information and some HTML data also. *** does anybody haves any solution or any idea why is so happening. Please kindly reply if you have any soltion or suggetion. Thanks. Regards Yogesh Shah
Re: Tomcat IIS serves one request (or hell with the dll) then it gets unloaded!
Hi, does anyone else have the problem with iis redirect??? i made some really wierd experiance with isapi redirect. i got it to work on my server NT4 sp5 but if some one requestet an JAVA Applet from IIS it stopped to work. i installed several versions of ISAPI redirect. in all versions green arrows in IIS where up and Tomcat where working fine. the latest version works only for one request, after that nothing more is redirected by isapi_redirect. i traced everything i could but without a solution since there is no output. when i recomiled a debug version of isapi_redirect.dll on my workstaion there i could see this errormessage (it says an unexpected exception occured in Kerner32.dll): Der HTTP-Server ist bei der Verarbeitung der ISAPI-Anwendung ' + 0x31313131 isapi_redirect + 0x10D80 isapi_redirect + 0x2A71 isapi_redirect + 0x1ABA isapi_redirect + 0x71A9 + 0x688971B1 + 0x68897E33 + 0x68C2063A + 0x68C1F911 + 0x68C10EDA + 0x68C10E4A + 0x68C177B1 + 0x68C0A20E + 0x68C09DF1 + 0x68C09D89 + 0x6862471E + 0x6862493B KERNEL32!lstrcmpiW + 0xBE ' auf eine unerwartete Ausnahme gestoßen. So my question is does someone know how to replace the kernel32.dll with the current (which is be used by the system?). i mean without using a registered version of ntfsdos? or does someone think if i install the MS Visual Studio on the server it will solve the problem? (cause i can compile the dll there?) cheers Robert
Tomcat Book
Hi all, Does anybody know if there is a book explaining Tomcat? Or a tutorial somewhere on the net? thanks a lot David DELGRANCHE [EMAIL PROTECTED] tel. 02.99 05.34.25 Fax: 02.99.05.34.05 Sogitec Industries 24, Avenue Lavoisier ZI du Champ Niguel 35174 BRUZ CEDEX
RE: tomcat work with mozilla but not with IE
I try it with http://127.0.0.1:8080/index.html and it works ;-) Thank you all *** REPLY SEPARATOR *** On 15.06.2001 at 09:17 Michael Wentzel wrote: >I had installed Tomcat as a stand-alone servlet container! >I can start tomcat with the startup- script! >When I try to access http://localhost:8080/index.html >the Internet Explorer can't locate the site! >With the mozilla- Browser all looks pretty fine!!! > >=== > >If your machine has a network IP address you may try using that( i.e. >http://10.0.0.5:8080/ ) or otherwise try the loopback device >http://127.0.0.1:8080 to verify it is a IE network config issue. > > > >--- >Michael Wentzel >Software Developer >Software As We Think - http://www.aswethink.com
AW: Compile mod_jk fails: tomcat 3.2.1 + apache 1.3.9
its not a broken, its just the wrong one :) and when compiling apache the apxs guesses the compiler, so if apache finds cc from "Worshop Compilers 4.2" it will try to compile it with that compiler not with gcc (which usually should be in /opt/sfw/bin). regards, tom > -Ursprungliche Nachricht- > Von: John P. Dodge [mailto:[EMAIL PROTECTED]] > Gesendet: Freitag, 15. Juni 2001 16:36 > An: [EMAIL PROTECTED] > Betreff: Re: Compile mod_jk fails: tomcat 3.2.1 + apache 1.3.9 > > > You are using the broken Sun C compiler. Use GNU gcc from > http://sunfreeware.com. > > > On Thu, 14 Jun 2001, William Ho wrote: > > > Hi there, > > > > My configuration is as follows: > > Tomcat 3.2.1 > > Apache 1.3.9 > > Solaris 7 > > J2SE 1.3.0_02 (not used in this compilation) > > > > I'm trying to compile mod_jk on Solaris 2.7. Here's what I did: > > > > (1) cd to .../jakarta-tomcat-3.2.1-src/src/native/apache1.3 > > (2) make sure apxs aliased to the correct file, in this case is > > .../apache/bin/apxs > > (3) since the apxs script uses cc, I checked the cc version. It > is "Workshop > > Compilers 4.2" > > (4) from the webpage > > > http://jakarta.apache.org/tomcat/tomcat-3.2-doc/mod_jk-howto.html, > I use the > > following command to compile, using my own java 1.3 (j2se > downloaded from sun): > > > > apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/j2se/include > > -I/usr/j2se/include/solaris -c *.c ../jk/*.c > > > > Warnings and Errors: > > > > cc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE > > -I/kitimat1/apache/include -I../jk -I/usr/j2se/include > > -I/usr/j2se/include/solaris -DSOLARIS -c > > ../jk/jk_jni_worker.c"../jk/jk_jni_worker.c", line 731: > warning: assignment type > > mismatch: > > > pointer to function(pointer to pointer to pointer to const struct > > JNIInvokeInterface_ {pointer to void reserved0, pointer to... > "=" pointer to > > void"../jk/jk_jni_worker.c", line 732: warning: assignment type > > mismatch: > > > pointer to function(pointer to void) returning long "=" pointer to void > > > > cc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE > > -I/kitimat1/apache/include -I../jk -I/usr/j2se/include > > -I/usr/j2se/include/solaris -DSOLARIS -c > > ../jk/jk_uri_worker_map.c"../jk/jk_uri_worker_map.c", line 349: warning: > > initializer does not fit or is out of range: -1 > > "../jk/jk_uri_worker_map.c", line 438: warning: newline not > last character in > > file > > > > cc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE > > -I/kitimat1/apache/include -I../jk -I/usr/j2se/include > > -I/usr/j2se/include/solaris -DSOLARIS -c > ../jk/jk_util.c"../jk/jk_util.c", line > > 211: missing operand"../jk/jk_util.c", line 223: missing > operand cc: acomp > > failed for ../jk/jk_util.c apxs:Break: Command failed with rc=131072 > > > > Do you have any ideas on this? Thanks a lot. > > Also, do you know if anybody has uses the same apache, tomcat > and solaris > > versions and can make it work? Any help will be very much appreciated. > > > > = > > Best regards, > > Will. > > Declaration: My postings are not related to my employer in any sense. > > = > > > > > "Mon aeroglisseur est plein d'anguilles" > John P. Dodge > Boeing Shared Services >
IllegalAccessError when run from Tomcat
When running a servlet from within Tomcat I get the following exception: java.lang.IllegalAccessError: try to access field org.w3c.tidy.ParserImpl._parseHead from class org.w3c.tidy.ParserImpl$ParseHTML at org.w3c.tidy.ParserImpl$ParseHTML.parse(ParserImpl.java) at org.w3c.tidy.ParserImpl.parseDocument(ParserImpl.java) at org.w3c.tidy.Tidy.parse(Tidy.java) at org.w3c.tidy.Tidy.parseDOM(Tidy.java) ... A method in the inner class $ParseHTML is trying to access a private field _parseHead in the containing class, but that is legal as far as I know. When I move the body of this servlet to a stand alone application it runs fine - no exceptions. Is there some strange JVM security manager here that is different from running as a real application? Anyone have an idea what is going on?
RE: tomcat work with mozilla but not with IE
IE doesn't have a problem with port 8080, but if you are trying to communicate via HTTP on a port other than 80 you need to specify the protocol in the URL: http://localhost:8080/index.jsp earl moore > -Original Message- > From: Peter Choe [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 15, 2001 9:25 AM > To: [EMAIL PROTECTED] > Subject: Re: tomcat work with mozilla but not with IE > > > actually, i think the ie has a problem with port 8080. i > also had this > problem before. > > peter choe >
Re: running examples in Tomcat 4.0 b5
OK, I have several ClassCastExceptions trying to run examples in Tomcat 4.0 b5, all related to filters. I suppose it's a classpath thing... 1) Where should I put the servlet.jar downloaded with the binary distribution of Tomcat 4 (jakarta-servletapi-4.0-b5) ? 2) Is there any other jar file I need to execute the examples?? 3) I feel documentation is incomplete on Tomcat 4.0 installation (IMHO) MA Luba Powell wrote: > This is where you start. Under \conf\server.xml > find > > > bumpup debug level to 99 or higher than 2. > Then examine your logs. > > - Original Message - > From: "Marc-andre Thibodeau" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, June 14, 2001 4:44 PM > Subject: running examples in Tomcat 4.0 b5 > > > > > Hi there! > > > > I just installed Tomcat 4.0 b5 on linux and I just cannot run the > > examples included in the binary bundle... > > When I connect to http://localhost:8080/examples/jsp, I receive the > > following error message: > > > > HTTP Status 503 - This application is not currently available > > The requested service (This application is not currently available) is > > not currently available. > > > > > > The HTML content is served normally, but all JSPs and Servlets do not > > work... > > Anybody has an idea? > > > > MA > >
Re: Compile mod_jk fails: tomcat 3.2.1 + apache 1.3.9
You are using the broken Sun C compiler. Use GNU gcc from http://sunfreeware.com. On Thu, 14 Jun 2001, William Ho wrote: > Hi there, > > My configuration is as follows: > Tomcat 3.2.1 > Apache 1.3.9 > Solaris 7 > J2SE 1.3.0_02 (not used in this compilation) > > I'm trying to compile mod_jk on Solaris 2.7. Here's what I did: > > (1) cd to .../jakarta-tomcat-3.2.1-src/src/native/apache1.3 > (2) make sure apxs aliased to the correct file, in this case is > .../apache/bin/apxs > (3) since the apxs script uses cc, I checked the cc version. It is "Workshop > Compilers 4.2" > (4) from the webpage > http://jakarta.apache.org/tomcat/tomcat-3.2-doc/mod_jk-howto.html, I use the > following command to compile, using my own java 1.3 (j2se downloaded from sun): > > apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/j2se/include > -I/usr/j2se/include/solaris -c *.c ../jk/*.c > > Warnings and Errors: > > cc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE > -I/kitimat1/apache/include -I../jk -I/usr/j2se/include > -I/usr/j2se/include/solaris -DSOLARIS -c > ../jk/jk_jni_worker.c"../jk/jk_jni_worker.c", line 731: warning: assignment type > mismatch: > > pointer to function(pointer to pointer to pointer to const struct > JNIInvokeInterface_ {pointer to void reserved0, pointer to... "=" pointer to > void"../jk/jk_jni_worker.c", line 732: warning: assignment type > mismatch: > > pointer to function(pointer to void) returning long "=" pointer to void > > cc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE > -I/kitimat1/apache/include -I../jk -I/usr/j2se/include > -I/usr/j2se/include/solaris -DSOLARIS -c > ../jk/jk_uri_worker_map.c"../jk/jk_uri_worker_map.c", line 349: warning: > initializer does not fit or is out of range: -1 > "../jk/jk_uri_worker_map.c", line 438: warning: newline not last character in > file > > cc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE > -I/kitimat1/apache/include -I../jk -I/usr/j2se/include > -I/usr/j2se/include/solaris -DSOLARIS -c ../jk/jk_util.c"../jk/jk_util.c", line > 211: missing operand"../jk/jk_util.c", line 223: missing operand cc: acomp > failed for ../jk/jk_util.c apxs:Break: Command failed with rc=131072 > > Do you have any ideas on this? Thanks a lot. > Also, do you know if anybody has uses the same apache, tomcat and solaris > versions and can make it work? Any help will be very much appreciated. > > = > Best regards, > Will. > Declaration: My postings are not related to my employer in any sense. > = > "Mon aeroglisseur est plein d'anguilles" John P. Dodge Boeing Shared Services
Re: Tomcat IIS HowTo
It must be the same thing - mine says Internet Service Manager also. Just right click on your jakarta virtual directory, choose Properties and set the Permissions at the bottom to 'execute'. Can you see http://localhost:8080/examples/jsp/index.html ? On Friday 15 June 2001 00:25, you wrote: > Hi, > > I am having problem in configuring IIS 4.0 and Jakarta Tomcat 3.2.1. I have > followed the instruction given by you in your documentation. I am not able > to see "http://localhost/examples/jsp/index.html";. > > In your trouble shooting section 5.A.3 says > "If the number following GET "/..." is 200 or 403, make sure you have > checked Execute Access for the jakarta virtual directory in the Advanced > Options of the Personal Web Manager. " But i'm not using "Personal Web > Manager." I'm using "Internet Service Manager" > > Please help me in this regard > > Thanks in Advance > > Manjunath > > > _ > Chat with your friends as soon as they come online. Get Rediff Bol at > http://bol.rediff.com -- irfan.baig = "Engineer, Abstract Edge" irfan.phone = "212.352.9311 ext 102" irfan.fax= "212.352.9498"
Re: tomcat work with mozilla but not with IE
actually, i think the ie has a problem with port 8080. i also had this problem before. peter choe
Re: How to make tomcat read .asp extension as .jsp file
On Mon, Jun 11, 2001 at 06:18:55PM -0500, Brandon Cruz wrote: > Filip, > Thank you for the suggestions, I will continue to play around with it, but > here is what I have come up with for those 3 solutions so far. Guess I may > have to suck it up and go in and change everything. > > 1) No knowledge of how to write a batch script that can do this...I could do > it in java, but figured there must be an easier way. (get cygwin) (this is all one line) for i in `find . -name "*.asp" -type f`; do mv $i `echo $i | sed s/\.asp$/.jsp/`; done > 2)This is going to be deployed on a server with quite a few other sites, so > I would prefer to keep it local...hopefully I could set an alias or > something inside the individual context in server.xml everything in WEB-INf/web.xml is local to that app > 3) I have tried that technique in the web.xml, but my changes don't seem to > be working as long as I want to use .jsp extensions also...again, I still > would like to keep it local. again WEB-INF/web.xml is your friend > Brandon > -- -Marco Ring the bells that still can ring. Forget the perfect offering. There's a crack in everything. It's how the light gets in. -Isonard Cohen PGP signature
Re: Running secure tomcat
Go to DOS prompt and type: >policytool This will guide you thru the syntax - Original Message - From: "Pernica, Jan" <[EMAIL PROTECTED]> To: "Tomcat-User (E-mail)" <[EMAIL PROTECTED]> Sent: Friday, June 15, 2001 1:17 AM Subject: Running secure tomcat > If I run tomcat 4.0b5 in the secure more and I get following error when I > want to grant my application some grants. > I am using JDK 1.3.1. > > > java.security.Policy: error adding Entry > sun.security.provider.PolicyParser$Gran > tEntry@639a3e java.net.MalformedURLException: unknown protocol: jndi > > I have added following into catalina.policy > > grant codeBase "jndi:/localhost/webapps/support/WEB-INF/classes/-" { > permission java.security.AllPermission; > }; > > Thank you > > for reply > > Jan > > > > __ > Tato komunikace je urcena vyhradne pro adresata a je duverna. > This communication is intended solely for the addressee and is confidential. > > >
RE: tomcat work with mozilla but not with IE
Try http://127.0.0.1:8080/index.html Try add the line: 127.0.0.1 localhost to your c:\windows\hosts file (create it whith notepad if it don't exists). Also, if you use a proxy, check "don't use proxy server for local hosts" or similar. Greetings -Original Message-From: Christoph Brunner [mailto:[EMAIL PROTECTED]]Sent: Friday, June 15, 2001 10:49 AMTo: [EMAIL PROTECTED]Subject: tomcat work with mozilla but not with IE Hi, I had installed Tomcat as a stand-alone servlet container! I can start tomcat with the startup- script! When I try to access http://localhost:8080/index.html the Internet Explorer can't locate the site! With the mozilla- Browser all looks pretty fine!!! Any ideas? thank you Christoph Brunner
Re: tomcat work with mozilla but not with IE
hi , i gues its a problemn of your windows setup. try http://127.0.0.1:8080/index.html and if its all right, then localhost is not in your hostfile (somewhere in your windoze dir). another thing could be that if there is a dialup connection, ie will automaticly respond a 404 if you are not online. hope this helps cheers hype - Original Message - From: Christoph Brunner To: [EMAIL PROTECTED] Sent: Friday, June 15, 2001 3:48 PM Subject: tomcat work with mozilla but not with IE Hi, I had installed Tomcat as a stand-alone servlet container! I can start tomcat with the startup- script! When I try to access http://localhost:8080/index.html the Internet Explorer can't locate the site! With the mozilla- Browser all looks pretty fine!!! Any ideas? thank you Christoph Brunner
Re: tomcat work with mozilla but not with IE
Doesn't look that tomcat is running - Original Message - From: Christoph Brunner To: [EMAIL PROTECTED] Sent: Friday, June 15, 2001 9:48 AM Subject: tomcat work with mozilla but not with IE Hi, I had installed Tomcat as a stand-alone servlet container! I can start tomcat with the startup- script! When I try to access http://localhost:8080/index.html the Internet Explorer can't locate the site! With the mozilla- Browser all looks pretty fine!!! Any ideas? thank you Christoph Brunner
RE: tomcat work with mozilla but not with IE
I had installed Tomcat as a stand-alone servlet container! I can start tomcat with the startup- script! When I try to access http://localhost:8080/index.html the Internet Explorer can't locate the site! With the mozilla- Browser all looks pretty fine!!! === If your machine has a network IP address you may try using that( i.e. http://10.0.0.5:8080/ ) or otherwise try the loopback device http://127.0.0.1:8080 to verify it is a IE network config issue. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
tomcat work with mozilla but not with IE
Hi, I had installed Tomcat as a stand-alone servlet container! I can start tomcat with the startup- script! When I try to access http://localhost:8080/index.html the Internet Explorer can't locate the site! With the mozilla- Browser all looks pretty fine!!! Any ideas? thank you Christoph Brunner
Re: accessing servlets directly
At 03:35 PM 15/06/01, you wrote: >Jim Cheesman wrote: > > To be honest, no idea ;) I haven't used JServ so I've no idea how its > > repositories worked... I don't suppose that building a redirecting servlet > > would be that difficult - add a parameter to a cgi style call, and build > > the servlet URL from that. Then call > > getServletContext().getRequestDispatcher(myURL).forward(request, response); > >That would be an idea :) But I found something that could help me, >although I can't find documentation on it anywhere... > >When I look at tomcat-apache.conf, I find this line: >ApJServMount /servlet /ROOT >ROOT is a directory with a normal structure (WEB-INF and the like). Now, >when I want to access a servlet that's located in >$TOMCAT_HOME/webapps/ROOT/WEB-INF/classes, I can just enter >http://www.myserver.com/servlet/. That works great. No >need for /servlet/servlet/. > >But other Contexts do need that extra "/servlet"-directory, even though >I tell them (i.e.) >ApJServMount /servlets /servlets >Still I need to access the servlets in this Context at >http://www.myserver.com/servlets/servlet/. In this case "servlets" is a seperate web application - just like "" (nothing inbetween the quotes intentionally). So in both cases you are accessing your sevlets with http://myserver.com/webapp_path/servlet/actual_servlet - just that in the second case the webapp_path is blank/empty. >The context is made like this: > docBase="/var/servlet" > reloadable="true" > > > >Now, why can't I access the servlets direct from /servlets, when I *can* >do that with the /ROOT context? As I said - check the extra/missing "s" servlets/servlet vs. /servlet >Does that clarify my question a bit more? Seeing ROOT, I'd say it must >be possible, but what's the correct config? Of course, you can blitz the root webapp context entry in server.xml - or change the path to "/root", then change the servlets webapp path to "/"... That would acheive want you want. HTH, JimC -- * Jim Cheesman * Trabajo: [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360 Evil is not all bad.
Re: accessing servlets directly
Jim Cheesman wrote: > To be honest, no idea ;) I haven't used JServ so I've no idea how its > repositories worked... I don't suppose that building a redirecting servlet > would be that difficult - add a parameter to a cgi style call, and build > the servlet URL from that. Then call > getServletContext().getRequestDispatcher(myURL).forward(request, response); That would be an idea :) But I found something that could help me, although I can't find documentation on it anywhere... When I look at tomcat-apache.conf, I find this line: ApJServMount /servlet /ROOT ROOT is a directory with a normal structure (WEB-INF and the like). Now, when I want to access a servlet that's located in $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes, I can just enter http://www.myserver.com/servlet/. That works great. No need for /servlet/servlet/. But other Contexts do need that extra "/servlet"-directory, even though I tell them (i.e.) ApJServMount /servlets /servlets Still I need to access the servlets in this Context at http://www.myserver.com/servlets/servlet/. The context is made like this: Now, why can't I access the servlets direct from /servlets, when I *can* do that with the /ROOT context? Does that clarify my question a bit more? Seeing ROOT, I'd say it must be possible, but what's the correct config? Kind regards, Tim Stoop
problems viewing context in admin servlet
Hi all, I installed tomcat 3.2.2 successfully and everything works fine, example servlets and jsps. Only when I try to view the contexts in the admin servlet I get the following error (below). I marked the context as trusted and logged in as admin succesfully. I do not know however what this error is about and could not find any information on in. I'd greatly appriciate any help, Dirk So here's the servlets response: Location: /admin/contextAdmin/contextAdmin.jspInternal Servlet Error: javax.servlet.ServletException: URL contains encoded special chars. at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) at contextAdmin._0002fcontextAdmin_0002fcontextAdmin_0002ejspcontextAdmin_jsp_0._jspService(_0002fcontextAdmin_0002fcontextAdmin_0002ejspcontextAdmin_jsp_0.java:197) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) 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:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) Root cause: java.lang.IllegalArgumentException: URL contains encoded special chars. at org.apache.tomcat.util.RequestUtil.URLDecode(RequestUtil.java:317) at ContextAdmin.getContextInfo(ContextAdmin.java:76) at contextAdmin._0002fcontextAdmin_0002fcontextAdmin_0002ejspcontextAdmin_jsp_0._jspService(_0002fcontextAdmin_0002fcontextAdmin_0002ejspcontextAdmin_jsp_0.java:135) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) 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:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484)
Re: newbie: Starting Tomcat
Look under logs directory for more messages. - Original Message - From: "LeRoi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 15, 2001 5:11 AM Subject: FW: newbie: Starting Tomcat > Hello, > > I'm new to java and was coming to grips with it until I got to the > chapter on SERVLETS. I hope some one out there can help me and I > would like to thank you in advance. > > I downloaded and installed Tomcat 3.2.2 under NT 4.0 (SP 6) without > any problems. I also have JDK 1.3 on the machine. Following one > posting on "Google" I added the line to the server.xml file: > className="org.apache.tomcat.request.Jdk12Interceptor" /> > > > When trying to start Tomcat I get the following message: > > E:\jakarta-tomcat-3.2.2\bin>tomcat run > Including all jars in E:\jakarta-tomcat-3.2.2\lib in your CLASSPATH. > > Using CLASSPATH: > E:\jakarta-tomcat-3.2.2\classes;E:\jakarta-tomcat-3.2.2\lib\ant.jar;E:\jakar > ta-tomc > at-3.2.2\lib\jasper.jar;E:\jakarta-tomcat-3.2.2\lib\jaxp.jar;E:\jakarta-tomc > at-3.2.2\lib\parser.jar; > E:\jakarta-tomcat-3.2.2\lib\servlet.jar;E:\jakarta-tomcat-3.2.2\lib\webserve > r.jar > > 2001-06-12 04:16:19 - ContextManager: Adding context Ctx( /examples ) > 2001-06-12 04:16:19 - ContextManager: Adding context Ctx( /admin ) > Starting tomcat. Check logs/tomcat.log for error messages > 2001-06-12 04:16:19 - ContextManager: Adding context Ctx( ) > 2001-06-12 04:16:19 - ContextManager: Adding context Ctx( /test ) > Exception in thread "main" java.lang.ExceptionInInitializerError: > java.util.MissingResourceException > : Can't find bundle for base name javax.servlet.http.LocalStrings, > locale en_US > at java.util.ResourceBundle.throwMissingResourceException(Unknown > Source) > at java.util.ResourceBundle.getBundleImpl(Unknown Source) > at java.util.ResourceBundle.getBundle(Unknown Source) > at javax.servlet.http.HttpServlet.(HttpServlet.java:144) > at java.lang.Class.newInstance0(Native Method) > at java.lang.Class.newInstance(Unknown Source) > at > org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:268) > at > org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289) > at > org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup > Interceptor.j > ava:130) > at > org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491) > at > org.apache.tomcat.core.ContextManager.init(ContextManager.java:453) > at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) > at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) > E:\jakarta-tomcat-3.2.2\bin> > > If I use "Tomcat Start" or just the "Start.bat" I get a second window that > opens and disappears rather quickly before I can see what's going on. Can > anyone help? Also, can anyone suggest any books on Tomcat? > > Regards, > LeRoi >
RE: tomcat and linux
This is not as virtual as you would want it, but if you can stand www.abc.com/abc/whatever # mkdir /usr/local/jakarta-tomcat/webapps/abc # mkdir /usr/local/jakarta-tomcat/webapps/abc/META-INF # ln -s /usr/local/jakarta-tomcat/webapps/abc /home/abc # adduser abc # passwd abc ... # chown -R abc:abc /usr/local/jakarta-tomcat/webapps/abc -Original Message-From: Graffitti [mailto:[EMAIL PROTECTED]]Sent: Wednesday, June 12, 2002 7:23 AMTo: [EMAIL PROTECTED]Subject: tomcat and linux I am using tomcat 3.2 on linux. I want to virtual hosting in TOMCAT so thatevery domain can upload the servlet and JSP files in its own directory. Nowwe are uploading all the servlet and jsp files in the root of tomcatcontainer.But now we have 5 domains in server but we have to upload the servlet andjsp files into root of tomcat.But we want every domain can upload the files into its own domain. Likewww.abc.comHow can we do it. Please help me.
Re: accessing servlets directly
At 01:25 PM 15/06/01, you wrote: >Jim Cheesman wrote: > > And a servlet-mapping entry in the webapp web.xml file: > > (For example) ><...> > > Change the url-pattern if you want - that's what you'll be typing > > in/linking to. > >Ok, but that should be done for every single Servlet? I want JServ-style >"repositories", where I can dump my work and try it directly... Or will >this solution also work with a wilcard? To be honest, no idea ;) I haven't used JServ so I've no idea how its repositories worked... I don't suppose that building a redirecting servlet would be that difficult - add a parameter to a cgi style call, and build the servlet URL from that. Then call getServletContext().getRequestDispatcher(myURL).forward(request, response); HTH, JimC -- * Jim Cheesman * Trabajo: [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360 Evil is not all bad.
RE: Tomcat 4.0: Can webapps dir contain links?
What I have done, that works with 3.2.1 and 3.2.2 at least. And no, I don't really like it. # mkdir /usr/local/jakarta-tomcat/webapps/user # mkdir /usr/local/jakarta-tomcat/webapps/user/META-INF # ln -s /usr/local/jakarta-tomcat/webapps/user /home/user and get the ownership straight. I think there is some security problem with tomcat following symlinks. -Original Message- From: Robert Evans [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 14, 2001 11:34 AM To: [EMAIL PROTECTED] Subject: RE: Tomcat 4.0: Can webapps dir contain links? Thanks for the interest. I am setting up a separate context for each student. The problem is that Tomcat doesn't want to follow the soft link (Solaris) to the student's directory. Bob At 10:58 AM 6/13/2001 -0400, you wrote: >Why can't you set up a separate context for each student? In server.xml, >you could set the doc base in each context to the appropriate student's >directory. > >-Original Message- >From: Robert Evans [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, June 13, 2001 10:28 AM >To: [EMAIL PROTECTED] >Subject: Tomcat 4.0: Can webapps dir contain links? > > >Greetings, > >I am trying to set up a Tomcat server to be used for some web development >classes. I would like to have each student have there own webapp, so that >in the webapp dir there would be a link to their public_html directory. In >Tomcat4B5, it seems as though tomcat will not follow a soft link to the >students home directory. If I make a new directory in webapps, it works >fine, but the link gives me a 403 application not available message. > >If anyone has set up a system like this, I would greatly appreciate their >help > >Bob Evans >Johns Hopkins University
Apache+Tomcat mod_jk 3.2.2 install problem
I installed Tomcat 3.2.2 with Linux RedHat k2.2.17-14cl, and http://localhost:8080/ works fine, all examples servlets/JSPs. Then, I tried to install the integration with Apache 1.3.14. This is the error: [root@email conf]# /etc/rc.d/init.d/httpd start Iniciando httpd: BUG IN DYNAMIC LINKER ld.so: dynamic-link.h: 57: elf_get_dynamic_ info: Assertion `! "bad dynamic tag"' failed! I tried with both libraries: mod_jk.so-eapi mod_jk.so-noeapi renaming it to mod_jk.so and putting it into libexec (a link to modules). PS: Apache works fine without Tomcat module.
Tomcat tutorial
Hi all, I'm looking for a complete explanation of all the possibilities of Tomcat, in order to write a course. Does anyone know where I can find these informations? thanks for help David.
RE: FW: newbie: Starting Tomcat
Here is my jnet.jar (I use it under a Linux Plateform) Either it seems that it is not the solution of your problem, you can try including it in last hope ;) [I was thinking of this file, cause I had also a problem speaking of javax and ressource not found, and this pb disapear when I copied this file into the JAVA_HOME/lib directory, even if I didn't know why] > Jean-Etienne: I have tried the suggestion of including "jnet.jar" in my > classpath, however, it appears that I don't even have that file in my > "Tomcat" or "Java" directories. __ Voila vous propose une boite aux lettres gratuite sur Voila Mail: http://mail.voila.fr jnet.jar
RE: Handler Thread problem.Help needed.
Hi, Sorry for my mistake, the tomcat version of my server is 3.1 and not 3.2.1. Here is the error that comes : HANDLER THREAD PROBLEM: java.lang.NullPointerException: java.lang.NullPointerException: at org.apache.tomcat.service.connector.AJP12ResponseAdapter.sendStatus(Ajp12Con nectionHandler.java:439) at org.apache.tomcat.service.http.HttpResponseAdapter.endHeaders(HttpResponseAd apter.java:111) at org.apache.tomcat.core.BufferedServletOutputStream.sendHeaders(BufferedServl etOutputStream.java:127) at org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush(BufferedServl etOutputStream.java:239) at org.apache.tomcat.core.ResponseImpl.finish(ResponseImpl.java:178) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java:158) at org.apache.tomcat.service.TcpWorkerThread.run(PoolTcpEndpoint.java:366) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:411) at java.lang.Thread.run(Thread.java:475) Need help to solve this problem. Regards, Susmita -Original Message- From: Susmita Das [SMTP:[EMAIL PROTECTED]] Sent: Friday, June 15, 2001 2:59 PM To: [EMAIL PROTECTED] Subject:Handler Thread problem.Help needed. Hi, My site is hosted in a server with the following configuration. Red Had linux 6.2 Jdk1.2.2 for linux Jakarta-tomcat-3.2.1 My server has 1GB RAM.Moreover I have increased the heapsize of JVM also to 256 MB. I am getting the error HANDLER THREAD PROBLEM: java.lang.NullPointerException I have gone through the mailing list database and found similar problems quoted.But no proper solution was found. What can be the reason. And how will I be able to solve it. Regards, Susmita
bad tomcat-apache.conf generated file
hello, I have currently one problem in the tomcat configuration. I use a 3.1 version, with Apache, on Digital Unix, with a JDK 1.2.2 I have the following line in the server.xml file (for example): But, when I start Tomcat, the resulting tomcat-apache.conf file produced includes the following: Alias /kekhia /urisc/si/delebecq/tomcat/build/tomcat/webapps/kekhia and the same wrong path for the following lines It should be simple, but I haven't found the solution neither in the FAQ, or in the mailing list archives... Thanks for your help __ | Henri Delebecque[EMAIL PROTECTED] | | Webmaster | | Supelec Tel (33) 01.69.85.14.91 | | 3 rue Joliot-Curie | | Plateau de Moulon Fax:(33) 01.69.85.12.34 | | 91190 Gif sur Yvette| | FRANCE | |_|
Re: accessing servlets directly
Jim Cheesman wrote: > And a servlet-mapping entry in the webapp web.xml file: > (For example) <...> > Change the url-pattern if you want - that's what you'll be typing > in/linking to. Ok, but that should be done for every single Servlet? I want JServ-style "repositories", where I can dump my work and try it directly... Or will this solution also work with a wilcard? Kind regards, Tim Stoop