You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by minky arora <mi...@gmail.com> on 2007/09/11 21:06:25 UTC

beginer question abt JSP with Tomcat

Hi ALl.

I have installed Tomcat 6.0.14 on my MAC OSX.It is running Java version 1.5

I am not able to run the examples/dates/date.jsp files and the like.

SO far I have done EXPORT JAVA_HOME=/usr/bin/java

i am not sure what I need to do to get this going or rather wat all i
need to check, which PATH to change..

Please advise,
Thanks,
MInky

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by Pid <p...@pidster.com>.
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 <mi...@gmail.com> 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 <mi...@gmail.com> 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 <br...@gmail.com> 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 <br...@gmail.com> wrote:
>>>>> On 9/11/07, Hassan Schroeder <ha...@gmail.com> 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: users-unsubscribe@tomcat.apache.org
>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>
>>>>
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by David Smith <dn...@cornell.edu>.
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.<init>(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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by Pid <p...@pidster.com>.
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.<init>(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 <mi...@gmail.com> 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 <mi...@gmail.com> 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 <mi...@gmail.com> 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 <br...@gmail.com> 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 <br...@gmail.com> wrote:
>>>>>> On 9/11/07, Hassan Schroeder <ha...@gmail.com> 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: users-unsubscribe@tomcat.apache.org
>>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>>
>>>>>
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by minky arora <mi...@gmail.com>.
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.<init>(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 <mi...@gmail.com> 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 <mi...@gmail.com> 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 <mi...@gmail.com> 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 <br...@gmail.com> 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 <br...@gmail.com> wrote:
> > > > > On 9/11/07, Hassan Schroeder <ha...@gmail.com> 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: users-unsubscribe@tomcat.apache.org
> > > > For additional commands, e-mail: users-help@tomcat.apache.org
> > > >
> > > >
> > >
> >
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by minky arora <mi...@gmail.com>.
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 <mi...@gmail.com> 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 <mi...@gmail.com> 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 <br...@gmail.com> 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 <br...@gmail.com> wrote:
> > > > On 9/11/07, Hassan Schroeder <ha...@gmail.com> 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: users-unsubscribe@tomcat.apache.org
> > > For additional commands, e-mail: users-help@tomcat.apache.org
> > >
> > >
> >
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by minky arora <mi...@gmail.com>.
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 <mi...@gmail.com> 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 <br...@gmail.com> 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 <br...@gmail.com> wrote:
> > > On 9/11/07, Hassan Schroeder <ha...@gmail.com> 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: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by minky arora <mi...@gmail.com>.
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 <br...@gmail.com> 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 <br...@gmail.com> wrote:
> > On 9/11/07, Hassan Schroeder <ha...@gmail.com> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by Brian Munroe <br...@gmail.com>.
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 <br...@gmail.com> wrote:
> On 9/11/07, Hassan Schroeder <ha...@gmail.com> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by Brian Munroe <br...@gmail.com>.
On 9/11/07, Hassan Schroeder <ha...@gmail.com> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


having trouble using Tomcat API in my JUnit SOAP tests

Posted by Charlie Hitselberger <ch...@sightlinesystems.com>.
How do I get rid of the Thread and ContainerBackgroundProcessor objects associated with a StandardEngine after finishing a JUnit test, so several of them don't accumulate and hog all my machine's resources?

I'm testing out a SOAP service on several different platforms, so it seemed natural to automate it with JUnit.  I put the following code snippets in my Test class:

declaration:
		StandardEngine se = null;

then later... 

	@Before
	public void setUp() throws Exception {
		if (se == null) {
			se = new StandardEngine();
			FRTLJDBCRealm r = new FRTLJDBCRealm();
			r.setDriverName("org.hsqldb.jdbcDriver");
			r.setConnectionURL("jdbc:hsqldb:hsql://localhost");
			r.setUserTable("user");
			r.setUserNameCol("user_name");
			r.setUserCredCol("user_pass");
			r.setUserRoleTable("user");
			r.setRoleNameCol("role_name");
			r.setConnectionName("sa");
			r.setConnectionPassword("sXU7DMFjs8zr");
			se.setRealm(r);
			se.start();
		}
		... other stuff ...
	}


So this works pretty well, it connects me to the database and my JUnit test can do things with the database permissions of "someuser".

When the test completes, I want to tear it down.  I tried:

	@After
	public void tearDown() throws Exception {
		System.out.println("tearDown");
		se.destroy();
		se = null;
	}

but there is still a Thread running a ContainerBackgroundProcessor running in the background which prevents the garbage collector from throwing out my StandardEngine se object.  How can I just get rid of everything in the tearDown() method?  Or is there a better way?


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: beginer question abt JSP with Tomcat

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: minky arora [mailto:minky.arora@gmail.com] 
> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by Hassan Schroeder <ha...@gmail.com>.
On 9/12/07, minky arora <mi...@gmail.com> 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 ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by minky arora <mi...@gmail.com>.
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 <ha...@gmail.com> wrote:
> On 9/12/07, minky arora <mi...@gmail.com> 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 ------------------------ hassan.schroeder@gmail.com
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by Hassan Schroeder <ha...@gmail.com>.
On 9/12/07, minky arora <mi...@gmail.com> 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 ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by minky arora <mi...@gmail.com>.
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.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
INFO: Initialization processed in 378 ms
Sep 12, 2007 10:55:12 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Sep 12, 2007 10:55:12 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
Sep 12, 2007 10:55:12 AM org.apache.coyote.http11.Http11Protocol start
SEVERE: Error starting endpoint
java.net.BindException: Address already in use:8080
	at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:501)
	at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:515)
	at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:204)
	at org.apache.catalina.connector.Connector.start(Connector.java:1132)
	at org.apache.catalina.core.StandardService.start(StandardService.java:531)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
	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.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Sep 12, 2007 10:55:12 AM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException:  service.getName(): "Catalina";  Protocol handler
