Re: Tomcat 5.5 error

2009-01-04 Thread zia mohades
Hi kees,

Thank you for your help! Just to remind you:

I have deleted my previous apache tomcat( the default one) by using : rm -r
-f /usr/local/tomcat

and I installed the binary version on my desktop. I then start the apach
tomcat( using ./startup.sh) and when i access the webserver:
http://localhost:8080 , I can see the apache logo. However when I try to
access my own page: http://localhost:8080/mms_test, I get the same error:
I get the same error as always:
HTTP Status 404 - /mms_test/index.html
--

*type* Status report

*message* */mms_test/index.html*

*description* *The requested resource (/mms_test/index.html) is not
available.*


As i mentioned in my previous message when I access the log ,there is only
one file:

catalina.out and here it's its content:
 ./catalina.sh: 357: /usr/bin/java/bin/java: not found
 ./catalina.sh: 357: /usr/bin/java/bin/java: not found
./catalina.sh: 357: /usr/bin/java/bin/java: not found

>
when i do  echo $JAVA_HOME, I get this : /usr/bin/java and when I check the
.bashrc I do see this line as well: export JAVA_HOME=/usr/bin/java

Is it possible that there is another version of tomcat running and I don't
know about. How do i make sure that there the default tomcat is successfully
deleted and there is only one tomcat running.

this error is making me a bit frustrated, thank u again for all your helps.

Best regards

zia




>
> You did set JAVA_HME?
> --
> Kees Jan
>
> http://java-monitor.com/forum/
> kjkos...@kjkoster.org
> 06-51838192
>
> The secret of success lies in the stability of the goal. -- Benjamin
> Disraeli
>
>
> -
>
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Tomcat 5.5 error

2008-12-25 Thread Kees Jan Koster
thank u again. I have downloaded the binary version and placed it on  
my

desktop and And ran it using sh startup.sh.
and  then I access the http://localhost:8080/ site successfully. but  
when i

try to access  http://localhost:8080/mms_test. I get the same error as
before. However when I try to access the log file, there is only one  
file:

catalina.out and here it's its content:
./catalina.sh: 357: /usr/bin/java/bin/java: not found
./catalina.sh: 357: /usr/bin/java/bin/java: not found
./catalina.sh: 357: /usr/bin/java/bin/java: not found


You did set JAVA_HOME?
--
Kees Jan

http://java-monitor.com/forum/
kjkos...@kjkoster.org
06-51838192

The secret of success lies in the stability of the goal. -- Benjamin  
Disraeli



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.5 error

2008-12-24 Thread zia mohades
Hi steve,

thank u again. I have downloaded the binary version and placed it on my
desktop and And ran it using sh startup.sh.
and  then I access the http://localhost:8080/ site successfully. but when i
try to access  http://localhost:8080/mms_test. I get the same error as
before. However when I try to access the log file, there is only one file:
catalina.out and here it's its content:
./catalina.sh: 357: /usr/bin/java/bin/java: not found
./catalina.sh: 357: /usr/bin/java/bin/java: not found
./catalina.sh: 357: /usr/bin/java/bin/java: not found

There seems to be a new problem. Just to let u know , I get this error when
I try to shutdown the server using :
sh shutdown.sh

Do I need to set up the java path somewhere? the java that I use is located
in /usr/bin/java.

This is getting a bit frustrating!

Thank u for all your help!


daniel



On Wed, Dec 24, 2008 at 7:24 PM, Steve Ochani  wrote:

> Send reply to:  Tomcat Users List 
> Date sent:  Wed, 24 Dec 2008 18:33:17 -0500
> From:   zia mohades 
> To: Tomcat Users List 
> Subject:    Re: Tomcat 5.5 error
>
> > Hello bill and everyone else,
> >
> > thank you again for all your help. as per your last email, due to the
> > bug, i have decided to download the newer version of tomcat , version
> > 6. However once i have downloaded( source code : tar.gz) it and tried
> > to run it using
>
> don't use the source code, just get the binary version.
>
>
>
>
> >  sh startup.sh  , I get this error :
> >   Cannot find ./catalina.sh
> > This file is needed to run this program, however the
> > "catalina.sh" exist.
> >
> > Any idea what can cause this?? thank you again for all your help!!!
> >
> > best regards
> >
> > daniel
> >
> >
> >
> > On Tue, Dec 23, 2008 at 9:44 PM, Bill Barker 
> > wrote:
> >
> > > I've confirmed that yes, this is a bug in 5.5.x.  Go ahead and enter
> > > in a bug report at http://issues.apache.org/bugzilla.  I haven't
> > > checked on 6.x and 7.x.
> > >
> > > The problem is that the compiler optimizes out references to
> > > o.a.coyote.Constants so the class isn't loaded in trusted code (with
> > > the default catalina.policy).  As a result of a recent security fix
> > > (and ironically only when running with a SecurityManager), the class
> > > is loaded now by un-trusted code, resulting in the exception below.
> > >
> > > To reproduce, simply have a JSP page bigger than 16kb and run with a
> > > SecurityManager with the default catalina.policy settings (or
> > > possibly modifying for read access to logging.properties only).
> > > Then access this page as your first request after starting Tomcat.
> > >  "zia mohades"  wrote in message
> > > news:ee00484d0812231256g1185ae42r4b977bb236009...@mail.gmail.com...
> > >   Hi steve,
> > >
> > >  first before telling what I have done in regards to your previous
> > >  email, I
> > > need to inform about this issue:
> > >
> > >  1) when I restart the server and try to access the website:
> > > http://localhost:8080/ I get this error:
> > >
> > >
> > >  ***
> > >  
> > >
> > >  HTTP Status 500 -
> > >
> > >
> > > 
> > > --
> > >
> > >  type Exception report
> > >
> > >  message
> > >
> > >  description The server encountered an internal error () that
> > >  prevented it
> > > from fulfilling this request.
> > >
> > >  exception
> > >
> > > java.security.AccessControlException: access denied
> > > (java.lang.RuntimePermission accessClassInPackage.org.apache.coyote)
> > >  java.security.AccessControlContext.checkPermission(AccessControlCon
> > >  text.java:323)
> > >
> > >  java.security.AccessController.checkPermission(AccessController.jav
> > >  a:546)
> > > java.lang.SecurityManager.checkPermission(SecurityManager.java:5
> > > 32)
> > > java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:15
> > > 12)
> > >sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:273)
> > > java.lang.ClassLoader.loadClass(ClassLoader.java:299)
> > > java.lang.ClassLoader.loadClass(ClassLoader.java:299)
> &

Re: Tomcat 5.5 error

