Re: beginer question abt JSP with Tomcat
On 9/11/07, minky arora <[EMAIL PROTECTED]> wrote: > I am not able to run the examples/dates/date.jsp files and the like. ? Does Tomcat start? Can you see the default welcome page in your browser? If not, what is in the logs? If so, what do you mean by "not able to run ..."? Symptom(s)? Log output? -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
Yes I can see the welcome page.HOWEVERR If i run the date.jsp or any other exapmles provided by tomcat then I get, ype Status report message /tomcat-docs/config/context.html description The requested resource (/tomcat-docs/config/context.html) is not available. On 9/11/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > On 9/11/07, minky arora <[EMAIL PROTECTED]> wrote: > > > I am not able to run the examples/dates/date.jsp files and the like. > > ? Does Tomcat start? Can you see the default welcome page in your > browser? If not, what is in the logs? > > If so, what do you mean by "not able to run ..."? Symptom(s)? Log > output? > > -- > Hassan Schroeder [EMAIL PROTECTED] > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
On 9/11/07, minky arora <[EMAIL PROTECTED]> wrote: > Yes I can see the welcome page.HOWEVERR If i run the date.jsp or any > other exapmles provided by tomcat then I get, > > ype Status report > > message /tomcat-docs/config/context.html That's not a JSP page, eh? Have you confirmed that the context(s) involved are actually there? And have you looked at the log files yet? -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
I am attching the 2 log files: one for localhost and the other for catalina logs.I am sorry cnt figure out much as I am really a Newbie. As for the context part, I was following point-point instructions online to test the first JSP files from the Dates folder..And it says that if that doesnt run, then JDK and JAVA are not pointing to the same directory. I followed the instructions again and changed the export path and checked all symbolic links..Now I am just not sure what to do next. Sorry I am really confused as to how to connect JAVA and tomcat together.Currently my tomcat folder is inside JAVA Directory which is in my home dir, Thanks a lot ... On 9/11/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > On 9/11/07, minky arora <[EMAIL PROTECTED]> wrote: > > Yes I can see the welcome page.HOWEVERR If i run the date.jsp or any > > other exapmles provided by tomcat then I get, > > > > ype Status report > > > > message /tomcat-docs/config/context.html > > That's not a JSP page, eh? Have you confirmed that the context(s) > involved are actually there? > > And have you looked at the log files yet? > > -- > Hassan Schroeder [EMAIL PROTECTED] > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
sorry the files are here. On 9/11/07, minky arora <[EMAIL PROTECTED]> wrote: > I am attching the 2 log files: one for localhost and the other for > catalina logs.I am sorry cnt figure out much as I am really a Newbie. > > As for the context part, I was following point-point instructions > online to test the first JSP files from the Dates folder..And it says > that if that doesnt run, then JDK and JAVA are not pointing to the > same directory. > > I followed the instructions again and changed the export path and > checked all symbolic links..Now I am just not sure what to do next. > > Sorry I am really confused as to how to connect JAVA and tomcat > together.Currently my tomcat folder is inside JAVA Directory which is > in my home dir, > > > Thanks a lot ... > > > > On 9/11/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > > On 9/11/07, minky arora <[EMAIL PROTECTED]> wrote: > > > Yes I can see the welcome page.HOWEVERR If i run the date.jsp or any > > > other exapmles provided by tomcat then I get, > > > > > > ype Status report > > > > > > message /tomcat-docs/config/context.html > > > > That's not a JSP page, eh? Have you confirmed that the context(s) > > involved are actually there? > > > > And have you looked at the log files yet? > > > > -- > > Hassan Schroeder [EMAIL PROTECTED] > > > > - > > To start a new topic, e-mail: users@tomcat.apache.org > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
On 9/11/07, minky arora <[EMAIL PROTECTED]> wrote: > sorry the files are here. You can't send attachments to the list. Stop TC, delete your logs, restart and go to one page to generate the error; paste the result into your mail. > > Sorry I am really confused as to how to connect JAVA and tomcat > > together.Currently my tomcat folder is inside JAVA Directory which is > > in my home dir, ?? On my Mac (OS X.4.10) $JAVA_HOME is: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0 :: so I'm not at all sure what you're trying to describe here... But I have no problem running TC by simply setting JAVA_HOME and CATALINA_HOME, wherever the latter may be located. -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
I guess simply put, this is wat i get when i run startup.sh for Tomcat * Using CATALINA_BASE: /Users/meenaksharora/java/tomcat/apache-tomcat-6.0.14 Using CATALINA_HOME: /Users/meenaksharora/java/tomcat/apache-tomcat-6.0.14 Using CATALINA_TMPDIR: /Users/meenaksharora/java/tomcat/apache-tomcat-6.0.14/temp Using JRE_HOME: /Library/Java/Home *** SInce I am able to run Tomcat AND UNABLE to run JSP , i think I am messing up the paths here. Can anyone Advise me how to change these? In an online documentation , it is supp. to be like the foll. *** Using CATALINA_BASE: /Library/Tomcat/Home Using CATALINA_HOME: /Library/Tomcat/Home Using CATALINA_TMPDIR: /Library/Tomcat/Home Using JAVA_HOME: /System/Library/Frameworks/JavaVM/Versions/1.3.1/Home ** Pls guide me on wat all paths to change , if any?? Thanks;. On 9/11/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > On 9/11/07, minky arora <[EMAIL PROTECTED]> wrote: > > sorry the files are here. > > You can't send attachments to the list. Stop TC, delete your logs, > restart and go to one page to generate the error; paste the result > into your mail. > > > > Sorry I am really confused as to how to connect JAVA and tomcat > > > together.Currently my tomcat folder is inside JAVA Directory which is > > > in my home dir, > > ?? On my Mac (OS X.4.10) $JAVA_HOME is: > > /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0 > > :: so I'm not at all sure what you're trying to describe here... > > But I have no problem running TC by simply setting JAVA_HOME and > CATALINA_HOME, wherever the latter may be located. > > -- > Hassan Schroeder [EMAIL PROTECTED] > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: beginer question abt JSP with Tomcat
> From: minky arora [mailto:[EMAIL PROTECTED] > Subject: Re: beginer question abt JSP with Tomcat > > Using JAVA_HOME: /System/Library/Frameworks/JavaVM/Versions/1.3.1/Home Tomcat 6 requires JRE 1.5 or later. You should delete that ancient version, install a proper one, set JAVA_HOME (or JRE_HOME) to the proper location, and retest. Read RUNNING.txt in the Tomcat directory for more information. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
On 9/11/07, minky arora <[EMAIL PROTECTED]> wrote: > Using JRE_HOME: /Library/Java/Home > Pls guide me on wat all paths to change , if any?? Did you /try/ using the JAVA_HOME setting I previously sent? -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
Yes I have changed the JAVA_HOME but still its not working.Is it possible to over-ride the JRE_HOME in some way or to delete it completely.I think thats wat causing confusion and I guess for TC, JAVA_HOME needs to be set, JRE_HOME is not important..is that right? On 9/11/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > On 9/11/07, minky arora <[EMAIL PROTECTED]> wrote: > > > Using JRE_HOME: /Library/Java/Home > > > Pls guide me on wat all paths to change , if any?? > > Did you /try/ using the JAVA_HOME setting I previously sent? > > -- > Hassan Schroeder [EMAIL PROTECTED] > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: beginer question abt JSP with Tomcat
> From: minky arora [mailto:[EMAIL PROTECTED] > Subject: Re: beginer question abt JSP with Tomcat > > Is it possible to over-ride the JRE_HOME in some way > or to delete it completely. You're in complete control of the environment variables for your process. > I think thats wat causing confusion and I guess for TC, > JAVA_HOME needs to be set, JRE_HOME is not important Either can be used, depending on whether you have a JDK or JRE installed. There's no reason to set both. Again, read the RUNNING.txt file that's part of the Tomcat distribution. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
On 9/12/07, minky arora <[EMAIL PROTECTED]> wrote: > Yes I have changed the JAVA_HOME but still its not working.Is it > possible to over-ride the JRE_HOME in some way or to delete it > completely.I think thats wat causing confusion and I guess for TC, > JAVA_HOME needs to be set, JRE_HOME is not important..is that right? TC6 can work with only a JRE, but first do this: echo $JAVA_HOME ls -l $JAVA_HOME echo $CATALINA_HOME ls -l $CATALINA_HOME :: and paste the results into your mail. And it would help to send the log output as I mentioned before :-) -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
Sorry but I am pasting an output from my Profile file where I am trying to include JAVA_HOME.I tried changing from command line using export JAVA_HOME="watevr".but still nothing. * # System-wide .profile for sh(1) PATH="/bin:/sbin:/usr/bin:/usr/sbin" export PATH JAVA_HOME="/Systems/Library/Frameworks/JavaVM.framework/Versions/1.5.0 export JAVA_HOME if [ "${BASH-no}" != "no" ]; then [ -r /etc/bashrc ] && . /etc/bashrc fi ** ECHO $JAVA_HOME doensnt give me any result, neither does echo $CATALINA_HOME *** On 9/12/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > On 9/12/07, minky arora <[EMAIL PROTECTED]> wrote: > > Yes I have changed the JAVA_HOME but still its not working.Is it > > possible to over-ride the JRE_HOME in some way or to delete it > > completely.I think thats wat causing confusion and I guess for TC, > > JAVA_HOME needs to be set, JRE_HOME is not important..is that right? > > TC6 can work with only a JRE, but first do this: > > echo $JAVA_HOME > ls -l $JAVA_HOME > > echo $CATALINA_HOME > ls -l $CATALINA_HOME > > :: and paste the results into your mail. > > And it would help to send the log output as I mentioned before :-) > > -- > Hassan Schroeder [EMAIL PROTECTED] > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
On 9/12/07, minky arora <[EMAIL PROTECTED]> wrote: OK, one more time: > export JAVA_HOME="watevr".but still nothing. First, open a new terminal window. The default OS X shell is tcsh, so first thing type "bash". At the next prompt type "echo $JAVA_HOME". If that returns nothing, type "export JAVA_HOME=/Systems/Library/Frameworks/JavaVM.framework/Versions/1.5.0" Then try echo again. Repeat that for CATALINA_HOME. Once you're sure those two environment variables are good, you can start Tomcat from that shell by typing "$CATALINA_HOME/bin/catalina.sh run" Try accessing a JSP; if it doesn't work, send the entire log output seen in the shell you started in. -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
OK..I followed all the steps..All well..but JSP is not running...Foll are the log >From Localhost: Sep 12, 2007 10:19:15 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Sep 12, 2007 10:19:15 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Sep 12, 2007 10:55:12 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Sep 12, 2007 10:55:12 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Sep 12, 2007 10:55:13 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextDestroyed() Sep 12, 2007 10:55:13 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextDestroyed() Sep 12, 2007 11:13:05 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextDestroyed() Sep 12, 2007 11:13:05 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextDestroyed() Sep 12, 2007 11:13:16 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Sep 12, 2007 11:13:16 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Sep 12, 2007 11:27:15 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Sep 12, 2007 11:27:15 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Sep 12, 2007 11:27:16 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextDestroyed() Sep 12, 2007 11:27:16 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextDestroyed() >From Catalina Sep 12, 2007 10:19:14 AM org.apache.catalina.core.AprLifecycleListener init INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java Sep 12, 2007 10:19:14 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Sep 12, 2007 10:19:14 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1144 ms Sep 12, 2007 10:19:14 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Sep 12, 2007 10:19:14 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.14 Sep 12, 2007 10:19:16 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Sep 12, 2007 10:19:16 AM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Sep 12, 2007 10:19:16 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/29 config=null Sep 12, 2007 10:19:16 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 1594 ms Sep 12, 2007 10:55:12 AM org.apache.catalina.core.AprLifecycleListener init INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java Sep 12, 2007 10:55:12 AM org.apache.coyote.http11.Http11Protocol init SEVERE: Error initializing endpoint java.net.BindException: Address already in use:8080 at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:501) at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:177) at org.apache.catalina.connector.Connector.initialize(Connector.java:1059) at org.apache.catalina.core.StandardService.initialize(StandardService.java:677) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792) at org.apache.catalina.startup.Catalina.load(Catalina.java:518) at org.apache.catalina.startup.Catalina.load(Catalina.java:538) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412) Sep 12, 2007 10:55:12 AM org.apache.catalina.startup.Catalina load SEVERE: Catalina.start LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 at org.apache.catalina.connector.Connector.initialize(Connector.java:1061) at org.apache.catalina.core.StandardService.initialize(StandardService.java:677) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792) at org.apache.catalina.startup.Catalina.load(Catalina.java:518) at org.apach
Re: beginer question abt JSP with Tomcat
On 9/12/07, minky arora <[EMAIL PROTECTED]> wrote: > OK..I followed all the steps..All well..but JSP is not running...Foll > are the log > Sep 12, 2007 10:55:12 AM org.apache.coyote.http11.Http11Protocol init > SEVERE: Error initializing endpoint > java.net.BindException: Address already in use:8080 Sigh. That mean Tomcat was already running. You have to stop that existing instance before you can start another. -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
yes...TC was running yesterday as well..JSP not running..ALso i had to restart my comp and now echo JAVA_HOME is not giving anything..do i have to do this each time? Thanks for being so patient .. On 9/12/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > On 9/12/07, minky arora <[EMAIL PROTECTED]> wrote: > > OK..I followed all the steps..All well..but JSP is not running...Foll > > are the log > > > Sep 12, 2007 10:55:12 AM org.apache.coyote.http11.Http11Protocol init > > SEVERE: Error initializing endpoint > > java.net.BindException: Address already in use:8080 > > Sigh. That mean Tomcat was already running. You have to stop that > existing instance before you can start another. > > -- > Hassan Schroeder [EMAIL PROTECTED] > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
Hassan Schroeder wrote: > On 9/12/07, minky arora <[EMAIL PROTECTED]> wrote: > > OK, one more time: > >> export JAVA_HOME="watevr".but still nothing. > > First, open a new terminal window. The default OS X shell is > tcsh, so first thing type "bash". (erm, why?) > At the next prompt type "echo $JAVA_HOME". If that returns > nothing, type "export > JAVA_HOME=/Systems/Library/Frameworks/JavaVM.framework/Versions/1.5.0" > > Then try echo again. Repeat that for CATALINA_HOME. > > Once you're sure those two environment variables are good, you > can start Tomcat from that shell by typing > "$CATALINA_HOME/bin/catalina.sh run" Instead of the above, just type "java -version" and paste the output into an email back to us. If the only Java you have installed is 1.5, then it's fine as is. You may not need to set JAVA_HOME in this case, and can probably comment the references to it out, in your 'profile' file. > Try accessing a JSP; if it doesn't work, send the entire log output > seen in the shell you started in. @Minky: you're confusing some old instructions with your current install. The instructions said JRE_HOME should be set to an old, out of date version of Java. The original setting of /Library/Java/Home is probably fine. The instructions also say, confusingly, that the JRE is wrong if the Date examples values don't work. This is not true. If Tomcat starts up, the JRE is OK. The chances are, that you're trying to access some old examples too, instead, just try the '/examples/' url on your server. If an error occurs, tell us what URL you tried to access, and what URL you were on if you tried to click a link. The log files we want to see are in 'tomcat/logs/', you can use the 'more catalina.out' or 'tail catalina.out' (for example) commands in the shell to see their contents. Look inside the log files if there are any errors. p - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
On 9/12/07, minky arora <[EMAIL PROTECTED]> wrote: > yes...TC was running yesterday as well..JSP not running..ALso i had to > restart my comp and now echo JAVA_HOME is not giving anything..do i > have to do this each time? If you open a different shell, yes. But until you get your environment straightened out, there's no reason to put it into your .bashrc, eh? So, in your terminal window, set those two environment vars again and restart TC. -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: beginer question abt JSP with Tomcat
> From: Pid [mailto:[EMAIL PROTECTED] > Subject: Re: beginer question abt JSP with Tomcat > > You may not need to set JAVA_HOME in this case, and can probably > comment the references to it out, in your 'profile' file. The Tomcat startup scripts require either JAVA_HOME or JRE_HOME to be set; can't get away with not setting one of them. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
Ok... java -version gives java version "1.5.0_07" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164) Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing) here is the o/p of tail catalina.log RNAi:/users/meenaksharora/java/tomcat/apache-tomcat-6.0.14/logs meenaksharora$ tail catalina.out Sep 12, 2007 11:27:16 AM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 Sep 12, 2007 11:27:16 AM org.apache.catalina.connector.Connector stop SEVERE: Coyote connector has not been started Sep 12, 2007 12:23:42 PM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Sep 12, 2007 12:23:43 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Sep 12, 2007 12:23:43 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 the error, when i tried to open some JSP files saved on my hard drive Safari can't open the page "http://meenaksharora/screensaver/jsp/header.jsp"; because it can't find the server "meenaksharora"... * On 9/12/07, Pid <[EMAIL PROTECTED]> wrote: > Hassan Schroeder wrote: > > On 9/12/07, minky arora <[EMAIL PROTECTED]> wrote: > > > > OK, one more time: > > > >> export JAVA_HOME="watevr".but still nothing. > > > > First, open a new terminal window. The default OS X shell is > > tcsh, so first thing type "bash". > > (erm, why?) > > > At the next prompt type "echo $JAVA_HOME". If that returns > > nothing, type "export > > JAVA_HOME=/Systems/Library/Frameworks/JavaVM.framework/Versions/1.5.0" > > > > Then try echo again. Repeat that for CATALINA_HOME. > > > > Once you're sure those two environment variables are good, you > > can start Tomcat from that shell by typing > > "$CATALINA_HOME/bin/catalina.sh run" > > Instead of the above, just type "java -version" and paste the output > into an email back to us. > > If the only Java you have installed is 1.5, then it's fine as is. You > may not need to set JAVA_HOME in this case, and can probably comment the > references to it out, in your 'profile' file. > > > > Try accessing a JSP; if it doesn't work, send the entire log output > > seen in the shell you started in. > > @Minky: you're confusing some old instructions with your current > install. The instructions said JRE_HOME should be set to an old, out > of date version of Java. The original setting of /Library/Java/Home is > probably fine. > > The instructions also say, confusingly, that the JRE is wrong if the > Date examples values don't work. This is not true. If Tomcat starts > up, the JRE is OK. > > The chances are, that you're trying to access some old examples too, > instead, just try the '/examples/' url on your server. > > If an error occurs, tell us what URL you tried to access, and what URL > you were on if you tried to click a link. > > The log files we want to see are in 'tomcat/logs/', you can use the > 'more catalina.out' or 'tail catalina.out' (for example) commands in the > shell to see their contents. Look inside the log files if there are any > errors. > > > p > > > > > > > > > > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: beginer question abt JSP with Tomcat
> From: minky arora [mailto:[EMAIL PROTECTED] > Subject: Re: beginer question abt JSP with Tomcat > > Safari can't open the page > "http://meenaksharora/screensaver/jsp/header.jsp"; because it can't > find the server "meenaksharora"... This has nothing to do with Tomcat. The DNS name meenaksharora isn't registered with any known DNS server and isn't in your hosts file. What happens when you use 127.0.0.1 or localhost instead of meenaksharora? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
On 9/12/07, minky arora <[EMAIL PROTECTED]> wrote: > Sep 12, 2007 12:23:43 PM org.apache.coyote.http11.Http11Protocol destroy > INFO: Stopping Coyote HTTP/1.1 on http-8080 Look at the above line -- Tomcat *isn't running*. You have to start it, and see that you can at least access the welcome page, before trying to access your own application. -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
Caldarale, Charles R wrote: From: minky arora [mailto:[EMAIL PROTECTED] Subject: Re: beginer question abt JSP with Tomcat Safari can't open the page "http://meenaksharora/screensaver/jsp/header.jsp"; because it can't find the server "meenaksharora"... This has nothing to do with Tomcat. The DNS name meenaksharora isn't registered with any known DNS server and isn't in your hosts file. What happens when you use 127.0.0.1 or localhost instead of meenaksharora? - Chuck ... and specify the port as in http://localhost:8080/screensaver/jsp/header.jsp --David THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
yes i can still open the tomcat welcome page.. If i use localhost / 127.0.0.1..same error On 9/12/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > On 9/12/07, minky arora <[EMAIL PROTECTED]> wrote: > > > Sep 12, 2007 12:23:43 PM org.apache.coyote.http11.Http11Protocol destroy > > INFO: Stopping Coyote HTTP/1.1 on http-8080 > > Look at the above line -- Tomcat *isn't running*. > > You have to start it, and see that you can at least access the welcome > page, before trying to access your own application. > > -- > Hassan Schroeder [EMAIL PROTECTED] > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
and specify the port as in http://localhost:8080/screensaver/jsp/header.jsp same thing.. Safari can't open the page "http://localhost:8080/screensaver/jsp/header.jsp"; because it could not connect to the server "localhost". *** On 9/12/07, minky arora <[EMAIL PROTECTED]> wrote: > yes i can still open the tomcat welcome page.. > > If i use localhost / 127.0.0.1..same error > > On 9/12/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > > On 9/12/07, minky arora <[EMAIL PROTECTED]> wrote: > > > > > Sep 12, 2007 12:23:43 PM org.apache.coyote.http11.Http11Protocol destroy > > > INFO: Stopping Coyote HTTP/1.1 on http-8080 > > > > Look at the above line -- Tomcat *isn't running*. > > > > You have to start it, and see that you can at least access the welcome > > page, before trying to access your own application. > > > > -- > > Hassan Schroeder [EMAIL PROTECTED] > > > > - > > To start a new topic, e-mail: users@tomcat.apache.org > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: beginer question abt JSP with Tomcat
> From: minky arora [mailto:[EMAIL PROTECTED] > Subject: Re: beginer question abt JSP with Tomcat > > Safari can't open the page > "http://localhost:8080/screensaver/jsp/header.jsp"; because it could > not connect to the server "localhost". That just means you don't have localhost defined in your hosts file (I don't know where that's located on OS X). What happens with 127.0.0.1:8080? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
somethin new...I am trying to do ./startup.sh I see something else here: RNAi:/users/meenaksharora/java/tomcat/apache-tomcat-6.0.14/bin meenaksharora$ ./startup.sh Cannot find /Systems/Library/Frameworks/JavaVM.framework/Versions/1.5.0/bin/setclasspath.sh This file is needed to run this program * On 9/12/07, minky arora <[EMAIL PROTECTED]> wrote: > and specify the port as in > http://localhost:8080/screensaver/jsp/header.jsp > > > same thing.. > Safari can't open the page > "http://localhost:8080/screensaver/jsp/header.jsp"; because it could > not connect to the server "localhost". > > *** > > On 9/12/07, minky arora <[EMAIL PROTECTED]> wrote: > > yes i can still open the tomcat welcome page.. > > > > If i use localhost / 127.0.0.1..same error > > > > On 9/12/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > > > On 9/12/07, minky arora <[EMAIL PROTECTED]> wrote: > > > > > > > Sep 12, 2007 12:23:43 PM org.apache.coyote.http11.Http11Protocol destroy > > > > INFO: Stopping Coyote HTTP/1.1 on http-8080 > > > > > > Look at the above line -- Tomcat *isn't running*. > > > > > > You have to start it, and see that you can at least access the welcome > > > page, before trying to access your own application. > > > > > > -- > > > Hassan Schroeder [EMAIL PROTECTED] > > > > > > - > > > To start a new topic, e-mail: users@tomcat.apache.org > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
On 9/12/07, minky arora <[EMAIL PROTECTED]> wrote: > yes i can still open the tomcat welcome page.. > > If i use localhost / 127.0.0.1..same error ?? If Tomcat's not running, and Safari 404s trying to access it, how can you "still open the tomcat welcome page"??? -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Minky, minky arora wrote: > RNAi:/users/meenaksharora/java/tomcat/apache-tomcat-6.0.14/bin > meenaksharora$ ./startup.sh > Cannot find > /Systems/Library/Frameworks/JavaVM.framework/Versions/1.5.0/bin/setclasspath.sh > This file is needed to run this program > * You must have CATALINA_HOME and JAVA_HOME confused. setclasspath.sh should be in CATALINA_HOME/bin/setclasspath.sh, not in JAVA_HOME/bin/setclasspath.sh. Note that ff you do not set CATALINA_HOME, catalina.sh will figure out what CATALINA_HOME should be. Honestly, I'm surprised that Mac OS X doesn't set JAVA_HOME for you. Sorry this is becoming such a pain in the neck. Please be aware that your environment seems to be totally trashed from multiple attempts to set it up in different ways. The guys who have been helping you are becoming frustrated because, with each step in the debugging process, you are taking many steps, and continuing to confuse the situation. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG6CXw9CaO5/Lv0PARAnpMAKCZwPfSE58n0r0ZVvX5jAnk/Bm8ogCeOkK7 2QD3v/qhmbc/GX/RauXvIHI= =Msg/ -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
Caldarale, Charles R wrote: >> From: Pid [mailto:[EMAIL PROTECTED] >> Subject: Re: beginer question abt JSP with Tomcat >> >> You may not need to set JAVA_HOME in this case, and can probably >> comment the references to it out, in your 'profile' file. > > The Tomcat startup scripts require either JAVA_HOME or JRE_HOME to be > set; can't get away with not setting one of them. To be more precise, you may not need to *manually* set JRE_HOME. My OSX install didn't require it to be configured, neither is it available as a shell variable. >> desktop:~ pid$ echo $JRE_HOME desktop:~ pid$ << None-the-less, it *is* there: >> desktop:~ pid$ /Users/Shared/Tomcat6/bin/startup.sh Using CATALINA_BASE: /Users/Shared/Tomcat6 Using CATALINA_HOME: /Users/Shared/Tomcat6 Using CATALINA_TMPDIR: /Users/Shared/Tomcat6/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home desktop:~ pid$ << Some OSX magic or other. p > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you > received this in error, please contact the sender and delete the e-mail > and its attachments from all computers. > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
On 9/12/07, Pid <[EMAIL PROTECTED]> wrote: > To be more precise, you may not need to *manually* set JRE_HOME. > My OSX install didn't require it to be configured, neither is it > available as a shell variable. Interesting. I'm so used to manually setting it that it's automatic :-) So, if the OP reboots to get a clean environment (and has nothing setting JAVA/JRE_HOME in any profile/bashrc/whatever config files) -- in theory all that need be done on OS X is setting CATALINA_HOME? -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: beginer question abt JSP with Tomcat
are your paths set correctly now? -Original Message- From: minky arora [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 12, 2007 11:17 AM To: Tomcat Users List Subject: Re: beginer question abt JSP with Tomcat OK..I followed all the steps..All well..but JSP is not running...Foll are the log >From Localhost: Sep 12, 2007 10:19:15 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Sep 12, 2007 10:19:15 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Sep 12, 2007 10:55:12 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Sep 12, 2007 10:55:12 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Sep 12, 2007 10:55:13 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextDestroyed() Sep 12, 2007 10:55:13 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextDestroyed() Sep 12, 2007 11:13:05 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextDestroyed() Sep 12, 2007 11:13:05 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextDestroyed() Sep 12, 2007 11:13:16 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Sep 12, 2007 11:13:16 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Sep 12, 2007 11:27:15 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Sep 12, 2007 11:27:15 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Sep 12, 2007 11:27:16 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextDestroyed() Sep 12, 2007 11:27:16 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextDestroyed() >From Catalina Sep 12, 2007 10:19:14 AM org.apache.catalina.core.AprLifecycleListener init INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java Sep 12, 2007 10:19:14 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Sep 12, 2007 10:19:14 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1144 ms Sep 12, 2007 10:19:14 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Sep 12, 2007 10:19:14 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.14 Sep 12, 2007 10:19:16 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Sep 12, 2007 10:19:16 AM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Sep 12, 2007 10:19:16 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/29 config=null Sep 12, 2007 10:19:16 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 1594 ms Sep 12, 2007 10:55:12 AM org.apache.catalina.core.AprLifecycleListener init INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java Sep 12, 2007 10:55:12 AM org.apache.coyote.http11.Http11Protocol init SEVERE: Error initializing endpoint java.net.BindException: Address already in use:8080 at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:501) at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:177) at org.apache.catalina.connector.Connector.initialize(Connector.java:1059) at org.apache.catalina.core.StandardService.initialize(StandardService.java:677) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792) at org.apache.catalina.startup.Catalina.load(Catalina.java:518) at org.apache.catalina.startup.Catalina.load(Catalina.java:538) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412) Sep 12, 2007 10:55:12 AM org.apache.catalina.startup.Catalina load SEVERE: Catalina.start LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 at org.apache.catalina.connector.Connector.initialize(Connector.java:1061)
Re: beginer question abt JSP with Tomcat
I am not sure as its the same problem still.Tomcat is running on Localhost::8080.but JSP is not. Sometimes, I get the whole path echoed for JAVA_HOME as well as CATALINA_HOME; other time it doesnt echo anything.I guess thats ok looking at other messages in this thread.But I cannot figure out why JSP is not running. On 9/12/07, Propes, Barry L <[EMAIL PROTECTED]> wrote: > are your paths set correctly now? > > -Original Message- > From: minky arora [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 12, 2007 11:17 AM > To: Tomcat Users List > Subject: Re: beginer question abt JSP with Tomcat > > > OK..I followed all the steps..All well..but JSP is not running...Foll > are the log > > From Localhost: > Sep 12, 2007 10:19:15 AM org.apache.catalina.core.ApplicationContext log > INFO: ContextListener: contextInitialized() > Sep 12, 2007 10:19:15 AM org.apache.catalina.core.ApplicationContext log > INFO: SessionListener: contextInitialized() > Sep 12, 2007 10:55:12 AM org.apache.catalina.core.ApplicationContext log > INFO: ContextListener: contextInitialized() > Sep 12, 2007 10:55:12 AM org.apache.catalina.core.ApplicationContext log > INFO: SessionListener: contextInitialized() > Sep 12, 2007 10:55:13 AM org.apache.catalina.core.ApplicationContext log > INFO: SessionListener: contextDestroyed() > Sep 12, 2007 10:55:13 AM org.apache.catalina.core.ApplicationContext log > INFO: ContextListener: contextDestroyed() > Sep 12, 2007 11:13:05 AM org.apache.catalina.core.ApplicationContext log > INFO: SessionListener: contextDestroyed() > Sep 12, 2007 11:13:05 AM org.apache.catalina.core.ApplicationContext log > INFO: ContextListener: contextDestroyed() > Sep 12, 2007 11:13:16 AM org.apache.catalina.core.ApplicationContext log > INFO: ContextListener: contextInitialized() > Sep 12, 2007 11:13:16 AM org.apache.catalina.core.ApplicationContext log > INFO: SessionListener: contextInitialized() > Sep 12, 2007 11:27:15 AM org.apache.catalina.core.ApplicationContext log > INFO: ContextListener: contextInitialized() > Sep 12, 2007 11:27:15 AM org.apache.catalina.core.ApplicationContext log > INFO: SessionListener: contextInitialized() > Sep 12, 2007 11:27:16 AM org.apache.catalina.core.ApplicationContext log > INFO: SessionListener: contextDestroyed() > Sep 12, 2007 11:27:16 AM org.apache.catalina.core.ApplicationContext log > INFO: ContextListener: contextDestroyed() > > > From Catalina > > Sep 12, 2007 10:19:14 AM org.apache.catalina.core.AprLifecycleListener init > INFO: The Apache Tomcat Native library which allows optimal > performance in production environments was not found on the > java.library.path: > .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java > Sep 12, 2007 10:19:14 AM org.apache.coyote.http11.Http11Protocol init > INFO: Initializing Coyote HTTP/1.1 on http-8080 > Sep 12, 2007 10:19:14 AM org.apache.catalina.startup.Catalina load > INFO: Initialization processed in 1144 ms > Sep 12, 2007 10:19:14 AM org.apache.catalina.core.StandardService start > INFO: Starting service Catalina > Sep 12, 2007 10:19:14 AM org.apache.catalina.core.StandardEngine start > INFO: Starting Servlet Engine: Apache Tomcat/6.0.14 > Sep 12, 2007 10:19:16 AM org.apache.coyote.http11.Http11Protocol start > INFO: Starting Coyote HTTP/1.1 on http-8080 > Sep 12, 2007 10:19:16 AM org.apache.jk.common.ChannelSocket init > INFO: JK: ajp13 listening on /0.0.0.0:8009 > Sep 12, 2007 10:19:16 AM org.apache.jk.server.JkMain start > INFO: Jk running ID=0 time=0/29 config=null > Sep 12, 2007 10:19:16 AM org.apache.catalina.startup.Catalina start > INFO: Server startup in 1594 ms > Sep 12, 2007 10:55:12 AM org.apache.catalina.core.AprLifecycleListener init > INFO: The Apache Tomcat Native library which allows optimal > performance in production environments was not found on the > java.library.path: > .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java > Sep 12, 2007 10:55:12 AM org.apache.coyote.http11.Http11Protocol init > SEVERE: Error initializing endpoint > java.net.BindException: Address already in use:8080 > at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:501) > at > org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:177) > at > org.apache.catalina.connector.Connector.initialize(Connector.java:1059) > at > org.apache.catalina.core.StandardService.initialize(StandardService.java:677) > at > org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792) > at org.apache.catalina.startup.Catalina.load(Catalina.java:518) > at org.apache.catalina.startup.Ca
Re: beginer question abt JSP with Tomcat
On 9/12/07, minky arora <[EMAIL PROTECTED]> wrote: > I am not sure as its the same problem still.Tomcat is running on > Localhost::8080.but JSP is not. What do you mean by that? Pick one of the example JSPs and send us the URL you tried, describe what happened, and send the relevant part of the log output. -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
I am trying to run few example scripts that come with Tomcat.. The URL is http://localhost:8080/examples/jsp/dates/dates.jsp safari shows the message: Safari can't open the page "http://localhost:8080/examples/jsp/dates/dates.jsp"; because it could not connect to the server "localhost". The log file is as follows: * at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:659) Sep 11, 2007 6:15:24 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 Sep 11, 2007 6:15:24 PM org.apache.catalina.connector.Connector stop SEVERE: Coyote connector has not been started Sep 11, 2007 6:25:06 PM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Sep 11, 2007 6:25:07 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Sep 11, 2007 6:25:07 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 * On 9/12/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > On 9/12/07, minky arora <[EMAIL PROTECTED]> wrote: > > I am not sure as its the same problem still.Tomcat is running on > > Localhost::8080.but JSP is not. > > What do you mean by that? > > Pick one of the example JSPs and send us the URL you tried, describe > what happened, and send the relevant part of the log output. > > -- > Hassan Schroeder [EMAIL PROTECTED] > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: beginer question abt JSP with Tomcat
> From: minky arora [mailto:[EMAIL PROTECTED] > Subject: Re: beginer question abt JSP with Tomcat > > Safari can't open the page > "http://localhost:8080/examples/jsp/dates/dates.jsp"; because it could > not connect to the server "localhost". We already gave you the answer for this problem: you don't have an entry for "localhost" in your hosts file. If you can't figure out where that is, just use 127.0.0.1 instead. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
I did...there IS an entry...sorry forgot to mention that.it is there in hosts file.And I also checked with the loopback address, same issue there..."afari can't open the page "http://127.0.0.1/examples/jsp/dates/dates.jsp"; because it could not connect to the server "127.0.0.1". On 9/12/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > From: minky arora [mailto:[EMAIL PROTECTED] > > Subject: Re: beginer question abt JSP with Tomcat > > > > Safari can't open the page > > "http://localhost:8080/examples/jsp/dates/dates.jsp"; because it could > > not connect to the server "localhost". > > We already gave you the answer for this problem: you don't have an entry > for "localhost" in your hosts file. If you can't figure out where that > is, just use 127.0.0.1 instead. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you > received this in error, please contact the sender and delete the e-mail > and its attachments from all computers. > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
On 9/12/07, minky arora <[EMAIL PROTECTED]> wrote: > safari shows the message: > Safari can't open the page > "http://localhost:8080/examples/jsp/dates/dates.jsp"; because it could > not connect to the server "localhost". > > The log file is as follows: > * > > at > org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:659) > Sep 11, 2007 6:15:24 PM org.apache.coyote.http11.Http11Protocol destroy > INFO: Stopping Coyote HTTP/1.1 on http-8080 > Sep 11, 2007 6:15:24 PM org.apache.catalina.connector.Connector stop > SEVERE: Coyote connector has not been started > Sep 11, 2007 6:25:06 PM org.apache.coyote.http11.Http11Protocol pause > INFO: Pausing Coyote HTTP/1.1 on http-8080 > Sep 11, 2007 6:25:07 PM org.apache.catalina.core.StandardService stop > INFO: Stopping service Catalina > Sep 11, 2007 6:25:07 PM org.apache.coyote.http11.Http11Protocol destroy > INFO: Stopping Coyote HTTP/1.1 on http-8080 You keep insisting that "Tomcat is running" and then send a log file that clearly shows *it is not*. What do you see that makes you think it's running??? -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
the home page opens at http://localhost:8080/ I am guessing that this means that Tomcat is running, as per wat I read . On 9/12/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > On 9/12/07, minky arora <[EMAIL PROTECTED]> wrote: > > > safari shows the message: > > Safari can't open the page > > "http://localhost:8080/examples/jsp/dates/dates.jsp"; because it could > > not connect to the server "localhost". > > > > The log file is as follows: > > * > > > > at > > org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:659) > > Sep 11, 2007 6:15:24 PM org.apache.coyote.http11.Http11Protocol destroy > > INFO: Stopping Coyote HTTP/1.1 on http-8080 > > Sep 11, 2007 6:15:24 PM org.apache.catalina.connector.Connector stop > > SEVERE: Coyote connector has not been started > > Sep 11, 2007 6:25:06 PM org.apache.coyote.http11.Http11Protocol pause > > INFO: Pausing Coyote HTTP/1.1 on http-8080 > > Sep 11, 2007 6:25:07 PM org.apache.catalina.core.StandardService stop > > INFO: Stopping service Catalina > > Sep 11, 2007 6:25:07 PM org.apache.coyote.http11.Http11Protocol destroy > > INFO: Stopping Coyote HTTP/1.1 on http-8080 > > You keep insisting that "Tomcat is running" and then send a log file > that clearly shows *it is not*. What do you see that makes you think > it's running??? > > -- > Hassan Schroeder [EMAIL PROTECTED] > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: beginer question abt JSP with Tomcat
> From: minky arora [mailto:[EMAIL PROTECTED] > Subject: Re: beginer question abt JSP with Tomcat > > I did...there IS an entry...sorry forgot to mention that.it is there > in hosts file.And I also checked with the loopback address, same issue > there..."afari can't open the page > "http://127.0.0.1/examples/jsp/dates/dates.jsp"; because it could not > connect to the server "127.0.0.1". I wouldn't expect that to work - you left out the port number. Also, the correct URL for the JSP date example is: http://127.0.0.1:8080/examples/jsp/dates/date.jsp You have an extra "s" in yours. Precision counts. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
On 9/12/07, minky arora <[EMAIL PROTECTED]> wrote: > the home page opens at http://localhost:8080/ That just doesn't jibe with this: > > > Sep 11, 2007 6:15:24 PM org.apache.catalina.connector.Connector stop > > > SEVERE: Coyote connector has not been started Please stop Tomcat, clear your logs completely, start Tomcat and go to one JSP page and post *the entire log*. -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
SO, when i shutdown tomcat, using $CATALINA_HOME/bin/shutdown.sh it says no such file or dir... and if I do ./shutdown.sh, then I get the foloowing. Using CATALINA_BASE: /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14 Using CATALINA_HOME: /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14 Using CATALINA_TMPDIR: /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home Sep 13, 2007 10:09:22 AM org.apache.catalina.startup.Catalina stopServer SEVERE: Catalina.stop: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:430) at java.net.Socket.connect(Socket.java:516) at java.net.Socket.connect(Socket.java:466) at java.net.Socket.(Socket.java:366) at java.net.Socket.(Socket.java:179) at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:409) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:337) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415) -bash-2.05b$ Now I think I may have to diable APJ1.3 in my server.xml or get a lower version of JRE/JDK ..Is that right? This is what someone else suggested: The problem is that this version of Tomcat comes with commons-logging version 1.0.2 which does not have the Jdk14Logger. When you run in a 1.4 environment, it tries to use that logger by default. You can either upgrade your commons-logging package to 1.0.4 or point your JAVA_HOME to a 1.3 JRE. * On 9/12/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > From: minky arora [mailto:[EMAIL PROTECTED] > > Subject: Re: beginer question abt JSP with Tomcat > > > > I did...there IS an entry...sorry forgot to mention that.it is there > > in hosts file.And I also checked with the loopback address, same issue > > there..."afari can't open the page > > "http://127.0.0.1/examples/jsp/dates/dates.jsp"; because it could not > > connect to the server "127.0.0.1". > > I wouldn't expect that to work - you left out the port number. Also, > the correct URL for the JSP date example is: > http://127.0.0.1:8080/examples/jsp/dates/date.jsp > > You have an extra "s" in yours. Precision counts. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you > received this in error, please contact the sender and delete the e-mail > and its attachments from all computers. > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
On 9/13/07, minky arora <[EMAIL PROTECTED]> wrote: > SO, when i shutdown tomcat, using > $CATALINA_HOME/bin/shutdown.sh > > it says no such file or dir... then likely your CATALINA_HOME isn't set. > and if I do ./shutdown.sh, then I get the foloowing. > Sep 13, 2007 10:09:22 AM org.apache.catalina.startup.Catalina stopServer > SEVERE: Catalina.stop: > java.net.ConnectException: Connection refused ...which means Tomcat wasn't running to start with. > > > Now I think I may have to diable APJ1.3 in my server.xml or get a > lower version of JRE/JDK ..Is that right? No. No. No. No. Utterly irrelevant. I've said this more than once: we need to see one complete log output, from initial startup to "failure" when you try to load a JSP. -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: beginer question abt JSP with Tomcat
> From: minky arora [mailto:[EMAIL PROTECTED] > Subject: Re: beginer question abt JSP with Tomcat > > SO, when i shutdown tomcat, using > $CATALINA_HOME/bin/shutdown.sh > > it says no such file or dir... Because you don't have CATALINA_HOME set (nor do you need to). > and if I do ./shutdown.sh, then I get the foloowing. > SEVERE: Catalina.stop: > java.net.ConnectException: Connection refused That's because you don't have a Tomcat running to shut down. > Now I think I may have to diable APJ1.3 in my server.xml or get a > lower version of JRE/JDK ..Is that right? This has nothing to do with AJP - why did you suddenly start talking about that? Tomcat 6 requires a JRE/JDK of 1.5 or later - end of story. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Minky, minky arora wrote: > SO, when i shutdown tomcat, using > $CATALINA_HOME/bin/shutdown.sh > > it says no such file or dir... Really? Where? I don't see such a message in your attached console output. I'm guessing that $CATALINA_HOME is not set to anything, or is not set properly. > and if I do ./shutdown.sh, then I get the foloowing. > Using CATALINA_BASE: /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14 > Using CATALINA_HOME: /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14 > Using CATALINA_TMPDIR: > /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14/temp > Using JRE_HOME: > /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home > Sep 13, 2007 10:09:22 AM org.apache.catalina.startup.Catalina stopServer > SEVERE: Catalina.stop: > java.net.ConnectException: Connection refused This means that Tomcat is not running, or has been improperly configured. > Now I think I may have to diable APJ1.3 in my server.xml or get a > lower version of JRE/JDK ..Is that right? No. Don't change anything more than you have to. Forget ajp13, and keep the same JVM you're been trying to use. I'm sure that your Mac won't work properly now that you've gutted it's JVM several times over. > This is what someone else suggested: > The problem is that this version of Tomcat comes with commons-logging > version 1.0.2 which does not have the Jdk14Logger. When you run in a > 1.4 environment, it tries to use that logger by default. > > You can either upgrade your commons-logging package to 1.0.4 or point > your JAVA_HOME to a 1.3 JRE. Ignore all this crap. Tomcat works out of the box. Once it is working, you have all kinds of logging options if you want to change things. This is not the problem. Do not change your logger. Do not change anything else. Stop trying to create more problems. Since Tomcat is not running, do the following: $ rm /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14/logs/* $ /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14/bin/startup.sh Wait for a minute or two and then attach he entire contents of every single file in the /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14/logs directory to your next post. Please indicate which contents belong to which files. Remember that attachments do not work on the list, and that you need to copy-and-paste. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG6Ujs9CaO5/Lv0PARAvLpAKCHNljuC+Ygl7WAnBpd4ANHJqSOIACfcAdK oxAOeoEKyjsKRBb0v8sLubc= =DPcE -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
AS per christopher's intructions: Catalina.out Sep 13, 2007 11:10:03 AM org.apache.catalina.core.AprLifecycleListener init INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java Sep 13, 2007 11:10:03 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Sep 13, 2007 11:10:03 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 600 ms Sep 13, 2007 11:10:04 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Sep 13, 2007 11:10:04 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.14 Sep 13, 2007 11:10:05 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Sep 13, 2007 11:10:05 AM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Sep 13, 2007 11:10:05 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/31 config=null Sep 13, 2007 11:10:05 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 1593 ms catalina.2007-09-13.log Sep 13, 2007 11:10:03 AM org.apache.catalina.core.AprLifecycleListener init INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java Sep 13, 2007 11:10:03 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Sep 13, 2007 11:10:03 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 600 ms Sep 13, 2007 11:10:04 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Sep 13, 2007 11:10:04 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.14 Sep 13, 2007 11:10:05 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Sep 13, 2007 11:10:05 AM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Sep 13, 2007 11:10:05 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/31 config=null Sep 13, 2007 11:10:05 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 1593 ms *** localhost.2007-09-13.log Sep 13, 2007 11:10:05 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Sep 13, 2007 11:10:05 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() ** On 9/13/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Minky, > > minky arora wrote: > > SO, when i shutdown tomcat, using > > $CATALINA_HOME/bin/shutdown.sh > > > > it says no such file or dir... > > Really? Where? I don't see such a message in your attached console > output. I'm guessing that $CATALINA_HOME is not set to anything, or is > not set properly. > > > and if I do ./shutdown.sh, then I get the foloowing. > > Using CATALINA_BASE: /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14 > > Using CATALINA_HOME: /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14 > > Using CATALINA_TMPDIR: > > /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14/temp > > Using JRE_HOME: > > /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home > > Sep 13, 2007 10:09:22 AM org.apache.catalina.startup.Catalina stopServer > > SEVERE: Catalina.stop: > > java.net.ConnectException: Connection refused > > This means that Tomcat is not running, or has been improperly configured. > > > Now I think I may have to diable APJ1.3 in my server.xml or get a > > lower version of JRE/JDK ..Is that right? > > No. Don't change anything more than you have to. Forget ajp13, and keep > the same JVM you're been trying to use. I'm sure that your Mac won't > work properly now that you've gutted it's JVM several times over. > > > This is what someone else suggested: > > The problem is that this version of Tomcat comes with commons-logging > > version 1.0.2 which does not have the Jdk14Logger. When you run in a > > 1.4 environment, it tries to use that logger by default. > > > > You can either upgrade your commons-logging package to 1.0.4 or point > > your JAVA_HOME to a 1.3 JRE. > > Ignore all this crap. Tomcat works out of the box. Once it is working, > you have all kinds of logging options if you want to change things. This > is not the problem. Do not change your logger. Do not change anything > else. Stop trying to create more problems. > > Since Tomcat is not running, do the following: > > $ rm /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14/logs/* > $ /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14/bin/startup.sh > > Wait for a minute or two and then attach he entire contents of ever
Re: beginer question abt JSP with Tomcat
On 9/11/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > > ?? On my Mac (OS X.4.10) $JAVA_HOME is: > > /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0 > Hi everyone. I don't mean to cloud the discussion with a possible non-issue, but for fun, I just tried defining my JAVA_HOME as you suggested, tried starting Tomcat and it showed the normal startup 'messages' canker:~ brian$ $CATALINA_HOME/bin/startup.sh Using CATALINA_BASE: /Users/brian/apache-tomcat-5.5.23 Using CATALINA_HOME: /Users/brian/apache-tomcat-5.5.23 Using CATALINA_TMPDIR: /Users/brian/apache-tomcat-5.5.23/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0 But then if I do a ps -A | grep -i java (or a netstat), I don't see Tomcat running. If I do export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home (notice the Home on the end) Then when I start Tomcat, and do a ps -A or netstat, I do see it running. I believe the erroneous JAVA_HOME is causing this muted error. -- brian - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
On 9/13/07, minky arora <[EMAIL PROTECTED]> wrote: > Sep 13, 2007 11:10:05 AM org.apache.coyote.http11.Http11Protocol start > INFO: Starting Coyote HTTP/1.1 on http-8080 > Sep 13, 2007 11:10:05 AM org.apache.jk.common.ChannelSocket init > INFO: JK: ajp13 listening on /0.0.0.0:8009 > Sep 13, 2007 11:10:05 AM org.apache.jk.server.JkMain start > INFO: Jk running ID=0 time=0/31 config=null > Sep 13, 2007 11:10:05 AM org.apache.catalina.startup.Catalina start > INFO: Server startup in 1593 ms Great. Startup confirmed, no errors. So where's the failed attempt to access a JSP page? -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
Oops, I stand corrected, as I see further along in the thread that JAVA_HOME is pointing to where I suggested. See I knew I shouldn't have jumped in here! :) -- brian On 9/13/07, Brian Munroe <[EMAIL PROTECTED]> wrote: > On 9/11/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > > > > > ?? On my Mac (OS X.4.10) $JAVA_HOME is: > > > > /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0 > > > > Hi everyone. > > I don't mean to cloud the discussion with a possible non-issue, but > for fun, I just tried defining my JAVA_HOME as you suggested, tried > starting Tomcat and it showed the normal startup 'messages' > > canker:~ brian$ $CATALINA_HOME/bin/startup.sh > Using CATALINA_BASE: /Users/brian/apache-tomcat-5.5.23 > Using CATALINA_HOME: /Users/brian/apache-tomcat-5.5.23 > Using CATALINA_TMPDIR: /Users/brian/apache-tomcat-5.5.23/temp > Using JRE_HOME: > /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0 > > But then if I do a ps -A | grep -i java (or a netstat), I don't see > Tomcat running. > > If I do > > export > JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home > > (notice the Home on the end) > > Then when I start Tomcat, and do a ps -A or netstat, I do see it > running. I believe the erroneous JAVA_HOME is causing this muted > error. > > -- brian > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Minky, minky arora wrote: > AS per christopher's intructions: Excellent. Everything looks good, and Tomcat appears to be running. These lines: > Sep 13, 2007 11:10:05 AM org.apache.coyote.http11.Http11Protocol start > INFO: Starting Coyote HTTP/1.1 on http-8080 > Sep 13, 2007 11:10:05 AM org.apache.jk.common.ChannelSocket init > INFO: JK: ajp13 listening on /0.0.0.0:8009 indicate that Tomcat's HTTP request processor is listening on port 8080 /and/ the AJP13 request processor is listening on port 8009. You can ignore the AJP13 stuff for the time being because you are using Tomcat directly (and not through a 3rd-party web server). - From Safari, can you browse to http://127.0.0.1:8080/index.jsp? What happens? If this works, then both Catalina (the app server) and Jasper (the JSP compiler/runner) are both working. /index.jsp is served from the ROOT webapp, which you can find here: /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14/webapps/ROOT If you look in /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14/webapps you should be able to see the webapps that are available to you. For instance, in my TC 5.5 installation, I have the following files and directories: ROOT balancer jsp-examples servlets-examples tomcat-docs webdav You might have different ones since you are using Tomcat 6.0. Please show us what files and directories you have in your webapps directory, just to make sure that you /have/ the examples and stuff installed. I didn't see any messages about applications being deployed in your log file, so I'm a little suspicious of that. Perhaps TC 6.0 doesn't do this, anymore. If I wanted to access the JSP examples, I'd browse to: http://127.0.0.1:8080/jsp-examples/index.html and start clicking around to see the examples. Please remember that, if you don't use the port number, this /will not work/. Without the port number, Safari will attempt to contact port 80, which probably has nothing running on it. Try looking at the examples, now, and let us know what happens. If something does not work, please be as descriptive as possible. Safari might give you an error (like "connection refused"). If you get a message like this, please refer back to the log files I mentioned in my previous post and see if anything "bad" has been added to them (such as exception stack traces, or entries indicating that Tomcat has stopped, or that contexts have been undeployed, or whatever). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG6VZj9CaO5/Lv0PARArvFAKCmDzdIdh11XtWzY3ebsVTTuqdTYACfScyq MF5R2diO3CV/8uSOdEaKtz4= =qd2i -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
GREAT NEWSS... the JSP date example works..i have only tested the date exampls soo far aand after the HUGEE help that I got from everyone, I am thrilled.Thanks a lot evryone..at this point it is working,..I hope it stays that way.. i thing i DID change though. I changed my JAVA_HOME to /usr/bin/java... I still need to try out more examples..now few from my hard drive as well as make sure the shutdown works.. Will keep u all posted with my progress. Thanks sooo soo much ... On 9/13/07, Brian Munroe <[EMAIL PROTECTED]> wrote: > Oops, I stand corrected, as I see further along in the thread that > JAVA_HOME is pointing to where I suggested. > > See I knew I shouldn't have jumped in here! :) > > -- brian > > On 9/13/07, Brian Munroe <[EMAIL PROTECTED]> wrote: > > On 9/11/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > > > > > > > > ?? On my Mac (OS X.4.10) $JAVA_HOME is: > > > > > > /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0 > > > > > > > Hi everyone. > > > > I don't mean to cloud the discussion with a possible non-issue, but > > for fun, I just tried defining my JAVA_HOME as you suggested, tried > > starting Tomcat and it showed the normal startup 'messages' > > > > canker:~ brian$ $CATALINA_HOME/bin/startup.sh > > Using CATALINA_BASE: /Users/brian/apache-tomcat-5.5.23 > > Using CATALINA_HOME: /Users/brian/apache-tomcat-5.5.23 > > Using CATALINA_TMPDIR: /Users/brian/apache-tomcat-5.5.23/temp > > Using JRE_HOME: > > /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0 > > > > But then if I do a ps -A | grep -i java (or a netstat), I don't see > > Tomcat running. > > > > If I do > > > > export > > JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home > > > > (notice the Home on the end) > > > > Then when I start Tomcat, and do a ps -A or netstat, I do see it > > running. I believe the erroneous JAVA_HOME is causing this muted > > error. > > > > -- brian > > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
Hey Chris, Yes that Index.JSP works for me...it takes me to the home page of Tomcat. Also, just to let u knw wat I have in my Webapps: I see ROOT, examplesdocs,manager,host-manager Under examples i see a folder called JSP, another called Servelets and one index.html file and another folder called WEB_INF.. Thanks a lot for your email,,,it was informative. On 9/13/07, minky arora <[EMAIL PROTECTED]> wrote: > GREAT NEWSS... > > > the JSP date example works..i have only tested the date exampls soo > far aand after the HUGEE help that I got from everyone, I am > thrilled.Thanks a lot evryone..at this point it is working,..I hope it > stays that way.. > > i thing i DID change though. > > I changed my JAVA_HOME to /usr/bin/java... > > I still need to try out more examples..now few from my hard drive as > well as make sure the shutdown works.. > > Will keep u all posted with my progress. > > Thanks sooo soo much ... > > On 9/13/07, Brian Munroe <[EMAIL PROTECTED]> wrote: > > Oops, I stand corrected, as I see further along in the thread that > > JAVA_HOME is pointing to where I suggested. > > > > See I knew I shouldn't have jumped in here! :) > > > > -- brian > > > > On 9/13/07, Brian Munroe <[EMAIL PROTECTED]> wrote: > > > On 9/11/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > ?? On my Mac (OS X.4.10) $JAVA_HOME is: > > > > > > > > /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0 > > > > > > > > > > Hi everyone. > > > > > > I don't mean to cloud the discussion with a possible non-issue, but > > > for fun, I just tried defining my JAVA_HOME as you suggested, tried > > > starting Tomcat and it showed the normal startup 'messages' > > > > > > canker:~ brian$ $CATALINA_HOME/bin/startup.sh > > > Using CATALINA_BASE: /Users/brian/apache-tomcat-5.5.23 > > > Using CATALINA_HOME: /Users/brian/apache-tomcat-5.5.23 > > > Using CATALINA_TMPDIR: /Users/brian/apache-tomcat-5.5.23/temp > > > Using JRE_HOME: > > > /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0 > > > > > > But then if I do a ps -A | grep -i java (or a netstat), I don't see > > > Tomcat running. > > > > > > If I do > > > > > > export > > > JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home > > > > > > (notice the Home on the end) > > > > > > Then when I start Tomcat, and do a ps -A or netstat, I do see it > > > running. I believe the erroneous JAVA_HOME is causing this muted > > > error. > > > > > > -- brian > > > > > > > - > > To start a new topic, e-mail: users@tomcat.apache.org > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
OK..as expected , I may need little more help. I am trying to shutdown Tomcat and am getting the foll: *** RNAi:/users/meenaksharora/java/tomcat/apache-tomcat-6.0.14/bin meenaksharora$ ./shutdown.sh Using CATALINA_BASE: /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14 Using CATALINA_HOME: /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14 Using CATALINA_TMPDIR: /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14/temp Using JRE_HOME: /usr/bin/java /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14/bin/catalina.sh: line 295: /usr/bin/java/bin/java: Not a directory the following is my profile file: *** PATH="/bin:/sbin:/usr/bin:/usr/sbin"TH="/bin:/sbin:/usr/bin:/usr/sbin" export PATH JAVA_HOME="/bin/java" export JAVA_HOME if [ "${BASH-no}" != "no" ]; then [ -r /etc/bashrc ] && . /etc/bashrc fi ** If I type whereis java at the prompt, I get /usr/bin/java I KNOW I am going wrong with PATHs but wats the solution here? On 9/13/07, minky arora <[EMAIL PROTECTED]> wrote: > Hey Chris, > > Yes that Index.JSP works for me...it takes me to the home page of Tomcat. > > Also, just to let u knw wat I have in my Webapps: > > I see ROOT, examplesdocs,manager,host-manager > Under examples i see a folder called JSP, another called Servelets and > one index.html file and another folder called WEB_INF.. > > Thanks a lot for your email,,,it was informative. > > On 9/13/07, minky arora <[EMAIL PROTECTED]> wrote: > > GREAT NEWSS... > > > > > > the JSP date example works..i have only tested the date exampls soo > > far aand after the HUGEE help that I got from everyone, I am > > thrilled.Thanks a lot evryone..at this point it is working,..I hope it > > stays that way.. > > > > i thing i DID change though. > > > > I changed my JAVA_HOME to /usr/bin/java... > > > > I still need to try out more examples..now few from my hard drive as > > well as make sure the shutdown works.. > > > > Will keep u all posted with my progress. > > > > Thanks sooo soo much ... > > > > On 9/13/07, Brian Munroe <[EMAIL PROTECTED]> wrote: > > > Oops, I stand corrected, as I see further along in the thread that > > > JAVA_HOME is pointing to where I suggested. > > > > > > See I knew I shouldn't have jumped in here! :) > > > > > > -- brian > > > > > > On 9/13/07, Brian Munroe <[EMAIL PROTECTED]> wrote: > > > > On 9/11/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > ?? On my Mac (OS X.4.10) $JAVA_HOME is: > > > > > > > > > > /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0 > > > > > > > > > > > > > Hi everyone. > > > > > > > > I don't mean to cloud the discussion with a possible non-issue, but > > > > for fun, I just tried defining my JAVA_HOME as you suggested, tried > > > > starting Tomcat and it showed the normal startup 'messages' > > > > > > > > canker:~ brian$ $CATALINA_HOME/bin/startup.sh > > > > Using CATALINA_BASE: /Users/brian/apache-tomcat-5.5.23 > > > > Using CATALINA_HOME: /Users/brian/apache-tomcat-5.5.23 > > > > Using CATALINA_TMPDIR: /Users/brian/apache-tomcat-5.5.23/temp > > > > Using JRE_HOME: > > > > /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0 > > > > > > > > But then if I do a ps -A | grep -i java (or a netstat), I don't see > > > > Tomcat running. > > > > > > > > If I do > > > > > > > > export > > > > JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home > > > > > > > > (notice the Home on the end) > > > > > > > > Then when I start Tomcat, and do a ps -A or netstat, I do see it > > > > running. I believe the erroneous JAVA_HOME is causing this muted > > > > error. > > > > > > > > -- brian > > > > > > > > > > - > > > To start a new topic, e-mail: users@tomcat.apache.org > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
AND I also tried running my own JSP example file and this is wat I get: org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsf/html cannot be resolved in either web.xml or the jar files deployed with this application org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116) org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:315) org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:148) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:420) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:476) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1426) org.apache.jasper.compiler.Parser.parse(Parser.java:133) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216) org.apache.jasper.compiler.ParserController.parse(ParserController.java:103) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167) org.apache.jasper.compiler.Compiler.compile(Compiler.java:306) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) * ANY ideas? On 9/14/07, minky arora <[EMAIL PROTECTED]> wrote: > OK..as expected , I may need little more help. > > I am trying to shutdown Tomcat and am getting the foll: > *** > RNAi:/users/meenaksharora/java/tomcat/apache-tomcat-6.0.14/bin > meenaksharora$ ./shutdown.sh > Using CATALINA_BASE: /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14 > Using CATALINA_HOME: /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14 > Using CATALINA_TMPDIR: > /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14/temp > Using JRE_HOME: /usr/bin/java > /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14/bin/catalina.sh: > line 295: /usr/bin/java/bin/java: Not a directory > > the following is my profile file: > *** > PATH="/bin:/sbin:/usr/bin:/usr/sbin"TH="/bin:/sbin:/usr/bin:/usr/sbin" > export PATH > > > JAVA_HOME="/bin/java" > export JAVA_HOME > > if [ "${BASH-no}" != "no" ]; then > [ -r /etc/bashrc ] && . /etc/bashrc > fi > ** > If I type whereis java at the prompt, I get > /usr/bin/java > > > > > I KNOW I am going wrong with PATHs but wats the solution here? > > On 9/13/07, minky arora <[EMAIL PROTECTED]> wrote: > > Hey Chris, > > > > Yes that Index.JSP works for me...it takes me to the home page of Tomcat. > > > > Also, just to let u knw wat I have in my Webapps: > > > > I see ROOT, examplesdocs,manager,host-manager > > Under examples i see a folder called JSP, another called Servelets and > > one index.html file and another folder called WEB_INF.. > > > > Thanks a lot for your email,,,it was informative. > > > > On 9/13/07, minky arora <[EMAIL PROTECTED]> wrote: > > > GREAT NEWSS... > > > > > > > > > the JSP date example works..i have only tested the date exampls soo > > > far aand after the HUGEE help that I got from everyone, I am > > > thrilled.Thanks a lot evryone..at this point it is working,..I hope it > > > stays that way.. > > > > > > i thing i DID change though. > > > > > > I changed my JAVA_HOME to /usr/bin/java... > > > > > > I still need to try out more examples..now few from my hard drive as > > > well as make sure the shutdown works.. > > > > > > Will keep u all posted with my progress. > > > > > > Thanks sooo soo much ... > > > > > > On 9/13/07, Brian Munroe <[EMAIL PROTECTED]> wrote: > > > > Oops, I stand corrected, as I see further along in the thread that > > > > JAVA_HOME is pointing to where I suggested. > > > > > > > > See I knew I shouldn't have jumped in here! :) > > > > > > > > -- brian > > > > > > > > On 9/13/07, Brian Munroe <[EMAIL PROTECTED]> wrote: > > > > > On 9/11/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > > > ?? On my Mac (OS X.4.10) $JAVA_HOME is: > > > > > > > > > > > > /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0 > > > > > > > > > > > > > > > > Hi everyone. > > > > > > > > > > I don't mean to cloud the discussion with a possible non-issue, but > > > > > for fun, I just tried defining my JAVA_HOME as you suggested, tried > > > > > starting Tomcat and it showed the normal startup 'messages' > > > > > > > > > > canker:~ brian$ $CATALINA_HOME/b
Re: beginer question abt JSP with Tomcat
minky arora wrote: > OK..as expected , I may need little more help. > > I am trying to shutdown Tomcat and am getting the foll: > *** > RNAi:/users/meenaksharora/java/tomcat/apache-tomcat-6.0.14/bin > meenaksharora$ ./shutdown.sh > Using CATALINA_BASE: /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14 > Using CATALINA_HOME: /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14 > Using CATALINA_TMPDIR: > /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14/temp > Using JRE_HOME: /usr/bin/java > /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14/bin/catalina.sh: > line 295: /usr/bin/java/bin/java: Not a directory > > the following is my profile file: > *** > PATH="/bin:/sbin:/usr/bin:/usr/sbin"TH="/bin:/sbin:/usr/bin:/usr/sbin" > export PATH > > > JAVA_HOME="/bin/java" > export JAVA_HOME > > if [ "${BASH-no}" != "no" ]; then > [ -r /etc/bashrc ] && . /etc/bashrc > fi > ** > If I type whereis java at the prompt, I get > /usr/bin/java That's because on OS X the java binaries are symlinked into the /usr/bin directory. 'whereis' tells you where the java binary is, JAVA_HOME and JRE_HOME are installation directory locations, NOT the actual binary. The reason it doesn't work is that the scripts expect the installation directory to be set in JAVA_HOME, to which they append the local path to the binary. If you'd listened to the advice you'd already been given, you wouldn't have set the JAVA_HOME variable to this value. Option 1: Remove completely the JAVA_HOME environment variable. Option 2: Set JAVA_HOME to /Library/Java/Home Choose one or other of the above. p > I KNOW I am going wrong with PATHs but wats the solution here? > > On 9/13/07, minky arora <[EMAIL PROTECTED]> wrote: >> Hey Chris, >> >> Yes that Index.JSP works for me...it takes me to the home page of Tomcat. >> >> Also, just to let u knw wat I have in my Webapps: >> >> I see ROOT, examplesdocs,manager,host-manager >> Under examples i see a folder called JSP, another called Servelets and >> one index.html file and another folder called WEB_INF.. >> >> Thanks a lot for your email,,,it was informative. >> >> On 9/13/07, minky arora <[EMAIL PROTECTED]> wrote: >>> GREAT NEWSS... >>> >>> >>> the JSP date example works..i have only tested the date exampls soo >>> far aand after the HUGEE help that I got from everyone, I am >>> thrilled.Thanks a lot evryone..at this point it is working,..I hope it >>> stays that way.. >>> >>> i thing i DID change though. >>> >>> I changed my JAVA_HOME to /usr/bin/java... >>> >>> I still need to try out more examples..now few from my hard drive as >>> well as make sure the shutdown works.. >>> >>> Will keep u all posted with my progress. >>> >>> Thanks sooo soo much ... >>> >>> On 9/13/07, Brian Munroe <[EMAIL PROTECTED]> wrote: Oops, I stand corrected, as I see further along in the thread that JAVA_HOME is pointing to where I suggested. See I knew I shouldn't have jumped in here! :) -- brian On 9/13/07, Brian Munroe <[EMAIL PROTECTED]> wrote: > On 9/11/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > >> ?? On my Mac (OS X.4.10) $JAVA_HOME is: >> >> /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0 >> > Hi everyone. > > I don't mean to cloud the discussion with a possible non-issue, but > for fun, I just tried defining my JAVA_HOME as you suggested, tried > starting Tomcat and it showed the normal startup 'messages' > > canker:~ brian$ $CATALINA_HOME/bin/startup.sh > Using CATALINA_BASE: /Users/brian/apache-tomcat-5.5.23 > Using CATALINA_HOME: /Users/brian/apache-tomcat-5.5.23 > Using CATALINA_TMPDIR: /Users/brian/apache-tomcat-5.5.23/temp > Using JRE_HOME: > /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0 > > But then if I do a ps -A | grep -i java (or a netstat), I don't see > Tomcat running. > > If I do > > export > JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home > > (notice the Home on the end) > > Then when I start Tomcat, and do a ps -A or netstat, I do see it > running. I believe the erroneous JAVA_HOME is causing this muted > error. > > -- brian > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co
Re: beginer question abt JSP with Tomcat
minky arora wrote: > AND I also tried running my own JSP example file and this is wat I get: > org.apache.jasper.JasperException: The absolute uri: > http://java.sun.com/jsf/html cannot be resolved in either web.xml or > the jar files deployed with this application > > org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51) > > org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409) > > org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116) > > org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:315) > > org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:148) > org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:420) > org.apache.jasper.compiler.Parser.parseDirective(Parser.java:476) > org.apache.jasper.compiler.Parser.parseElements(Parser.java:1426) > org.apache.jasper.compiler.Parser.parse(Parser.java:133) > > org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216) > > org.apache.jasper.compiler.ParserController.parse(ParserController.java:103) > org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:306) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) > > org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566) > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > * > > ANY ideas? I have a few, the politest one is to ask if you have deployed all the correct jar files into /WEB-INF/lib and if there are any taglibs or other XML/config files that need to placed in other locations? p > On 9/14/07, minky arora <[EMAIL PROTECTED]> wrote: >> OK..as expected , I may need little more help. >> >> I am trying to shutdown Tomcat and am getting the foll: >> *** >> RNAi:/users/meenaksharora/java/tomcat/apache-tomcat-6.0.14/bin >> meenaksharora$ ./shutdown.sh >> Using CATALINA_BASE: /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14 >> Using CATALINA_HOME: /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14 >> Using CATALINA_TMPDIR: >> /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14/temp >> Using JRE_HOME: /usr/bin/java >> /users/meenaksharora/java/tomcat/apache-tomcat-6.0.14/bin/catalina.sh: >> line 295: /usr/bin/java/bin/java: Not a directory >> >> the following is my profile file: >> *** >> PATH="/bin:/sbin:/usr/bin:/usr/sbin"TH="/bin:/sbin:/usr/bin:/usr/sbin" >> export PATH >> >> >> JAVA_HOME="/bin/java" >> export JAVA_HOME >> >> if [ "${BASH-no}" != "no" ]; then >> [ -r /etc/bashrc ] && . /etc/bashrc >> fi >> ** >> If I type whereis java at the prompt, I get >> /usr/bin/java >> >> >> >> >> I KNOW I am going wrong with PATHs but wats the solution here? >> >> On 9/13/07, minky arora <[EMAIL PROTECTED]> wrote: >>> Hey Chris, >>> >>> Yes that Index.JSP works for me...it takes me to the home page of Tomcat. >>> >>> Also, just to let u knw wat I have in my Webapps: >>> >>> I see ROOT, examplesdocs,manager,host-manager >>> Under examples i see a folder called JSP, another called Servelets and >>> one index.html file and another folder called WEB_INF.. >>> >>> Thanks a lot for your email,,,it was informative. >>> >>> On 9/13/07, minky arora <[EMAIL PROTECTED]> wrote: GREAT NEWSS... the JSP date example works..i have only tested the date exampls soo far aand after the HUGEE help that I got from everyone, I am thrilled.Thanks a lot evryone..at this point it is working,..I hope it stays that way.. i thing i DID change though. I changed my JAVA_HOME to /usr/bin/java... I still need to try out more examples..now few from my hard drive as well as make sure the shutdown works.. Will keep u all posted with my progress. Thanks sooo soo much ... On 9/13/07, Brian Munroe <[EMAIL PROTECTED]> wrote: > Oops, I stand corrected, as I see further along in the thread that > JAVA_HOME is pointing to where I suggested. > > See I knew I shouldn't have jumped in here! :) > > -- brian > > On 9/13/07, Brian Munroe <[EMAIL PROTECTED]> wrote: >> On 9/11/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: >> >>> ?? On my Mac (OS X.4.10) $JAVA_HOME is: >>> >>> /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0 >>> >> Hi everyone. >> >> I don't mean to cloud the discussion with a possible non-iss
Re: beginer question abt JSP with Tomcat
Not without source code. What's your jsp example look like? --David minky arora wrote: AND I also tried running my own JSP example file and this is wat I get: org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsf/html cannot be resolved in either web.xml or the jar files deployed with this application org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116) org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:315) org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:148) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:420) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:476) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1426) org.apache.jasper.compiler.Parser.parse(Parser.java:133) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216) org.apache.jasper.compiler.ParserController.parse(ParserController.java:103) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167) org.apache.jasper.compiler.Compiler.compile(Compiler.java:306) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) * ANY ideas? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]