start failed: java.net.BindException: Address already in use:8080
	at org.apache.catalina.connector.Connector.start(Connector.java:1139)
	at org.apache.catalina.core.StandardService.start(StandardService.java:531)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
	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.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Sep 12, 2007 10:55:12 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 705 ms
Sep 12, 2007 10:55:12 AM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[8005]:
java.net.BindException: Address already in use
	at java.net.PlainSocketImpl.socketBind(Native Method)
	at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
	at java.net.ServerSocket.bind(ServerSocket.java:319)
	at java.net.ServerSocket.<init>(ServerSocket.java:185)
	at org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
	at org.apache.catalina.startup.Catalina.await(Catalina.java:630)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:590)
	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.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Sep 12, 2007 10:55:12 AM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Sep 12, 2007 10:55:12 AM org.apache.catalina.connector.Connector pause
SEVERE: Protocol handler pause failed
java.lang.NullPointerException
	at org.apache.jk.server.JkMain.pause(JkMain.java:679)
	at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:153)
	at org.apache.catalina.connector.Connector.pause(Connector.java:1074)
	at org.apache.catalina.core.StandardService.stop(StandardService.java:563)
	at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
	at org.apache.catalina.startup.Catalina.stop(Catalina.java:616)
	at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:659)
Sep 12, 2007 10:55:13 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Sep 12, 2007 10:55:13 AM org.apache.catalina.connector.MapperListener destroy
WARNING: Error unregistering MBeanServerDelegate
java.lang.NullPointerException
	at org.apache.catalina.connector.MapperListener.destroy(MapperListener.java:162)
	at org.apache.catalina.connector.Connector.stop(Connector.java:1180)
	at org.apache.catalina.core.StandardService.stop(StandardService.java:593)
	at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
	at org.apache.catalina.startup.Catalina.stop(Catalina.java:616)
	at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:659)
Sep 12, 2007 10:55:13 AM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Sep 12, 2007 10:55:13 AM org.apache.catalina.connector.Connector stop
SEVERE: Coyote connector has not been started
Sep 12, 2007 11:13:04 AM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Sep 12, 2007 11:13:05 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Sep 12, 2007 11:13:05 AM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Sep 12, 2007 11:13:16 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 11:13:16 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Sep 12, 2007 11:13:16 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 375 ms
Sep 12, 2007 11:13:16 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Sep 12, 2007 11:13:16 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
Sep 12, 2007 11:13:16 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Sep 12, 2007 11:13:16 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Sep 12, 2007 11:13:16 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/18  config=null
Sep 12, 2007 11:13:16 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 711 ms
Sep 12, 2007 11:27:15 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 11:27:15 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 11:27:15 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.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 11:27:15 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 366 ms
Sep 12, 2007 11:27:15 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Sep 12, 2007 11:27:15 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
Sep 12, 2007 11:27:15 AM org.apache.coyote.http11.Http11Protocol start
SEVERE: Error starting endpoint
java.net.BindException: Address already in use:8080
	at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:501)
	at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:515)
	at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:204)
	at org.apache.catalina.connector.Connector.start(Connector.java:1132)
	at org.apache.catalina.core.StandardService.start(StandardService.java:531)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
	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.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Sep 12, 2007 11:27:15 AM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException:  service.getName(): "Catalina";  Protocol handler