2008-12-24 Thread Steve Ochani
Send reply to:  Tomcat Users List 
Date sent:  Wed, 24 Dec 2008 18:33:17 -0500
From:   zia mohades 
To: Tomcat Users List 
Subject:Re: Tomcat 5.5 error

> Hello bill and everyone else,
> 
> thank you again for all your help. as per your last email, due to the
> bug, i have decided to download the newer version of tomcat , version
> 6. However once i have downloaded( source code : tar.gz) it and tried
> to run it using

don't use the source code, just get the binary version.




>  sh startup.sh  , I get this error :
>   Cannot find ./catalina.sh
> This file is needed to run this program, however the
> "catalina.sh" exist.
> 
> Any idea what can cause this?? thank you again for all your help!!!
> 
> best regards
> 
> daniel
> 
> 
> 
> On Tue, Dec 23, 2008 at 9:44 PM, Bill Barker 
> wrote:
> 
> > I've confirmed that yes, this is a bug in 5.5.x.  Go ahead and enter
> > in a bug report at http://issues.apache.org/bugzilla.  I haven't
> > checked on 6.x and 7.x.
> >
> > The problem is that the compiler optimizes out references to
> > o.a.coyote.Constants so the class isn't loaded in trusted code (with
> > the default catalina.policy).  As a result of a recent security fix
> > (and ironically only when running with a SecurityManager), the class
> > is loaded now by un-trusted code, resulting in the exception below.
> >
> > To reproduce, simply have a JSP page bigger than 16kb and run with a
> > SecurityManager with the default catalina.policy settings (or
> > possibly modifying for read access to logging.properties only). 
> > Then access this page as your first request after starting Tomcat.
> >  "zia mohades"  wrote in message
> > news:ee00484d0812231256g1185ae42r4b977bb236009...@mail.gmail.com...
> >   Hi steve,
> >
> >  first before telling what I have done in regards to your previous
> >  email, I
> > need to inform about this issue:
> >
> >  1) when I restart the server and try to access the website:
> > http://localhost:8080/ I get this error:
> >
> >
> >  ***
> >  
> >
> >  HTTP Status 500 -
> >
> >
> > 
> > --
> >
> >  type Exception report
> >
> >  message
> >
> >  description The server encountered an internal error () that
> >  prevented it
> > from fulfilling this request.
> >
> >  exception
> >
> > java.security.AccessControlException: access denied
> > (java.lang.RuntimePermission accessClassInPackage.org.apache.coyote)
> >  java.security.AccessControlContext.checkPermission(AccessControlCon
> >  text.java:323)
> >
> >  java.security.AccessController.checkPermission(AccessController.jav
> >  a:546)
> > java.lang.SecurityManager.checkPermission(SecurityManager.java:5
> > 32)
> > java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:15
> > 12)
> >sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:273)
> > java.lang.ClassLoader.loadClass(ClassLoader.java:299)
> > java.lang.ClassLoader.loadClass(ClassLoader.java:299)
> > java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> >java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> > org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOut
> > putBuffer.java:452)
> > org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Proce
> > ssor.java:1617)
> >
> >  org.apache.coyote.http11.Http11Processor.action(Http11Processor.jav
> >  a:967)
> > org.apache.coyote.Response.action(Response.java:181)
> >  org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutpu
> >  tBuffer.java:576)
> >org.apache.coyote.Response.doWrite(Response.java:560)
> > org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuff
> > er.java:361)
> >org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:32
> >3)
> > org.apache.tomcat.util.buf.IntermediateOutputStream.write(C2BConvert
> > er.java:236)
> >sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)
> > sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:272)
> >  sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:276)
> >  sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:122)
> >java.io.OutputStreamWriter.flush(OutputStreamWriter.

Re: Tomcat 5.5 error

2008-12-24 Thread zia mohades
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>java.lang.reflect.Method.invoke(Method.java:597)
>  org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
>  java.security.AccessController.doPrivileged(Native Method)
>  javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
>
>  org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
>
>  
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)note
> The full stack trace of the root cause is available in the Apache Tomcat/5.5
> logs.
>
>
>  
> 
>
>  but the funny part is that when I press enter again the page loads
> successfully. but anyways here is the result of what  have done according to
> your last email:
>
>  1)  as you said , the log part was commented so uncommented it in the
> server.xml,
>
>  2) restarted the server, accessed the http://localhost:8080/mms_testagain, 
> but however the log directory is still empty , no files.
>
>  i have attached both web.xml and content.xml files as you have asked me
> before!
>
>  please let me know if it is easier to reinstall the apach from the
> website, I will delete this one and reinstall it.
>
>  Thank you again for all your help
>
>
>  Best Regards,
>
>
>
>
>
>
>
>  On Tue, Dec 23, 2008 at 3:25 PM, Steve Ochani  wrote:
>
>On 22 Dec 2008 at 22:16, zia mohades wrote:
>
>> hello steve,
>
>Hi,
>
>
>>
>> Thank you again. I have done the following
>>
>> 1) restarted the server
>>
>> 2) accessed the http://localhost:8080/mms_test again
>>
>> however once I tried to access the log at /usr/local/tomcat/logs ,
>> I
>> realized that there is no log file for today, the last one is dated
>> for
>> "localhost.2008-10-17.log". But the only thing that I have found for
>> today's
>> date( which doesn't show the correct time) is:
>>
>> -rw-r--r-- 1 root root 127530 2008-12-22 15:40 catalina.out
>
>
>Hmm, you may not have the AccessLogValve enabled in server.xml.
>
>I'm not sure where ubuntu keeps the tomcat config files (you may want to
> remove the ubuntu
>packaged one and download and use the one from apache.org) but in the
> tomcat server.xml
>look for
>
>   
>
>directory="logs"
>  prefix="localhost_access_log." suffix=".txt"
> pattern="common"
>resolveHosts="false"/>
>
>towards the end of the host element.
>
>If the valve is commented out then uncomment it, restart tomcat and try
> to access the
>webapp again.
>
>Check the logs and post the web.xml of your app, and any context.xml if
> you have them for
>that webapp.
>
>
>-Steve O.
>
>
>
>
>>
>> I have looked inside , there are bunch of errors for different
>> dates, but
>> again wasn't able to find any error for today's date(let me know if
>> you
>> want, I can copy paste the contents in the file). This is very
>> strange, it
>> seems like the tomcat is unable to register the errors
>>
>> Any ideas what's going on??? I have however using the default tomcat
>> in the
>> ubuntu, do i need to change something else, or reinstall another
>> version??
>>
>> Thank you kindly for all your help.
>>
>> Daniel
>>
>>
>>
>>
>>
>> On Mon, Dec 22, 2008 at 9:49 PM, Steve Ochani 
>> wrote:
>>
>> > On 22 Dec 2008 at 18:28, zia mohades wrote:
>> >
>> > Send reply to:  Tomcat Users List 
>> > Date sent:  Mon, 22 Dec 2008 18:28:12 -0500
>> > From:   zia mohades 
>    > > To: Tomcat Users List 
>> > Subject:Re: Tomcat 5.5 error
>> >
>> > > Hello steve,
>> > >
>> > > thank you for your message! when I try to place mms_test in
>> > > /usr/local/tomcat/webapps, I get the same error:
>> > >
>> > > HTTP Status 404 - /mms_test
>&g