start failed: java.net.BindException: Address already in use:8080
	at org.apache.catalina.connector.Connector.start(Connector.java:1139)
	at org.apache.catalina.core.StandardService.start(StandardService.java:531)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
	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.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Sep 12, 2007 11:27:15 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 626 ms
Sep 12, 2007 11:27:15 AM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[8005]:
java.net.BindException: Address already in use
	at java.net.PlainSocketImpl.socketBind(Native Method)
	at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
	at java.net.ServerSocket.bind(ServerSocket.java:319)
	at java.net.ServerSocket.<init>(ServerSocket.java:185)
	at org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
	at org.apache.catalina.startup.Catalina.await(Catalina.java:630)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:590)
	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.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Sep 12, 2007 11:27:15 AM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Sep 12, 2007 11:27:15 AM org.apache.catalina.connector.Connector pause
SEVERE: Protocol handler pause failed
java.lang.NullPointerException
	at org.apache.jk.server.JkMain.pause(JkMain.java:679)
	at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:153)
	at org.apache.catalina.connector.Connector.pause(Connector.java:1074)
	at org.apache.catalina.core.StandardService.stop(StandardService.java:563)
	at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
	at org.apache.catalina.startup.Catalina.stop(Catalina.java:616)
	at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:659)
Sep 12, 2007 11:27:16 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Sep 12, 2007 11:27:16 AM org.apache.catalina.connector.MapperListener destroy
WARNING: Error unregistering MBeanServerDelegate
java.lang.NullPointerException
	at org.apache.catalina.connector.MapperListener.destroy(MapperListener.java:162)
	at org.apache.catalina.connector.Connector.stop(Connector.java:1180)
	at org.apache.catalina.core.StandardService.stop(StandardService.java:593)
	at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
	at org.apache.catalina.startup.Catalina.stop(Catalina.java:616)
	at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:659)
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
************************************



On 9/12/07, Hassan Schroeder <ha...@gmail.com> wrote:
> On 9/12/07, minky arora <mi...@gmail.com> 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 ------------------------ hassan.schroeder@gmail.com
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by Hassan Schroeder <ha...@gmail.com>.
On 9/12/07, Pid <p...@pidster.com> 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 ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by Pid <p...@pidster.com>.
Caldarale, Charles R wrote:
>> From: Pid [mailto:p@pidster.com] 
>> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: beginer question abt JSP with Tomcat

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Pid [mailto:p@pidster.com] 
> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Out of MemoryError upon attempting to load the webapps/ JSP examples

Posted by Chan Lee <ch...@pacbell.net>.
Hi Charles,
   
  The tomcat5 package came from the Debian package repository
  and I guess it was re-packaged for Debian install - but not by
  the Apache/Tomcat authority. The JVM also came from the Debian
  source - it's kaffee KJVM. I'll try to replace the JVM first then get
  the genuine Tomcat6.
   
  Thanks for the hint,
   
  Chan
  
"Caldarale, Charles R" <Ch...@unisys.com> wrote:
  > From: Chan Lee [mailto:chanl@pacbell.net] 
> Subject: Out of MemoryError upon attempting to load the 
> webapps/ JSP examples
> 
> Trying to run Tomcap in Debian, I choose tomcat5 to
> install. After all tomcat5 & related package
> installed, trying to open the default port, 8180,
> resulted in JVM OutOfMemoryError

Did you install a real Tomcat or a 3rd-party repackaged piece of junk?
If the latter, throw it away and get a proper installation package from
tomcat.apache.org. (Tomcat 6 is a better choice than 5.0 or 5.5, by the
way.)

Likewise, what JVM are you using? If it's the GNU one, throw that away
as well, and get one that fully supports the Java specs. The Sun
JRE/JDK 6 is a reasonable choice.

- 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org



RE: Out of MemoryError upon attempting to load the webapps/ JSP examples

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Chan Lee [mailto:chanl@pacbell.net] 
> Subject: Out of MemoryError upon attempting to load the 
> webapps/ JSP examples
> 
> Trying to run Tomcap in Debian, I choose tomcat5 to
> install. After all tomcat5 & related package
> installed, trying to open the default port, 8180,
> resulted in JVM OutOfMemoryError

Did you install a real Tomcat or a 3rd-party repackaged piece of junk?
If the latter, throw it away and get a proper installation package from
tomcat.apache.org.  (Tomcat 6 is a better choice than 5.0 or 5.5, by the
way.)

Likewise, what JVM are you using?  If it's the GNU one, throw that away
as well, and get one that fully supports the Java specs.  The Sun
JRE/JDK 6 is a reasonable choice.

 - 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by David Smith <dn...@cornell.edu>.
Caldarale, Charles R wrote:

>>From: minky arora [mailto:minky.arora@gmail.com] 
>>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: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>
>  
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Out of MemoryError upon attempting to load the webapps/ JSP examples

Posted by Chan Lee <ch...@pacbell.net>.
Hello,

Trying to run Tomcap in Debian, I choose tomcat5 to
install. After all tomcat5 & related package
installed, trying to open the default port, 8180,
resulted in
JVM OutOfMemoryError - upon when tomcat attempts to
load the JSP examples in webapps. Somehow, the JVM
heap
didn't get allocated properly OR the JRE may be out
of sync with the JVM - or something else ?

Can anyone had similar experience before ?

Below is the Catalina error logs:

2007 9 17 15:15:28
org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path
/jsp-examples from URL
file:/var/lib/tomcat5/webapps/jsp-examples
2007 9 17 15:15:30
org.apache.catalina.startup.HostConfig
deployDirectories
SEVERE: Error deploying web application directory
jsp-examples
java.lang.OutOfMemoryError
   at java.io.InputStreamReader.read
(InputStreamReader.java:360)
   at java.io.BufferedReader.fill
(BufferedReader.java:373)
   at java.io.BufferedReader.readLine
(BufferedReader.java:475)
   at java.util.jar.Manifest.read_attributes
(Manifest.java:260)
   at java.util.jar.Manifest.read_main_section
(Manifest.java:178)
   at java.util.jar.Manifest.read (Manifest.java:168)
   at java.util.jar.Manifest.<init> (Manifest.java:94)
   at java.util.jar.JarInputStream.readManifest
(JarInputStream.java:115)
   at java.util.jar.JarInputStream.<init>
(JarInputStream.java:95)
   at java.util.jar.JarInputStream.<init>
(JarInputStream.java:80)
   at
org.apache.catalina.util.ExtensionValidator.getManifest
(ExtensionValidator.java:368)
   at
org.apache.catalina.util.ExtensionValidator.validateApplication
(ExtensionValidator.java:187)
   at org.apache.catalina.core.StandardContext.start
(StandardContext.java:4191)
   at
org.apache.catalina.core.ContainerBase.addChildInternal
(ContainerBase.java:823)
   at org.apache.catalina.core.ContainerBase.access$0
(ContainerBase.java:811)
   at
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run
(ContainerBase.java:143)
   at java.security.AccessController.doPrivileged
(AccessController.java:96)
   at org.apache.catalina.core.ContainerBase.addChild
(ContainerBase.java:805)
   at org.apache.catalina.core.StandardHost.addChild
(StandardHost.java:595)
   at
org.apache.catalina.core.StandardHostDeployer.install
(StandardHostDeployer.java:277)
   at org.apache.catalina.core.StandardHost.install
(StandardHost.java:832)
   at
org.apache.catalina.startup.HostConfig.deployDirectories
(HostConfig.java:701)   at
org.apache.catalina.startup.HostConfig.deployApps
(HostConfig.java:432)
   at org.apache.catalina.startup.HostConfig.start
(HostConfig.java:983)
   at
org.apache.catalina.startup.HostConfig.lifecycleEvent
(HostConfig.java:349)
   at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
(LifecycleSupport.java:119)
   at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1091)
   at org.apache.catalina.core.StandardHost.start
(StandardHost.java:789)
   at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1083)
   at org.apache.catalina.core.StandardEngine.start
(StandardEngine.java:478)
   at org.apache.catalina.core.StandardService.start
(StandardService.java:480)
   at org.apache.catalina.core.StandardServer.start
(StandardServer.java:2313)
   at org.apache.catalina.startup.Catalina.start