RE: [OT] Tomcat 5.5 error

2008-12-24 Thread Caldarale, Charles R
> From: Mojumdar, Biswajit [mailto:biswajit.mojum...@hud.gov]
> Subject: RE: Tomcat 5.5 error
>
> When I tried to open the attachments, I got an error 'File not found'.

Likely a security policy imposed by the IT department of your employer (or 
Homeland Security, in your case).  Here, I can't directly open attached .zip 
files for that reason, regardless of the e-mail origin.

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



RE: Tomcat 5.5 error

2008-12-24 Thread Mojumdar, Biswajit
OK. 

When I tried to open the attachments, I got an error 'File not found'.

But I was able to save and open the files later on from my desktop.

Thanks for the clarification.

- Biswajit

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Tuesday, December 23, 2008 5:32 PM
To: Tomcat Users List
Subject: RE: Tomcat 5.5 error

> From: Mojumdar, Biswajit [mailto:biswajit.mojum...@hud.gov]
> Subject: RE: Tomcat 5.5 error
>
> Remember, this list automatically deletes the attachments.

No, it only deletes certain attachments, but not .xml files.  The ones
included by ZM came through fine.

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


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.5 error

2008-12-23 Thread Bill Barker
e Apache Tomcat/5.5 
logs.

  


  but the funny part is that when I press enter again the page loads 
successfully. but anyways here is the result of what  have done according to 
your last email:

  1)  as you said , the log part was commented so uncommented it in the 
server.xml, 

  2) restarted the server, accessed the http://localhost:8080/mms_test again, 
but however the log directory is still empty , no files.

  i have attached both web.xml and content.xml files as you have asked me 
before!

  please let me know if it is easier to reinstall the apach from the website, I 
will delete this one and reinstall it.

  Thank you again for all your help


  Best Regards,







  On Tue, Dec 23, 2008 at 3:25 PM, Steve Ochani  wrote:

On 22 Dec 2008 at 22:16, zia mohades wrote:

> hello steve,

Hi,


>
> Thank you again. I have done the following
>
> 1) restarted the server
>
> 2) accessed the http://localhost:8080/mms_test again
>
> however once I tried to access the log at /usr/local/tomcat/logs ,
> I
> realized that there is no log file for today, the last one is dated
> for
> "localhost.2008-10-17.log". But the only thing that I have found for
> today's
> date( which doesn't show the correct time) is:
>
> -rw-r--r-- 1 root root 127530 2008-12-22 15:40 catalina.out


Hmm, you may not have the AccessLogValve enabled in server.xml.

I'm not sure where ubuntu keeps the tomcat config files (you may want to 
remove the ubuntu
packaged one and download and use the one from apache.org) but in the 
tomcat server.xml
look for

   

   

towards the end of the host element.

If the valve is commented out then uncomment it, restart tomcat and try to 
access the
webapp again.

Check the logs and post the web.xml of your app, and any context.xml if you 
have them for
that webapp.


-Steve O.




>
> I have looked inside , there are bunch of errors for different
> dates, but
> again wasn't able to find any error for today's date(let me know if
> you
> want, I can copy paste the contents in the file). This is very
> strange, it
> seems like the tomcat is unable to register the errors
>
> Any ideas what's going on??? I have however using the default tomcat
> in the
> ubuntu, do i need to change something else, or reinstall another
> version??
>
> Thank you kindly for all your help.
>
> Daniel
>
>
>
>
>
> On Mon, Dec 22, 2008 at 9:49 PM, Steve Ochani 
> wrote:
>
> > On 22 Dec 2008 at 18:28, zia mohades wrote:
    > >
> > Send reply to:  Tomcat Users List 
> > Date sent:  Mon, 22 Dec 2008 18:28:12 -0500
> > From:   zia mohades 
> > To: Tomcat Users List 
> > Subject:Re: Tomcat 5.5 error
> >
> > > Hello steve,
> > >
> > > thank you for your message! when I try to place mms_test in
> > > /usr/local/tomcat/webapps, I get the same error:
> > >
> > > HTTP Status 404 - /mms_test
> > >
> > > Any Idea why?
> > >
> >
> > Try restarting tomcat, then try to access the webapp again and
> look at the
> > logs.
> >
> >
> >
> >
> >
> > > thank you for your time!
> > >
    > > >
> > > On Mon, Dec 22, 2008 at 4:03 PM, Steve Ochani
> 
> > > wrote:
> > >
> > > > On 22 Dec 2008 at 15:43, zia mohades wrote:
> > > >
> > > > Send reply to:  Tomcat Users List 
> > > > Date sent:  Mon, 22 Dec 2008 15:43:41 -0500
> > > > From:   zia mohades 
> > > > To: Tomcat Users List 
> > > > Subject:Tomcat 5.5 error
> > > >
> > > > > hello all!
> > > > >
> > > > > I am currently using tomcat 5.5 on my labtop which is
> running
> > > on
> > > > > ubuntu.
> > > > > When I access http://localhost:8080/ , i get the default
> page,
> > > which
> > > > > is a
> > > > > good news( meaning tomcat is running) However when I try
> to
> > > place my
> > > > > own
> > > > > html folder(called mms_test) in
> /usr/local/tomcat/webapps/ROOT
> > > and
> > > > > then try
> > > >

RE: Tomcat 5.5 error

2008-12-23 Thread Caldarale, Charles R
> From: Mojumdar, Biswajit [mailto:biswajit.mojum...@hud.gov]
> Subject: RE: Tomcat 5.5 error
>
> Remember, this list automatically deletes the attachments.

No, it only deletes certain attachments, but not .xml files.  The ones included 
by ZM came through fine.

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



Re: Tomcat 5.5 error

2008-12-23 Thread zia mohades
Hi steve,

Before starting the server, I used sudo -s to loggin as root. and then run
the server and then access tomcat online(http://localhost:8080/)
when i do ls -l /usr/local/tomcat/webapps/ROOT i get:

-rw-r--r-- 1 mohadesz mohadesz  5866 2007-07-19 22:20 asf-logo-wide.gif
-rwx-- 1 mohadesz mohadesz 0 2008-10-01 18:34 betaNeighbours.js~
-rwx-- 1 mohadesz mohadesz 0 2008-10-01 18:34 Beta.xml~
-rw-r--r-- 1 mohadesz mohadesz  2625 2007-07-19 22:20 build.xml
-rw-r--r-- 1 mohadesz mohadesz 21630 2007-07-19 22:20 favicon.ico
-rwx-- 1 mohadesz mohadesz 0 2008-10-01 18:34 hecontact.html~
-rwx-- 1 mohadesz mohadesz 0 2008-10-01 18:34 helixNeighbours.js~
-rwx-- 1 mohadesz mohadesz 0 2008-10-01 18:34 hesearch.html~
-rwx-- 1 mohadesz mohadesz  9040 2008-12-19 17:54 index.html
-rw-r--r-- 1 mohadesz mohadesz  7819 2007-07-19 22:20 index.jsp
-rw-r--r-- 1 mohadesz mohadesz  6656 2007-07-19 22:20 RELEASE-NOTES.txt
-rwx-- 1 mohadesz mohadesz 0 2008-10-01 18:34 showme.html~
-rwx-- 1 mohadesz mohadesz 0 2008-10-01 18:34 test1.html~
-rwx-- 1 mohadesz mohadesz 0 2008-10-01 18:34 test.html~
-rwx-- 1 mohadesz mohadesz 0 2008-10-01 18:34 test.js~
-rw-r--r-- 1 mohadesz mohadesz  1934 2007-07-19 22:20 tomcat.gif
-rw-r--r-- 1 mohadesz mohadesz  2324 2007-07-19 22:20 tomcat-power.gif
-rw-r--r-- 1 mohadesz mohadesz 65428 2007-07-19 22:20 tomcat.svg
-rwx-- 1 mohadesz mohadesz 0 2008-10-01 18:34 turnNeighbours.js~
drwxr-xr-x 4 mohadesz mohadesz  4096 2008-12-22 18:48 WEB-INF
-rw-r--r-- 1 mohadesz mohadesz  1213 2007-07-19 22:20 web.xml

and when I try ls -l /usr/local/tomcat/webapps/ROOT/mms_test" I get error:
ls: cannot access /usr/local/tomcat/webapps/ROOT/mms_test: No such file or
directory. because mms_test is not in this directory is located at:
/usr/local/tomcat/webapps/mms_test( as you have told me , I should do last
time).

Do I need to change the permission of some files, or is mms_test in the
wrong directory?

thank u again for all the help!









On Tue, Dec 23, 2008 at 4:33 PM, Gregor Schneider wrote:

>
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
>
>
> This message is pretty obvious:
>
> Is it possible that you've started Tomcat as root incidently and now
> try to run Tomcat as another user (such as "tomcat")?
>
> Looks as if there is at least one file where the rights are not set
> correctly.
>
> What give "ls -l /usr/local/tomcat/webapps/ROOT"  and "ls -l
> /usr/local/tomcat/webapps/ROOT/mms_test" ?
>
> Gregor
> --
> just because your paranoid, doesn't mean they're not after you...
> gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
> gpgp-key available @ http://pgpkeys.pca.dfn.de:11371
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Tomcat 5.5 error

2008-12-23 Thread Gregor Schneider
java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)


This message is pretty obvious:

Is it possible that you've started Tomcat as root incidently and now
try to run Tomcat as another user (such as "tomcat")?

Looks as if there is at least one file where the rights are not set correctly.

What give "ls -l /usr/local/tomcat/webapps/ROOT"  and "ls -l
/usr/local/tomcat/webapps/ROOT/mms_test" ?

Gregor
-- 
just because your paranoid, doesn't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 5.5 error

2008-12-23 Thread Mojumdar, Biswajit
Remember, this list automatically deletes the attachments. You might
want to copy and paste the contents of the web and context.xml and
repost them again.

 

- Biswajit

 

 



From: zia mohades [mailto:zia.si...@gmail.com] 
Sent: Tuesday, December 23, 2008 3:56 PM
To: Tomcat Users List
Subject: Re: Tomcat 5.5 error

 

Hi steve,

first before telling what I have done in regards to your previous email,
I need to inform about this issue:

1) when I restart the server and try to access the website:
http://localhost:8080/ I get this error:


***


HTTP Status 500 - 




type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

java.security.AccessControlException: access denied
(java.lang.RuntimePermission accessClassInPackage.org.apache.coyote)

 
java.security.AccessControlContext.checkPermission(AccessControlContext.
java:323)




 
java.security.AccessController.checkPermission(AccessController.java:546
)

 
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)

 
java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1512)




sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:273)

java.lang.ClassLoader.loadClass(ClassLoader.java:299)

java.lang.ClassLoader.loadClass(ClassLoader.java:299)

java.lang.ClassLoader.loadClass(ClassLoader.java:251)




java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

 
org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutputB
uffer.java:452)

 
org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor
.java:1617)




 
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:967
)

org.apache.coyote.Response.action(Response.java:181)

 
org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuff
er.java:576)




org.apache.coyote.Response.doWrite(Response.java:560)

 
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.j
ava:361)

org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:323)

 
org.apache.tomcat.util.buf.IntermediateOutputStream.write(C2BConverter.j
ava:236)




sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)

sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:272)

sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:276)

sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:122)




java.io.OutputStreamWriter.flush(OutputStreamWriter.java:212)

 
org.apache.tomcat.util.buf.WriteConvertor.flush(C2BConverter.java:185)

 
org.apache.tomcat.util.buf.C2BConverter.flushBuffer(C2BConverter.java:12
8)

 
org.apache.catalina.connector.OutputBuffer.realWriteChars(OutputBuffer.j
ava:536)




org.apache.tomcat.util.buf.CharChunk.append(CharChunk.java:256)

 
org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:456)

 
org.apache.catalina.connector.CoyoteWriter.write(CoyoteWriter.java:143)

 
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:1
19)




 
org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:326)

 
org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:342)

org.apache.jsp.index_jsp._jspService(index_jsp.java:50)

 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)




javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)




java.lang.reflect.Method.invoke(Method.java:597)

 
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)

java.security.AccessController.doPrivileged(Native Method)

javax.security.auth.Subject.doAsPrivileged(Subject.java:517)




 
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)

 
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.jav
a:162)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.5 logs.




but the funny part is that when I press enter again the page loads
successfully. but anyways here is the result of what  have done
according to your last email:

1)  as you said , the log part was commented so uncommented it in the
server.xml, 

2) restarted the server, accessed the http://localhost:8080/mms_test
again, but however the log directory is still empty , no files.

i have attached both web.xml and content.xml files as you have asked me
before!