(Catalina.java:556)
   at java.lang.reflect.Method.invoke0 (Method.java)
   at java.lang.reflect.Method.invoke
(Method.java:255)
   at org.apache.catalina.startup.Bootstrap.start
(Bootstrap.java:287)
   at org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:425)

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: beginer question abt JSP with Tomcat

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: minky arora [mailto:minky.arora@gmail.com] 
> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by Hassan Schroeder <ha...@gmail.com>.
On 9/12/07, minky arora <mi...@gmail.com> 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 ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: beginer question abt JSP with Tomcat

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: minky arora [mailto:minky.arora@gmail.com] 
> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by minky arora <mi...@gmail.com>.
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 <mi...@gmail.com> 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 <mi...@gmail.com> 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 <ha...@gmail.com> wrote:
> > > On 9/12/07, minky arora <mi...@gmail.com> 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 ------------------------ hassan.schroeder@gmail.com
> > >
> > > ---------------------------------------------------------------------
> > > To start a new topic, e-mail: users@tomcat.apache.org
> > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > > For additional commands, e-mail: users-help@tomcat.apache.org
> > >
> > >
> >
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by minky arora <mi...@gmail.com>.
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 <mi...@gmail.com> 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 <ha...@gmail.com> wrote:
> > On 9/12/07, minky arora <mi...@gmail.com> 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 ------------------------ hassan.schroeder@gmail.com
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by minky arora <mi...@gmail.com>.
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 <ha...@gmail.com> wrote:
> On 9/12/07, minky arora <mi...@gmail.com> 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 ------------------------ hassan.schroeder@gmail.com
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by Hassan Schroeder <ha...@gmail.com>.
On 9/12/07, minky arora <mi...@gmail.com> 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 ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by minky arora <mi...@gmail.com>.
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 <p...@pidster.com> wrote:
> Hassan Schroeder wrote:
> > On 9/12/07, minky arora <mi...@gmail.com> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by Pid <p...@pidster.com>.
Hassan Schroeder wrote:
> On 9/12/07, minky arora <mi...@gmail.com> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by Hassan Schroeder <ha...@gmail.com>.
On 9/12/07, minky arora <mi...@gmail.com> 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 ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by minky arora <mi...@gmail.com>.
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 <ha...@gmail.com> wrote:
> On 9/12/07, minky arora <mi...@gmail.com> 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 ------------------------ hassan.schroeder@gmail.com
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by Hassan Schroeder <ha...@gmail.com>.
On 9/12/07, minky arora <mi...@gmail.com> 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 ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: beginer question abt JSP with Tomcat

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: minky arora [mailto:minky.arora@gmail.com] 
> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by minky arora <mi...@gmail.com>.
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 <ha...@gmail.com> wrote:
> On 9/11/07, minky arora <mi...@gmail.com> 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 ------------------------ hassan.schroeder@gmail.com
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by Hassan Schroeder <ha...@gmail.com>.
On 9/11/07, minky arora <mi...@gmail.com> 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 ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by minky arora <mi...@gmail.com>.
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 <ha...@gmail.com> wrote:
> On 9/11/07, minky arora <mi...@gmail.com> 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 ------------------------ hassan.schroeder@gmail.com
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by Hassan Schroeder <ha...@gmail.com>.
On 9/11/07, minky arora <mi...@gmail.com> 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 ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by minky arora <mi...@gmail.com>.
sorry the files are here.

On 9/11/07, minky arora <mi...@gmail.com> 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 <ha...@gmail.com> wrote:
> > On 9/11/07, minky arora <mi...@gmail.com> 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 ------------------------ hassan.schroeder@gmail.com
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
>


Re: beginer question abt JSP with Tomcat

Posted by minky arora <mi...@gmail.com>.
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 <ha...@gmail.com> wrote:
> On 9/11/07, minky arora <mi...@gmail.com> 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 ------------------------ hassan.schroeder@gmail.com
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by Hassan Schroeder <ha...@gmail.com>.
On 9/11/07, minky arora <mi...@gmail.com> 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 ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by minky arora <mi...@gmail.com>.
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 <ha...@gmail.com> wrote:
> On 9/11/07, minky arora <mi...@gmail.com> 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 ------------------------ hassan.schroeder@gmail.com
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: beginer question abt JSP with Tomcat

Posted by Hassan Schroeder <ha...@gmail.com>.
On 9/11/07, minky arora <mi...@gmail.com> 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 ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org