please let me know if it is

Re: Tomcat 5.5 error

2008-12-23 Thread Steve Ochani
On 22 Dec 2008 at 22:16, zia mohades wrote:

> hello steve,

Hi,

> 
> Thank you again. I have done the following
> 
> 1) restarted the server
> 
> 2) accessed the http://localhost:8080/mms_test again
> 
> however once I tried to access the log at /usr/local/tomcat/logs ,
> I
> realized that there is no log file for today, the last one is dated
> for
> "localhost.2008-10-17.log". But the only thing that I have found for
> today's
> date( which doesn't show the correct time) is:
> 
> -rw-r--r-- 1 root root 127530 2008-12-22 15:40 catalina.out

Hmm, you may not have the AccessLogValve enabled in server.xml.

I'm not sure where ubuntu keeps the tomcat config files (you may want to remove 
the ubuntu 
packaged one and download and use the one from apache.org) but in the tomcat 
server.xml 
look for





towards the end of the host element.

If the valve is commented out then uncomment it, restart tomcat and try to 
access the 
webapp again.

Check the logs and post the web.xml of your app, and any context.xml if you 
have them for 
that webapp.


-Steve O.



> 
> I have looked inside , there are bunch of errors for different
> dates, but
> again wasn't able to find any error for today's date(let me know if
> you
> want, I can copy paste the contents in the file). This is very
> strange, it
> seems like the tomcat is unable to register the errors
> 
> Any ideas what's going on??? I have however using the default tomcat
> in the
> ubuntu, do i need to change something else, or reinstall another
> version??
> 
> Thank you kindly for all your help.
> 
> Daniel
> 
> 
> 
> 
> 
> On Mon, Dec 22, 2008 at 9:49 PM, Steve Ochani 
> wrote:
> 
> > On 22 Dec 2008 at 18:28, zia mohades wrote:
> >
> > Send reply to:  Tomcat Users List 
> > Date sent:  Mon, 22 Dec 2008 18:28:12 -0500
> > From:   zia mohades 
> > To: Tomcat Users List 
> > Subject:Re: Tomcat 5.5 error
> >
> > > Hello steve,
> > >
> > > thank you for your message! when I try to place mms_test in
> > > /usr/local/tomcat/webapps, I get the same error:
> > >
> > > HTTP Status 404 - /mms_test
> > >
> > > Any Idea why?
> > >
> >
> > Try restarting tomcat, then try to access the webapp again and
> look at the
> > logs.
> >
> >
> >
> >
> >
> > > thank you for your time!
> > >
> > >
> > > On Mon, Dec 22, 2008 at 4:03 PM, Steve Ochani
> 
> > > wrote:
> > >
> > > > On 22 Dec 2008 at 15:43, zia mohades wrote:
> > > >
> > > > Send reply to:  Tomcat Users List 
> > > > Date sent:  Mon, 22 Dec 2008 15:43:41 -0500
> > > > From:   zia mohades 
> > > > To: Tomcat Users List 
> > > > Subject:Tomcat 5.5 error
> > > >
> > > > > hello all!
> > > > >
> > > > > I am currently using tomcat 5.5 on my labtop which is
> running
> > > on
> > > > > ubuntu.
> > > > > When I access http://localhost:8080/ , i get the default
> page,
> > > which
> > > > > is a
> > > > > good news( meaning tomcat is running) However when I try
> to
> > > place my
> > > > > own
> > > > > html folder(called mms_test) in
> /usr/local/tomcat/webapps/ROOT
> > > and
> > > > > then try
> > > > > to reload the page using  http://localhost:8080/mms_test ,
> i
> > > get
> > > > > this error:
> > > > > HTTP Status 404 - /mms_test
> > > >
> > > > You can't put one webapp into another webapp.
> > > >
> > > > Put mms_test in /usr/local/tomcat/webapps
> > > >
> > > >
> > > > -Steve O.
> > > >
> > > >
> > > >
> > > >
> > > > > --
> > > > >
> > > > > *type* Status report
> > > > >
> > > > > *message* */mms_test*
> > > > >
> > > > > *description* *The requested resource (/mms_test) is not
> > > > > available.*
> > > > >
> > > > > any idea why?
> > > > >
> > > > >
> > > > > your help is very much appreciated!
> > > > >
> > > > > best regards
> > > > >
> > > > > On Mon, Dec 22, 2008 at 11:08 AM, Fili

Re: Tomcat 5.5 error

2008-12-23 Thread zia mohades
Hi gregor,

Thank you kindly for your help!

1) when I run the server and then access the http://localhost:8080 I do see
the page which on top it has this message:

" If you're seeing this page via a web browser, it means you've setup Tomcat
successfully. Congratulations!"

but when I try to access http://localhost:8080/mms_test , I get the same
error message.

2) when I try netstat -lnp , I don't see any application listening on port
8080! but i see lots of other ports! :(

3) to follow your other email , I stopped the server, then deleted all the
log files, restarted the server, accessed the site again:
http://localhost:8080/mms_test, but when I try to access the log
/usr/local/tomcat/logs , I noticed that the directory is empty. no logs
files!!

It is absolutely strange I don't get it, if i col access the
http://localhost:8080 successfully , how come there is no application
listening on 8080???

I really appreciate your help!

Best regards






On Tue, Dec 23, 2008 at 4:10 AM, Gregor Schneider wrote:

> Is Tomcat running?
>
> Do you see the welcome-page when opening http://localhost:8080?
>
> What gives "netstat -lnp"? Do you see any application listening on port
> 8080?
>
> Gregor
>
> PS.: To help keep messages readable, please do not fullquote the whole
> thread but only the necessary details.
> --
> just because your paranoid, doesn't mean they're not after you...
> gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
> gpgp-key available @ http://pgpkeys.pca.dfn.de:11371
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Tomcat 5.5 error

2008-12-23 Thread Gregor Schneider
One more thought to ease up things:

- stop Tomcat
- delete ALL / MOVE logfiles
- restart server
- resdtart Tomcat

Now, please post the contents of all log-files.

This procedure will make sure that the logs are as short as possible
but contain the important things - if any.

Gregor
-- 
just because your paranoid, doesn't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.5 error

2008-12-23 Thread Gregor Schneider
Is Tomcat running?

Do you see the welcome-page when opening http://localhost:8080?

What gives "netstat -lnp"? Do you see any application listening on port 8080?

Gregor

PS.: To help keep messages readable, please do not fullquote the whole
thread but only the necessary details.
-- 
just because your paranoid, doesn't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.5 error

2008-12-22 Thread zia mohades
hello steve,

Thank you again. I have done the following

1) restarted the server

2) accessed the http://localhost:8080/mms_test again

however once I tried to access the log at /usr/local/tomcat/logs , I
realized that there is no log file for today, the last one is dated for
"localhost.2008-10-17.log". But the only thing that I have found for today's
date( which doesn't show the correct time) is:

-rw-r--r-- 1 root root 127530 2008-12-22 15:40 catalina.out

I have looked inside , there are bunch of errors for different dates, but
again wasn't able to find any error for today's date(let me know if you
want, I can copy paste the contents in the file). This is very strange, it
seems like the tomcat is unable to register the errors

Any ideas what's going on??? I have however using the default tomcat in the
ubuntu, do i need to change something else, or reinstall another version??

Thank you kindly for all your help.

Daniel





On Mon, Dec 22, 2008 at 9:49 PM, Steve Ochani  wrote:

> On 22 Dec 2008 at 18:28, zia mohades wrote:
>
> Send reply to:  Tomcat Users List 
> Date sent:  Mon, 22 Dec 2008 18:28:12 -0500
> From:   zia mohades 
> To:     Tomcat Users List 
> Subject:Re: Tomcat 5.5 error
>
> > Hello steve,
> >
> > thank you for your message! when I try to place mms_test in
> > /usr/local/tomcat/webapps, I get the same error:
> >
> > HTTP Status 404 - /mms_test
> >
> > Any Idea why?
> >
>
> Try restarting tomcat, then try to access the webapp again and look at the
> logs.
>
>
>
>
>
> > thank you for your time!
> >
> >
> > On Mon, Dec 22, 2008 at 4:03 PM, Steve Ochani 
> > wrote:
> >
> > > On 22 Dec 2008 at 15:43, zia mohades wrote:
> > >
> > > Send reply to:  Tomcat Users List 
> > > Date sent:  Mon, 22 Dec 2008 15:43:41 -0500
> > > From:   zia mohades 
> > > To: Tomcat Users List 
> > > Subject:Tomcat 5.5 error
> > >
> > > > hello all!
> > > >
> > > > I am currently using tomcat 5.5 on my labtop which is running
> > on
> > > > ubuntu.
> > > > When I access http://localhost:8080/ , i get the default page,
> > which
> > > > is a
> > > > good news( meaning tomcat is running) However when I try to
> > place my
> > > > own
> > > > html folder(called mms_test) in /usr/local/tomcat/webapps/ROOT
> > and
> > > > then try
> > > > to reload the page using  http://localhost:8080/mms_test , i
> > get
> > > > this error:
> > > > HTTP Status 404 - /mms_test
> > >
> > > You can't put one webapp into another webapp.
> > >
> > > Put mms_test in /usr/local/tomcat/webapps
> > >
> > >
> > > -Steve O.
> > >
> > >
> > >
> > >
> > > > --
> > > >
> > > > *type* Status report
> > > >
> > > > *message* */mms_test*
> > > >
> > > > *description* *The requested resource (/mms_test) is not
> > > > available.*
> > > >
> > > > any idea why?
> > > >
> > > >
> > > > your help is very much appreciated!
> > > >
> > > > best regards
> > > >
> > > > On Mon, Dec 22, 2008 at 11:08 AM, Filip Hanik - Dev Lists <
> > > > devli...@hanik.com> wrote:
> > > >
> > > > > here is the name you specify
> > > > >
> > > > > jdbc/my_jdbc_name
> > > > >
> > > > > and here is your error
> > > > > Could not find datasource:jdbc/workout_logger
> > > > >
> > > > > as you can see, somewhere you have configured the string
> > > > workout_logger,
> > > > > and that one doesn't exist
> > > > >
> > > > > Filip
> > > > >
> > > > >
> > > > > arturoguedez wrote:
> > > > >
> > > > >> Hi!
> > > > >>
> > > > >> I have been reading how to setup datasources for Tomcat
> > 6.0.18
> > > > in
> > > > >>
> > > > >>
> > > >
> > http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-how
> > > > to.html
> > > > >> and nothing I have done has allowed my web application to
> > view
> > > > the
> > > > >> datasource i have created.
&

Re: Tomcat 5.5 error

2008-12-22 Thread Steve Ochani
On 22 Dec 2008 at 18:28, zia mohades wrote:

Send reply to:  Tomcat Users List 
Date sent:  Mon, 22 Dec 2008 18:28:12 -0500
From:   zia mohades 
To: Tomcat Users List 
Subject:Re: Tomcat 5.5 error

> Hello steve,
> 
> thank you for your message! when I try to place mms_test in
> /usr/local/tomcat/webapps, I get the same error:
> 
> HTTP Status 404 - /mms_test
> 
> Any Idea why?
> 

Try restarting tomcat, then try to access the webapp again and look at the logs.





> thank you for your time!
> 
> 
> On Mon, Dec 22, 2008 at 4:03 PM, Steve Ochani 
> wrote:
> 
> > On 22 Dec 2008 at 15:43, zia mohades wrote:
> >
> > Send reply to:  Tomcat Users List 
> > Date sent:  Mon, 22 Dec 2008 15:43:41 -0500
> > From:   zia mohades 
> > To: Tomcat Users List 
> > Subject:Tomcat 5.5 error
> >
> > > hello all!
> > >
> > > I am currently using tomcat 5.5 on my labtop which is running
> on
> > > ubuntu.
> > > When I access http://localhost:8080/ , i get the default page,
> which
> > > is a
> > > good news( meaning tomcat is running) However when I try to
> place my
> > > own
> > > html folder(called mms_test) in /usr/local/tomcat/webapps/ROOT
> and
> > > then try
> > > to reload the page using  http://localhost:8080/mms_test , i
> get
> > > this error:
> > > HTTP Status 404 - /mms_test
> >
> > You can't put one webapp into another webapp.
> >
> > Put mms_test in /usr/local/tomcat/webapps
> >
> >
> > -Steve O.
> >
> >
> >
> >
> > > --
> > >
> > > *type* Status report
> > >
> > > *message* */mms_test*
> > >
> > > *description* *The requested resource (/mms_test) is not
> > > available.*
> > >
> > > any idea why?
> > >
> > >
> > > your help is very much appreciated!
> > >
> > > best regards
> > >
> > > On Mon, Dec 22, 2008 at 11:08 AM, Filip Hanik - Dev Lists <
> > > devli...@hanik.com> wrote:
> > >
> > > > here is the name you specify
> > > >
> > > > jdbc/my_jdbc_name
> > > >
> > > > and here is your error
> > > > Could not find datasource:jdbc/workout_logger
> > > >
> > > > as you can see, somewhere you have configured the string
> > > workout_logger,
> > > > and that one doesn't exist
> > > >
> > > > Filip
> > > >
> > > >
> > > > arturoguedez wrote:
> > > >
> > > >> Hi!
> > > >>
> > > >> I have been reading how to setup datasources for Tomcat
> 6.0.18
> > > in
> > > >>
> > > >>
> > >
> http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-how
> > > to.html
> > > >> and nothing I have done has allowed my web application to
> view
> > > the
> > > >> datasource i have created.
> > > >>
> > > >> Here are some snippets of my web.xml, and my server.xml
> > > >> In the web.xml
> > > >>
> > > >> 
> > > >>DB Connection
> > > >>jdbc/my_jdbc_name
> > > >>javax.sql.DataSource
> > > >>Container
> > > >> 
> > > >>
> > > >> In server.xml
> > > >> I have tried to place the following snip it anywhere I saw in
> the
> > > docs it
> > > >> could belong to (ei, in the GlobalNamingResources, inside
> the
> > > Host tag, or
> > > >> inside the Context tag in all possible locations (under
> > > >> META-INF/context.xml, under
> > > >> $CATALINA_BASE/conf/[engine]/[host]/[path].xml)
> > > >> and I haven't been successful.
> > > >>
> > > >>   > > >> type="javax.sql.DataSource"
> > > >>   maxActive="100" maxIdle="30" maxWait="1"
> > > >>   username="user" password="password"
> > > >> driverClassName="com.mysql.jdbc.Driver"
> > > >>
> > > >>
> > >
> url="jdbc:mysql://localhost:3306/database_name?autoReconnect=true"/>
> > > >>
> > > >>
> > > >> I 

Re: Tomcat 5.5 error

2008-12-22 Thread zia mohades
Hello steve,

thank you for your message! when I try to place mms_test in
/usr/local/tomcat/webapps, I get the same error:

HTTP Status 404 - /mms_test

Any Idea why?

thank you for your time!


On Mon, Dec 22, 2008 at 4:03 PM, Steve Ochani  wrote:

> On 22 Dec 2008 at 15:43, zia mohades wrote:
>
> Send reply to:  Tomcat Users List 
> Date sent:  Mon, 22 Dec 2008 15:43:41 -0500
> From:   zia mohades 
> To: Tomcat Users List 
> Subject:    Tomcat 5.5 error
>
> > hello all!
> >
> > I am currently using tomcat 5.5 on my labtop which is running on
> > ubuntu.
> > When I access http://localhost:8080/ , i get the default page, which
> > is a
> > good news( meaning tomcat is running) However when I try to place my
> > own
> > html folder(called mms_test) in /usr/local/tomcat/webapps/ROOT and
> > then try
> > to reload the page using  http://localhost:8080/mms_test , i get
> > this error:
> > HTTP Status 404 - /mms_test
>
> You can't put one webapp into another webapp.
>
> Put mms_test in /usr/local/tomcat/webapps
>
>
> -Steve O.
>
>
>
>
> > --
> >
> > *type* Status report
> >
> > *message* */mms_test*
> >
> > *description* *The requested resource (/mms_test) is not
> > available.*
> >
> > any idea why?
> >
> >
> > your help is very much appreciated!
> >
> > best regards
> >
> > On Mon, Dec 22, 2008 at 11:08 AM, Filip Hanik - Dev Lists <
> > devli...@hanik.com> wrote:
> >
> > > here is the name you specify
> > >
> > > jdbc/my_jdbc_name
> > >
> > > and here is your error
> > > Could not find datasource:jdbc/workout_logger
> > >
> > > as you can see, somewhere you have configured the string
> > workout_logger,
> > > and that one doesn't exist
> > >
> > > Filip
> > >
> > >
> > > arturoguedez wrote:
> > >
> > >> Hi!
> > >>
> > >> I have been reading how to setup datasources for Tomcat 6.0.18
> > in
> > >>
> > >>
> > http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-how
> > to.html
> > >> and nothing I have done has allowed my web application to view
> > the
> > >> datasource i have created.
> > >>
> > >> Here are some snippets of my web.xml, and my server.xml
> > >> In the web.xml
> > >>
> > >> 
> > >>DB Connection
> > >>jdbc/my_jdbc_name
> > >>javax.sql.DataSource
> > >>Container
> > >> 
> > >>
> > >> In server.xml
> > >> I have tried to place the following snip it anywhere I saw in the
> > docs it
> > >> could belong to (ei, in the GlobalNamingResources, inside the
> > Host tag, or
> > >> inside the Context tag in all possible locations (under
> > >> META-INF/context.xml, under
> > >> $CATALINA_BASE/conf/[engine]/[host]/[path].xml)
> > >> and I haven't been successful.
> > >>
> > >>   > >> type="javax.sql.DataSource"
> > >>   maxActive="100" maxIdle="30" maxWait="1"
> > >>   username="user" password="password"
> > >> driverClassName="com.mysql.jdbc.Driver"
> > >>
> > >>
> > url="jdbc:mysql://localhost:3306/database_name?autoReconnect=true"/>
> > >>
> > >>
> > >> I am using Entity Managers to get my connections opened, here is
> > the snip
> > >> it
> > >> of my persistence.xml
> > >>
> > >>> >> transaction-type="RESOURCE_LOCAL">
> > >>
> > >>  jdbc/my_jdbc_name
> > >>
> > >>
> > >> Here is what I get in my tomcat logs:
> > >>
> > >> 08/12/21 17:32:17 ERROR ceConnectionProvider: Could not find
> > datasource:
> > >> jdbc/workout_logger
> > >> javax.naming.NameNotFoundException: Name jdbc is not bound in
> > this Context
> > >>at
> > org.apache.naming.NamingContext.lookup(NamingContext.java:770)
> > >>at
> > org.apache.naming.NamingContext.lookup(NamingContext.java:153)
> > >>at
> > >>
> > org.apache.naming.SelectorContext.lookup(SelectorC

Re: Tomcat 5.5 error

2008-12-22 Thread Steve Ochani
On 22 Dec 2008 at 15:43, zia mohades wrote:

Send reply to:  Tomcat Users List 
Date sent:  Mon, 22 Dec 2008 15:43:41 -0500
From:   zia mohades 
To: Tomcat Users List 
Subject:Tomcat 5.5 error

> hello all!
> 
> I am currently using tomcat 5.5 on my labtop which is running on
> ubuntu.
> When I access http://localhost:8080/ , i get the default page, which
> is a
> good news( meaning tomcat is running) However when I try to place my
> own
> html folder(called mms_test) in /usr/local/tomcat/webapps/ROOT and
> then try
> to reload the page using  http://localhost:8080/mms_test , i get
> this error:
> HTTP Status 404 - /mms_test

You can't put one webapp into another webapp.

Put mms_test in /usr/local/tomcat/webapps


-Steve O.




> --
> 
> *type* Status report
> 
> *message* */mms_test*
> 
> *description* *The requested resource (/mms_test) is not
> available.*
> 
> any idea why?
> 
> 
> your help is very much appreciated!
> 
> best regards
> 
> On Mon, Dec 22, 2008 at 11:08 AM, Filip Hanik - Dev Lists <
> devli...@hanik.com> wrote:
> 
> > here is the name you specify
> >
> > jdbc/my_jdbc_name
> >
> > and here is your error
> > Could not find datasource:jdbc/workout_logger
> >
> > as you can see, somewhere you have configured the string
> workout_logger,
> > and that one doesn't exist
> >
> > Filip
> >
> >
> > arturoguedez wrote:
> >
> >> Hi!
> >>
> >> I have been reading how to setup datasources for Tomcat 6.0.18
> in
> >>
> >>
> http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-how
> to.html
> >> and nothing I have done has allowed my web application to view
> the
> >> datasource i have created.
> >>
> >> Here are some snippets of my web.xml, and my server.xml
> >> In the web.xml
> >>
> >> 
> >>DB Connection
> >>jdbc/my_jdbc_name
> >>javax.sql.DataSource
> >>Container
> >> 
> >>
> >> In server.xml
> >> I have tried to place the following snip it anywhere I saw in the
> docs it
> >> could belong to (ei, in the GlobalNamingResources, inside the
> Host tag, or
> >> inside the Context tag in all possible locations (under
> >> META-INF/context.xml, under
> >> $CATALINA_BASE/conf/[engine]/[host]/[path].xml)
> >> and I haven't been successful.
> >>
> >>   >> type="javax.sql.DataSource"
> >>   maxActive="100" maxIdle="30" maxWait="1"
> >>   username="user" password="password"
> >> driverClassName="com.mysql.jdbc.Driver"
> >>
> >> 
> url="jdbc:mysql://localhost:3306/database_name?autoReconnect=true"/>
> >>
> >>
> >> I am using Entity Managers to get my connections opened, here is
> the snip
> >> it
> >> of my persistence.xml
> >>
> >>>> transaction-type="RESOURCE_LOCAL">
> >>
> >>  jdbc/my_jdbc_name
> >>
> >>
> >> Here is what I get in my tomcat logs:
> >>
> >> 08/12/21 17:32:17 ERROR ceConnectionProvider: Could not find
> datasource:
> >> jdbc/workout_logger
> >> javax.naming.NameNotFoundException: Name jdbc is not bound in
> this Context
> >>at
> org.apache.naming.NamingContext.lookup(NamingContext.java:770)
> >>at
> org.apache.naming.NamingContext.lookup(NamingContext.java:153)
> >>at
> >>
> org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
> >>at
> javax.naming.InitialContext.lookup(InitialContext.java:392)
> >>at
> >>
> >>
> org.hibernate.connection.DatasourceConnectionProvider.configure(Data
> sourceConnectionProvider.java:75)
> >>at
> >>
> >>
> org.hibernate.connection.ConnectionProviderFactory.newConnectionProv
> ider(ConnectionProviderFactory.java:137)
> >>at
> >>
> >>
> org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(
> InjectionSettingsFactory.java:29)
> >>at
> >>
> org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java
> :89)
> >>at
> >>
> org.hibernate.cfg.Configuration.buildSettings(Configuration.java:210
> 1)
> >>at
> >>
> >

Tomcat 5.5 error

2008-12-22 Thread zia mohades
hello all!

I am currently using tomcat 5.5 on my labtop which is running on ubuntu.
When I access http://localhost:8080/ , i get the default page, which is a
good news( meaning tomcat is running) However when I try to place my own
html folder(called mms_test) in /usr/local/tomcat/webapps/ROOT and then try
to reload the page using  http://localhost:8080/mms_test , i get this error:
HTTP Status 404 - /mms_test
--

*type* Status report

*message* */mms_test*

*description* *The requested resource (/mms_test) is not available.*

any idea why?


your help is very much appreciated!

best regards

On Mon, Dec 22, 2008 at 11:08 AM, Filip Hanik - Dev Lists <
devli...@hanik.com> wrote:

> here is the name you specify
>
> jdbc/my_jdbc_name
>
> and here is your error
> Could not find datasource:jdbc/workout_logger
>
> as you can see, somewhere you have configured the string workout_logger,
> and that one doesn't exist
>
> Filip
>
>
> arturoguedez wrote:
>
>> Hi!
>>
>> I have been reading how to setup datasources for Tomcat 6.0.18 in
>>
>> http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html
>> and nothing I have done has allowed my web application to view the
>> datasource i have created.
>>
>> Here are some snippets of my web.xml, and my server.xml
>> In the web.xml
>>
>> 
>>DB Connection
>>jdbc/my_jdbc_name
>>javax.sql.DataSource
>>Container
>> 
>>
>> In server.xml
>> I have tried to place the following snip it anywhere I saw in the docs it
>> could belong to (ei, in the GlobalNamingResources, inside the Host tag, or
>> inside the Context tag in all possible locations (under
>> META-INF/context.xml, under
>> $CATALINA_BASE/conf/[engine]/[host]/[path].xml)
>> and I haven't been successful.
>>
>>  > type="javax.sql.DataSource"
>>   maxActive="100" maxIdle="30" maxWait="1"
>>   username="user" password="password"
>> driverClassName="com.mysql.jdbc.Driver"
>>
>>  url="jdbc:mysql://localhost:3306/database_name?autoReconnect=true"/>
>>
>>
>> I am using Entity Managers to get my connections opened, here is the snip
>> it
>> of my persistence.xml
>>
>>   > transaction-type="RESOURCE_LOCAL">
>>
>>  jdbc/my_jdbc_name
>>
>>
>> Here is what I get in my tomcat logs:
>>
>> 08/12/21 17:32:17 ERROR ceConnectionProvider: Could not find datasource:
>> jdbc/workout_logger
>> javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
>>at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
>>at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
>>at
>> org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
>>at javax.naming.InitialContext.lookup(InitialContext.java:392)
>>at
>>
>> org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:75)
>>at
>>
>> org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137)
>>at
>>
>> org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29)
>>at
>> org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89)
>>at
>> org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2101)
>>at
>>
>> org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1325)
>>at
>>
>> org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
>>at
>>
>> org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
>>at
>>
>> org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)
>>at
>>
>> javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
>> 
>>
>>
>>
>> Does anybody know what I am doing wrong? Is there any way to check which
>> resources Tomcat makes avaiable? I am having a really hard time
>> understanding what I am doing wrong.
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>