help on a publication

2005-10-06 Thread Hugo Osorio
here the is what i have done,


what could be the reason because this app is not showing up

thank you in advance for your help
--




by oxygene27 on 2005/10/04 16:39

 Hi everybody again, please help,

 Is it necessary to have the database up, for having the webapp visible in
tomcat? it's just that i have chose as a name mapserv BUT i cannot see my
publication, it is in $TOMCAT_HOME/webapps/mapserv

 I have done

 1. Create a dir in [TOMCAT_HOME]/webapps.

2. Unzip the distribution zip file into this folder.

3. i have created in mysql the database, running the script .sql

4. i have copied the mm.(connector JDBC).jar into the WEB-INF/lib directory

5. i have restarted Tomcat. and go to :
http://myhost:8080/mapserv/index.html

 and appears like nothing exist :S

does not appears anything, like a wrong application

 what can I do?

by artem on 2005/10/04 21:37

 1) Verify that the path to index database (clearinghouse) is correct. Open
WEB-INF/mapserv-home/mapserv.xml. Check the section

 database user=root password=

url=jdbc:mysql://localhost/alov driver=com.mysql.jdbc.Driver
server=MySQL/

 2) Verify that SQL server is up.

 3) Verify that web.xml in the WEB-INF

 The best way to check database is to enter into admin zone.

 http://localhost:8080/map/pump

 If Tomcat and our server are installed correctly you have to see the login
screen. If connection to clearinghouse database is correct after login you
won't see the error message.

by oxygene27 on 2005/10/05 17:58

 thank you, i have followed your indications, but i can't see the webapp
yet, i dont know what's happening... all the servers are up, and the
publication is its right place, this is the message i get:

 -

HTTP Status 404 - /alovmap/index.html

 type Status report

 message /alovmap/index.html

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

Apache Tomcat/5.0.29

-

 my files are here and just like this:

 $TOMCAT/webapps:

drwxr-xr-x 3 www www 512 Oct 4 16:01 ROOT

drwxr-xr-x 11 www www 512 Oct 5 16:11 alovmap

drwxr-xr-x 4 www www 512 Nov 10 2004 balancer

drwxrwxr-x 3 www www 512 Nov 10 2004 dbtest

drwxr-xr-x 21 www www 512 Nov 10 2004 jsp-examples

drwxr-xr-x 7 root www 512 Aug 25 16:23 lenya

drwxr-xr-x 11 www www 512 Oct 5 16:10 mapserv

drwxr-xr-x 4 www www 512 Nov 10 2004 servlets-examples

drwxr-xr-x 12 www www 1024 Nov 10 2004 tomcat-docs

drwxr-xr-x 22 www www 512 Sep 20 09:49 webdav

 alovmap content:

drwxr-xr-x 11 www www 512 Oct 5 16:11 .

drwxr-xr-x 12 www www 512 Oct 3 18:22 ..

-rw-r--r-- 1 www www 3285 Oct 3 18:27 LICENSE.txt

drwxr-xr-x 2 www www 512 Oct 3 18:27 META-INF

drwxr-xr-x 2 www www 512 Oct 3 18:27 Sydney

drwxr-xr-x 4 www www 512 Oct 5 16:03 WEB-INF

-rw-r--r-- 1 www www 266453 Oct 3 18:27 alov_applet.jar

-rw-r--r-- 1 www www 435314 Oct 5 16:11 alov_servlet.jar

drwxr-xr-x 2 www www 512 Oct 3 18:27 base

drwxr-xr-x 2 www www 512 Oct 3 18:27 images

drwxr-xr-x 2 www www 1024 Oct 3 18:27 images_wms

drwxr-xr-x 2 www www 512 Oct 3 18:27 img

-rw-r--r-- 1 www www 2916 Oct 3 18:27 index.html

drwxr-xr-x 2 www www 512 Oct 3 18:27 layouts

-rw-r--r-- 1 www www 1043 Oct 3 18:27 main3.css

drwxr-xr-x 2 www www 1536 Oct 3 18:27 sample

-rw-r--r-- 1 www www 150 Oct 3 18:27 top.html

-rw-r--r-- 1 www www 1386 Oct 3 18:27 up_search.html

-rw-r--r-- 1 www www 10270 Oct 3 18:27 wms.jsp

-rw-r--r-- 1 www www 4334 Oct 3 18:27 wms.xml

-rw-r--r-- 1 www www 3194 Oct 3 18:27 wms_feature.jsp

-rw-r--r-- 1 www www 423 Oct 3 18:27 world.html

-rw-r--r-- 1 www www 4462 Oct 3 18:27 world.xml

-rw-r--r-- 1 www www 51 Oct 3 18:27 world_keymap.gfw

-rw-r--r-- 1 www www 1837 Oct 3 18:27 world_keymap.gif

 I WAS COPYING THE alov_servlet.jar TO THIS DIRECTORY, JUST TESTING... BUT
after restarting the TOMCAT Server it appears the same message, like if
nothing exist.

 what could be the problem ?


Re: help on a publication

2005-10-06 Thread Hugo Osorio
 I have this failure inside the log, when i am trying to see the context in
the navigator..

i can solve this only fixing up the X Window ? I thought X Window had
nothing to do with this

could be another thing?

thank you


2005-10-06 19:32:32 StandardContext[/alovmap]Context initialized
58 2005-10-06 19:32:32 StandardContext[/alovmap]Exception starting filter
ogcFilter
59 java.lang.NoClassDefFoundError
60 at java.lang.Class.forName0(Native Method)
61 at java.lang.Class.forName(Class.java:141)
62 at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(
GraphicsEnvironment.java:62)
63 at java.awt.Font.initializeFont(Font.java:308)
64 at java.awt.Font.init(Font.java:344)
65 at org.alov.map.MapUtils.clinit(MapUtils.java:116)
66 at org.alov.serv.OGC_Filter.init(OGC_Filter.java:179)
67 at org.apache.catalina.core.ApplicationFilterConfig.getFilter(
ApplicationFilterConfig.java:225)
68 at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(
ApplicationFilterConfig.java:308)
69 at org.apache.catalina.core.ApplicationFilterConfig.init(
ApplicationFilterConfig.java:79)
70 at org.apache.catalina.core.StandardContext.filterStart(
StandardContext.java:3702)
71 at org.apache.catalina.core.StandardContext.start(StandardContext.java
:4329)
72 at org.apache.catalina.core.ContainerBase.addChildInternal(
ContainerBase.java:823)
73 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java
:807)
74 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
75 at org.apache.catalina.core.StandardHostDeployer.install(
StandardHostDeployer.java:277)
76 at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
77 at org.apache.catalina.startup.HostConfig.deployDirectories(
HostConfig.java:701)
78 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
79 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
80 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:349)
81 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
LifecycleSupport.java:119)
82 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
83 at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
84 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
85 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
86 at org.apache.catalina.core.StandardService.start(StandardService.java
:480)
87 at org.apache.catalina.core.StandardServer.start(StandardServer.java
:2313)
88 at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
89 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
90 at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
91 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
92 at java.lang.reflect.Method.invoke(Method.java:324)
93 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
94 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)


2005/10/6, Hugo Osorio [EMAIL PROTECTED]:

 here the is what i have done,


 what could be the reason because this app is not showing up

 thank you in advance for your help
 --




 by oxygene27 on 2005/10/04 16:39

  Hi everybody again, please help,

  Is it necessary to have the database up, for having the webapp visible in
 tomcat? it's just that i have chose as a name mapserv BUT i cannot see my
 publication, it is in $TOMCAT_HOME/webapps/mapserv

  I have done

  1. Create a dir in [TOMCAT_HOME]/webapps.

 2. Unzip the distribution zip file into this folder.

 3. i have created in mysql the database, running the script .sql

 4. i have copied the mm.(connector JDBC).jar into the WEB-INF/lib
 directory

 5. i have restarted Tomcat. and go to :
 http://myhost:8080/mapserv/index.html

  and appears like nothing exist :S

 does not appears anything, like a wrong application

  what can I do?

 by artem on 2005/10/04 21:37

  1) Verify that the path to index database (clearinghouse) is correct.
 Open WEB-INF/mapserv-home/mapserv.xml. Check the section

  database user=root password=

 url=jdbc:mysql://localhost/alov driver=com.mysql.jdbc.Driver
 server=MySQL/

  2) Verify that SQL server is up.

  3) Verify that web.xml in the WEB-INF

  The best way to check database is to enter into admin zone.

  http://localhost:8080/map/pump

  If Tomcat and our server are installed correctly you have to see the
 login screen. If connection to clearinghouse database is correct after login
 you won't see the error message.

 by oxygene27 on 2005/10/05 17:58

  thank you, i have followed your indications, but i can't see the webapp
 yet, i dont know what's happening... all the servers are up, and the
 publication is its right place, this is the message i get:

  -

 HTTP Status 404 - /alovmap/index.html

  type Status report

  message /alovmap/index.html

  description

RE: help on a publication

2005-10-06 Thread GB Developer
The reference in your stacktrace might be an indicator that you are not
running tomcat in 'headless' mode. 

And now I understand from where the by so-and-so on such-and-such came
from in your original email.  Check out http://alov.org/topic.do?t_id=369


 by artem  on  2004/02/18 02:54 
Make sure that java on your server is 1.3 or higher. To work in headless
environment (without X server) you have to add the following line in your
catalina.sh

CATALINA_OPTS=-Djava.awt.headless=true $CATALINA_OPTS 




 -Original Message-
 From: Hugo Osorio [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 06, 2005 5:15 PM
 To: Tomcat Users List
 Subject: Re: help on a publication
 
 
  I have this failure inside the log, when i am trying to see 
 the context in the navigator..
 
 i can solve this only fixing up the X Window ? I thought X 
 Window had nothing to do with this
 
 could be another thing?
 
 thank you
 
 
 2005-10-06 19:32:32 StandardContext[/alovmap]Context 
 initialized 58 2005-10-06 19:32:32 
 StandardContext[/alovmap]Exception starting filter ogcFilter 
 59 java.lang.NoClassDefFoundError 60 at 
 java.lang.Class.forName0(Native Method) 61 at 
 java.lang.Class.forName(Class.java:141)
 62 at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(
 GraphicsEnvironment.java:62)
 63 at java.awt.Font.initializeFont(Font.java:308)
 64 at java.awt.Font.init(Font.java:344)
 65 at org.alov.map.MapUtils.clinit(MapUtils.java:116)
 66 at org.alov.serv.OGC_Filter.init(OGC_Filter.java:179)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat related help required

2005-09-28 Thread Santosh Asbe
Hi Nix,
 Please check my reply below. Thanks.
  Santosh

From: Nikola Milutinovic [EMAIL PROTECTED]
Date: Sep 27, 2005 9:13 PM
Subject: Re: (WAS) Generic Types support in Tomcat?
To: Tomcat Users List tomcat-user@jakarta.apache.org

Santosh Asbe wrote:

Hi all,



Hi. First of all, it is very advisable to use a separate thread when
opening a new topic. I am not reprimanding you, I'm merely advising. I
do not consider it rude to jump into someone elses thread of
discussion - I do not consider this thread mine, in the first place.
The problem is, this thread has been going on for some time and most
people are not going to bother reading it at all, so you will loose
valuable audience.

[TCS_TIN]
I by mistake replied to this message. i ahve started a new thread for the
same.

 A] I am using tomcat 4.1.30 ( 32 bit) with Apache 2.0.46 ( this is
standard
apache which comes with RHEL 3.0). I am currently using RHEL 32 bit without
RAID confiuration.



There is no 32-bit version of TC, it is Java application. JVM, of
course, is and should be 32/64-bit.

 Now i am planning to move to 64 bit RHEL 3.0 with RAID configuration but
he
the new Apache of RHEL 3.0 and same tomcat 4.1.30 ( 32 bit).
 I am facing a problem with mod_jk.
I feel it is 32 bit complied mod_jk.



It most likely is.

 Can anyone help me with the solution



Unless you can locate a 64-bit version of mod_jk, try compiling your own
version. You'll need apache-devel-* RPM for that. Some might say that
even 32-bit version of mod_jk will work, but I would fly away from it -
mod_jk is a sensitive pieve of software, connecting (multithreaded)
Apache with multithreaded TC and the version should be as close to the
target platform, as possible.

[TCS_TIN]
i have complied 64 bit mod2_ jk . what is the difference between mod_jk and
mod2_jk?
Now when i start the Apache it is not able to find the JkMount entry in the
ssl.conf file. It gives the following error
 ERROR: Starting httpd: Syntax error on line 121 of
/etc/httpd/conf.d/ssl.conf:
Invalid command 'JkMount', perhaps mis-spelled or defined by a module not
included in the server configuration
 my ssl.conf line 12 states:
  121 JkMount /TIN loadbalancer
122 JkMount /TIN/* loadbalancer
( TIN is the application name)
 Can you tell me what wrong am i doing? or this error is due to me using
mod2_jk??

 B] Also my tomcat goes into hang state . So i have set an parameter
LD_ASSUME_KERNEL=2.4.21. That is my Linux kernel version. Is this ok. where
do i set this parameter. i have set it in the catalina.sh.



The location is OK, but you should not use it on the new kernel. Is it
2.6.x? Older releases of 2.6 branch had a problem with JVM and you had
to set that parameter. New releases should be bug free.
[TCS_TIN]
My Linux version is : Linux blade8 2.4.21-32.EL #1 SMP Fri Apr 15 21:02:58
EDT 2005 x86_64 x86_64 x86_64 GNU/Linux
My version of Kernel is 2.4.21. So it older version right. So i should set
this parameter right? Setting parameter will solve my problem right or
should i set i to lower version of kernel??


 C] Sometime when the tomcat is started it spwans more than one processes.
And then during shudown it creates problems. Also sometimes the list of
open
files goes beyond 1024. that is he ulimit. due to which he tomcat doesnot
respond.



Linux kernel 2.4 emulates threads through lightweight processes/tasks.
There is nothing fundamentally wrong about it (perhaps internal resource
ecconomics are misused), AFAIK, but the ps output is going to confuse
you, showing each thread as a separate process. Nothing problematic
about it.

The number of 1024 processes/threads is alarming, however. TC will
normally wpawn idle worker threads to prepare for future requests, but
the parameter is usually less than 100. I'd say your application is
launching threads for some reason. Either that or there is a serious bug
in your system.
[TCS_TIN] Will check about this .
 D] I am currently using 4.1.30 version of tomcat. Are there any fixes or
upgrades for this tomcat. Can you inform me the link for the same.



4.1.30 is the last normal RPM, I know of. There are newer versions,
check out www.JPackage.org http://www.jpackage.org/. Word of caution,
prepare for RPM dependancy
nightmare, unless you're using some RPM management tool.
[TCS_TIN] Will check the site out.

Nix.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


***
This message is for the named addressees' use only. It may contain NSDL

confidential, proprietary or legally privileged information. If you receive

this message in error, please immediately delete it. You must not, directly

or indirectly, use, disclose, distribute, print, or copy any part of this
message

if you are not the intended recipient.Unless otherwise stated, any
commercial

information given in this message

Tomcat related help required

2005-09-27 Thread Santosh Asbe
Hi all,

A] I am using tomcat 4.1.30 ( 32 bit) with Apache 2.0.46 ( this is standard
apache which comes with RHEL 3.0). I am currently using RHEL 32 bit without
RAID confiuration.

Now i am planning to move to 64 bit RHEL 3.0 with RAID configuration but he
the new Apache of RHEL 3.0 and same tomcat 4.1.30 ( 32 bit).

I am facing a problem with mod_jk.
I feel it is 32 bit complied mod_jk.

Can anyone help me with the solution

B] Also my tomcat goes into hang state . So i have set an parameter
LD_ASSUME_KERNEL=2.4.21. That is my Linux kernel version. Is this ok. where
do i set this parameter. i have set it in the catalina.sh.

C] Sometime when the tomcat is started it spwans more than one processes.
And then during shudown it creates problems. Also sometimes the list of open
files goes beyond 1024. that is he ulimit. due to which he tomcat doesnot
respond.

D] I am currently using 4.1.30 version of tomcat. Are there any fixes or
upgrades for this tomcat. Can you inform me the link for the same.


Thanks in advance.


regards,

Santosh


RE: Desperately need help: What is correct for workers.properties.minimal

2005-09-27 Thread David Thielen
Asking again - thanks - dave


David Thielen
303-499-2544
www.windwardreports.com

-Original Message-
From: David Thielen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 22, 2005 9:09 AM
To: 'Tomcat Users List'
Subject: Desperately need help: What is correct for
workers.properties.minimal

Hi;

I'm running Tomcat 5.5 on Windows 2003/IIS 6.0 using isapi_redirect

The isapi_redirect.exe installer creates a worker.properties.minimal of:
worker.list=wlb,jkstatus
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009
worker.wlb.type=lb
worker.wlb.balance_workers=ajp13w
worker.jkstatus.type=status

While the docs show one of:
worker.list=ajp13w
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009

First, what use is the load balancing if I have just one server running one
instance of Tomcat? Does it load balance within that one instance?

Second, what is jkstatus for?

Third, I am using the non-lb listing above. And it appears to work fine but
occasionally I am getting the following. What does it mean:

[Thu Sep 22 07:30:02 2005] [error] HttpExtensionProc::jk_isapi_plugin.c
(1029): could not get a worker for name ajp13
[Thu Sep 22 07:36:20 2005] [info]  ajp_send_request::jk_ajp_common.c (1178):
Socket 320 is not connected any more (errno=-1)
[Thu Sep 22 07:36:20 2005] [info]  ajp_send_request::jk_ajp_common.c (1202):
Error sending request. Will try another pooled connection

Thanks - dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE:problems with cvs and ant tomcat build script (please help cvs proxy authenticate ???)

2005-09-23 Thread Bovy, Stephen J
 
My proxy server requires authentication,
please tell me how to get cvs and ant tomcat build script working ???  

C:\tomcat-sourcecvs -d
:pserver;proxy=caproxy.ca.com;proxyport=80:[EMAIL PROTECTED]:/home/cvs
public login
Logging in to :pserver:[EMAIL PROTECTED]:2401:/home/cvspublic
CVS password: ***
cvs [login aborted]: Proxy server requires authentication

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Help customize socket options ??

2005-09-23 Thread Bovy, Stephen J
 
Is there any way to customize some of the socket options used 
by tomcat ??

I would like to add the so_reuseaddr option to the sockets 
created by tomcat 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Desperately need help: What is correct for workers.properties.minimal

2005-09-22 Thread David Thielen
Hi;

I'm running Tomcat 5.5 on Windows 2003/IIS 6.0 using isapi_redirect

The isapi_redirect.exe installer creates a worker.properties.minimal of:
worker.list=wlb,jkstatus
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009
worker.wlb.type=lb
worker.wlb.balance_workers=ajp13w
worker.jkstatus.type=status

While the docs show one of:
worker.list=ajp13w
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009

First, what use is the load balancing if I have just one server running one
instance of Tomcat? Does it load balance within that one instance?

Second, what is jkstatus for?

Third, I am using the non-lb listing above. And it appears to work fine but
occasionally I am getting the following. What does it mean:

[Thu Sep 22 07:30:02 2005] [error] HttpExtensionProc::jk_isapi_plugin.c
(1029): could not get a worker for name ajp13
[Thu Sep 22 07:36:20 2005] [info]  ajp_send_request::jk_ajp_common.c (1178):
Socket 320 is not connected any more (errno=-1)
[Thu Sep 22 07:36:20 2005] [info]  ajp_send_request::jk_ajp_common.c (1202):
Error sending request. Will try another pooled connection

Thanks - dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: help with stupid cvs proxy question ??

2005-09-22 Thread Bovy, Stephen J


C:\tomcat-sourceant checkout
Buildfile: build.xml

checkout:
 [echo] If the checkout fails, run `cvs -d
:pserver:[EMAIL PROTECTED]:/
home/cvspublic login` and try again. The password for the anonymous CVS
access i
s `anoncvs`
  [cvs] cvs [checkout aborted]: connect to cvs.apache.org:2401
failed: A con
nection attempt failed because the connected party did not properly
respond afte
r a period of time, or established connection failed because connected
host has
failed to respond.
Terminate batch job (Y/N)? y

C:\tomcat-sourcecvs -d
:pserver;proxy=caproxy.ca.com;proxyport=80:[EMAIL PROTECTED]
he.org:/home/cvspublic login
Logging in to :pserver:[EMAIL PROTECTED]:2401:/home/cvspublic
CVS password: ***
cvs [login aborted]: Proxy server requires authentication

C:\tomcat-source

How do I access cvs when my proxy server requires authentication 


Stephen Bovy
Computer Associates
6100 Center Drive
Suite 700
Los Angeles, CA 90045
Tel: (310) 957-3930
Fax: (310) 957-3917
e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: 5.5.9 Build Script Error Help !!!

2005-09-21 Thread Barbara.Townsend-Batten
Please remove me from this list.

Thanks

-Original Message-
From: Bovy, Stephen J [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 20, 2005 3:57 PM
To: Tomcat Users List
Subject: RE: 5.5.9 Build Script Error Help !!!


 
BUILD FAILED
C:\ESI\jakarta-tomcat-5.5.9-src\build.xml:49: The following error
occurred while  executing this line:
C:\ESI\jakarta-tomcat-5.5.9-src\jakarta-tomcat-5\build.xml:1811: The
following e rror occurred while executing this line:
C:\ESI\jakarta-tomcat-5.5.9-src\jakarta-tomcat-5\build.xml:1911: Error
while exp anding \usr\share\java\file.zip

Total time: 13 seconds
The system cannot find the batch label specified - end

C:\ESI\jakarta-tomcat-5.5.9-src

Stephen Bovy
Computer Associates
6100 Center Drive
Suite 700
Los Angeles, CA 90045
Tel: (310) 957-3930
Fax: (310) 957-3917
e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: 5.5.9 Build Script Error Help !!!

2005-09-21 Thread Markus . Jakob
Please send an email to this adress!!  ;-(

[EMAIL PROTECTED]

Markus

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 21. September 2005 13:29
An: tomcat-user@jakarta.apache.org
Betreff: RE: 5.5.9 Build Script Error Help !!!
Wichtigkeit: Hoch


Please remove me from this list.

Thanks

-Original Message-
From: Bovy, Stephen J [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 20, 2005 3:57 PM
To: Tomcat Users List
Subject: RE: 5.5.9 Build Script Error Help !!!


 
BUILD FAILED
C:\ESI\jakarta-tomcat-5.5.9-src\build.xml:49: The following error occurred
while  executing this line:
C:\ESI\jakarta-tomcat-5.5.9-src\jakarta-tomcat-5\build.xml:1811: The
following e rror occurred while executing this line:
C:\ESI\jakarta-tomcat-5.5.9-src\jakarta-tomcat-5\build.xml:1911: Error while
exp anding \usr\share\java\file.zip

Total time: 13 seconds
The system cannot find the batch label specified - end

C:\ESI\jakarta-tomcat-5.5.9-src

Stephen Bovy
Computer Associates
6100 Center Drive
Suite 700
Los Angeles, CA 90045
Tel: (310) 957-3930
Fax: (310) 957-3917
e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Create Valve and Deploy How to Help Please ????

2005-09-21 Thread Barbara.Townsend-Batten
Please remove me from this reply list.

-Original Message-
From: Bovy, Stephen J [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 20, 2005 11:06 PM
To: Tomcat Users List
Subject: RE: Create Valve and Deploy How to Help Please 


 
I have created a new Valve in the authenticator package called
ThreadSignOn

I added a descritpion for it to the mbean description xml file.

I re-built and verified that my new valve and the new description is in
catalina.jar

But When I refference my new valve nothing happens it does not work 

What else do I need to do ?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Create Valve and Deploy How to Help Please ????

2005-09-21 Thread KEREM ERKAN
BARBARA,

FOR GOD'S SAKE, DO NOT REPLY ALL THESE MAILS AND SEND A BLANK E-MAIL TO

[EMAIL PROTECTED]

TO BE REMOVED FROM THIS REPLY LIST!

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 21, 2005 2:36 PM
 To: tomcat-user@jakarta.apache.org
 Subject: RE: Create Valve and Deploy How to Help Please 
 Importance: High
 
 Please remove me from this reply list.
 
 -Original Message-
 From: Bovy, Stephen J [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 20, 2005 11:06 PM
 To: Tomcat Users List
 Subject: RE: Create Valve and Deploy How to Help Please 
 
 
  
 I have created a new Valve in the authenticator package called
 ThreadSignOn
 
 I added a descritpion for it to the mbean description xml file.
 
 I re-built and verified that my new valve and the new 
 description is in
 catalina.jar
 
 But When I refference my new valve nothing happens it does not work 
 
 What else do I need to do ?
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


smime.p7s
Description: S/MIME cryptographic signature


Re: Create Valve and Deploy How to Help Please ????

2005-09-21 Thread Parsons Technical Services
Remove thyself. Look at the bottom of the email. Spamming the list will not 
help. The list admins are not on 24/7.


Doug


- Original Message - 
From: [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Wednesday, September 21, 2005 7:36 AM
Subject: RE: Create Valve and Deploy How to Help Please 


Please remove me from this reply list.

-Original Message-
From: Bovy, Stephen J [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 20, 2005 11:06 PM
To: Tomcat Users List
Subject: RE: Create Valve and Deploy How to Help Please 



I have created a new Valve in the authenticator package called
ThreadSignOn

I added a descritpion for it to the mbean description xml file.

I re-built and verified that my new valve and the new description is in
catalina.jar

But When I refference my new valve nothing happens it does not work

What else do I need to do ?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat cant see my application folder HELP!!!

2005-09-21 Thread Mbah Tenjoh-Okwen
hello

Im using tomcat 5.5.9 and when i create a
folder(mine)under 
webbaps (tomcat/webapps/mine)i cant even get to its
index.html file by typing http://localhost:8080/mine;
in my browser.The container says The requested
resource (/kopie/) is not available (ie i get a 404
http error report).

on the other hand  accessing the index.html file and
servlet examples in the  servlets-examples folder does
not pose a problem. i could even duplicate this
folder, reanme it and access its index.html file
without anyproblem but as soon as i modify  the DD
(deployment descriptor) i cant view the index.html
file, let alone  access the servlets.

thanks 





___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat cant see my application folder HELP!!!

2005-09-21 Thread Viorel Dragomir

Tomcat is not exactly httpd.

So, try to READ some FREE docs on the website.
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/index.html





Viorel Dragomir

.
..
---



- Original Message - 
From: Mbah Tenjoh-Okwen 
To: Tomcat Users List ; [EMAIL PROTECTED] 
Sent: Wednesday, September 21, 2005 14:19
Subject: Tomcat cant see my application folder HELP!!!


hello

Im using tomcat 5.5.9 and when i create a
folder(mine)under 
webbaps (tomcat/webapps/mine)i cant even get to its
index.html file by typing http://localhost:8080/mine;
in my browser.The container says The requested
resource (/kopie/) is not available (ie i get a 404
http error report).

on the other hand  accessing the index.html file and
servlet examples in the  servlets-examples folder does
not pose a problem. i could even duplicate this
folder, reanme it and access its index.html file
without anyproblem but as soon as i modify  the DD
(deployment descriptor) i cant view the index.html
file, let alone  access the servlets.

thanks 





___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat cant see my application folder HELP!!!

2005-09-21 Thread Leon Rosenberg
you need a WEB-INF directory in your webapp if you want the webapp to be loaded.

On 9/21/05, Mbah Tenjoh-Okwen [EMAIL PROTECTED] wrote:
 hello

 Im using tomcat 5.5.9 and when i create a
 folder(mine)under
 webbaps (tomcat/webapps/mine)i cant even get to its
 index.html file by typing http://localhost:8080/mine;
 in my browser.The container says The requested
 resource (/kopie/) is not available (ie i get a 404
 http error report).

 on the other hand  accessing the index.html file and
 servlet examples in the  servlets-examples folder does
 not pose a problem. i could even duplicate this
 folder, reanme it and access its index.html file
 without anyproblem but as soon as i modify  the DD
 (deployment descriptor) i cant view the index.html
 file, let alone  access the servlets.

 thanks





 ___
 Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with 
 voicemail http://uk.messenger.yahoo.com

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat cant see my application folder HELP!!!

2005-09-21 Thread Mbah Tenjoh-Okwen

I have read those steps and done what they ask of me
but somehow i still get the same behaviour.
Got any other ideas?
 thanks



--- Viorel Dragomir [EMAIL PROTECTED] wrote:

 
 Tomcat is not exactly httpd.
 
 So, try to READ some FREE docs on the website.

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/index.html
 
 
 
 
 
 Viorel Dragomir
 
 .
 ..

---
 
 
 
 - Original Message - 
 From: Mbah Tenjoh-Okwen 
 To: Tomcat Users List ; [EMAIL PROTECTED] 
 Sent: Wednesday, September 21, 2005 14:19
 Subject: Tomcat cant see my application folder
 HELP!!!
 
 
 hello
 
 Im using tomcat 5.5.9 and when i create a
 folder(mine)under 
 webbaps (tomcat/webapps/mine)i cant even get to its
 index.html file by typing
 http://localhost:8080/mine;
 in my browser.The container says The requested
 resource (/kopie/) is not available (ie i get a 404
 http error report).
 
 on the other hand  accessing the index.html file and
 servlet examples in the  servlets-examples folder
 does
 not pose a problem. i could even duplicate this
 folder, reanme it and access its index.html file
 without anyproblem but as soon as i modify  the DD
 (deployment descriptor) i cant view the index.html
 file, let alone  access the servlets.
 
 thanks 
 
 
 
 
 

___
 
 Yahoo! Messenger - NEW crystal clear PC to PC
 calling worldwide with voicemail
 http://uk.messenger.yahoo.com
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
[EMAIL PROTECTED]




___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: 5.5.9 Build Script Error Help !!!

2005-09-20 Thread Bovy, Stephen J
 
BUILD FAILED
C:\ESI\jakarta-tomcat-5.5.9-src\build.xml:49: The following error
occurred while
 executing this line:
C:\ESI\jakarta-tomcat-5.5.9-src\jakarta-tomcat-5\build.xml:1811: The
following e
rror occurred while executing this line:
C:\ESI\jakarta-tomcat-5.5.9-src\jakarta-tomcat-5\build.xml:1911: Error
while exp
anding \usr\share\java\file.zip

Total time: 13 seconds
The system cannot find the batch label specified - end

C:\ESI\jakarta-tomcat-5.5.9-src

Stephen Bovy
Computer Associates
6100 Center Drive
Suite 700
Los Angeles, CA 90045
Tel: (310) 957-3930
Fax: (310) 957-3917
e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Cutomized SingleSignOn Valve Help Please

2005-09-20 Thread Bovy, Stephen J

I have created a new version of the singlesignon valve with a new class
name

SingleSignOn  -  ThreadSignOn

It compiles successfully, but I do not know how to package 
and/or deploy ??

Please Help  should I create a Jar package with a new customized
mbean-descriptor.xml  ??

And then deploy in Catalina/common 
 


Stephen Bovy
Computer Associates
6100 Center Drive
Suite 700
Los Angeles, CA 90045
Tel: (310) 957-3930
Fax: (310) 957-3917
e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Create Valve and Deploy How to Help Please ????

2005-09-20 Thread Bovy, Stephen J
 
I have created a new Valve in the authenticator package called
ThreadSignOn

I added a descritpion for it to the mbean description xml file.

I re-built and verified that my new valve and the new description is in
catalina.jar

But When I refference my new valve nothing happens it does not work 

What else do I need to do ?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: help with embedded tomcat's webapp classloader

2005-09-19 Thread Donald Ball

Donald Ball wrote:

everything works okay but my webapp fails on initialization, with a 
NoClassDefFoundError on net.sf.hibernate.HibernateException. this is 
somewhat surprising given that hibernate.jar lives in the webapp's 
WEB-INF/lib directory. is there some additional configuration i need to 
do on my embedded Context object to force it to act like a normal tomcat 
webapp Context? do i perhaps need to ensure the webapp directory 
structure is in place before constructing my Tomcat instance? (that is 
to say, are the contents of WEB-INF/lib examined when the Context is 
created and/or added to the Host, or when tomcat is started?)


i worked around this issue by simply adding the classpath resources 
under WEB-INF to the classpath of the swt application in which tomcat is 
embedded. not a very elegant solution, but it'll do for the moment. now 
i find that jsp files cannot be compiled because Jasper is unable to 
find a javac compiler; com.sun.tools.javac.Main is not on the classpath.


ought i hunt down tools.jar and add that to my classpath manually as 
well, or can someone point me towards some documentation w.r.t. 
configuring embedded tomcat's webapp classloaders? i'm frankly unable to 
tell if this behavior is expected and i'm supposed to be manually doing 
some extra initialiation work on my Context, or if this is unusual 
behavior and i'm doing something wrong? any suggestions?


- donald

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Help figuring out Virtual Hosts

2005-09-17 Thread Jilles van Gurp
You can use multiple hosttags in the server.xml, each with their own 
context. As described here

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html

One or more Host elements are nested inside an Engine element. Inside 
the Host element, you can nest Context elements for the web applications 
associated with this virtual host. Exactly one of the Hosts associated 
with each Engine MUST have a name matching the defaultHost attribute of 
that Engine.


You give each application its own host and it should work fine. You can 
also use alias tags inside a host tag if you want an application to be 
available for multiple hosts.


Jilles



Dola Woolfe wrote:

Hi,

I've certainly RTFM'd and had thoroughly read

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html#Host%20Name%20Aliases

but I just can't figure out how to get virtual servers
to work.

Basically, assume that DNS is set up properly and that
ServerA.com ServerB.com and Server.com resolve to the
same IP. Now, I want ServerA.com to go to
Server.com/MyAppA/index.jsp and ServerB.com to go to
Server.com/MyAppB/index.jsp. This, in my mind is sort
of like how Apache lets you do it, where of course it
takes advantage of the convention of index.html being
the default destination.

OK, how do I achieve this with Tomcat? Could anyone
please provide a specific example?

Many thanks,

Dola



__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



neiter admin nor manager works !!? can you help!?

2005-09-16 Thread Yassine ELassad
iam having a strange issue with tomcat5.0.28 running on suse linux 9.1 and  
working behinde Apache using mod_jk:

this is my server.xml:
=
?xml version='1.0' encoding='utf-8'?

Server debug=9
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  GlobalNamingResources
  /GlobalNamingResources
Service name=DOApache
Connector   acceptCount=100
 connectionTimeout=2
 disableUploadTimeout=true
 port=8080
 redirectPort=8443
/Connector
Connector  acceptCount=6
connectionLinger=0
connectionTimeout=0
connectionUploadTimeout=0
enableLookups=true
maxProcessors=75
port=8009
protocol=AJP/1.3

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
redirectPort=8443
tcpNoDelay=false
/Connector
Engine debug=9 defaultHost=do-web.de name=DOApache
Host appBase=/srv/www/tomcat/base/work/DOApache 
debug=9 name=do-web.de
Valve   
className=org.apache.catalina.valves.AccessLogValve
 fileDateFormat=-MM-dd
 pattern=%h %l %u %t quot;%rquot; %s 
%b quot;%{Referer}iquot; quot;%{User-Agent}iquot;
 prefix=do_access.
 suffix=.log/
/Host
Logger 
className=org.apache.catalina.logger.FileLogger
 prefix=dom_fileloger. timestamp=true/
Realm 
className=org.apache.catalina.realm.MemoryRealm/
Valve   
className=org.apache.catalina.valves.AccessLogValve
 fileDateFormat=-MM-dd
 pattern=%h %l %u %t quot;%rquot; %s %b 
quot;%{Referer}iquot; quot;%{User-Agent}iquot;
 prefix=do_accesslogV.
 suffix=.log/
/Engine
/Service
/Server
===

my problem is that when accessing the admin application loging in works fine 
creating services too only when i try to see the the contenant of a service  i 
gets an error message :
-
HTTP Status 500 -

type Exception report

message

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

exception

javax.servlet.ServletException: Define tag cannot set a null value

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)

-
i dont really know what could be causing this anyone of you guys can give me a 
help with it ??
my second issue is that after calling  the manager application http:// 
myhost/manager
i get the contenant of the directory manager listed by tomcat  and manager 
the application is not responding at al or not running  i ll be glad if you 
guys can help me to fix this stuff

Greetings From Cologne!

Yassine
__
Verpassen Sie keine eBay-Auktion und bieten Sie bequem
und schnell über das Telefon mit http://www.telefonbieten.de

Ihre eMails auf dem Handy lesen - ohne Zeitverlust - 24h/Tag
eMail, FAX, SMS, VoiceMail mit http://www.directbox.com



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Help figuring out Virtual Hosts

2005-09-16 Thread Dola Woolfe
Hi,

I've certainly RTFM'd and had thoroughly read

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html#Host%20Name%20Aliases

but I just can't figure out how to get virtual servers
to work.

Basically, assume that DNS is set up properly and that
ServerA.com ServerB.com and Server.com resolve to the
same IP. Now, I want ServerA.com to go to
Server.com/MyAppA/index.jsp and ServerB.com to go to
Server.com/MyAppB/index.jsp. This, in my mind is sort
of like how Apache lets you do it, where of course it
takes advantage of the convention of index.html being
the default destination.

OK, how do I achieve this with Tomcat? Could anyone
please provide a specific example?

Many thanks,

Dola



__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



help with embedded tomcat's webapp classloader

2005-09-16 Thread Donald Ball
hey guys. i'm trying out embedding tomcat 5.0 in an swt app that creates 
complex configuration data for a webapp. basically, i'd like the users 
to be able to do a test deploy of the webapp on their own box using 
hsqldb and an embedded tomcat.


my code looks more or less like so:

import org.apache.catalina.*;
import org.apache.catalina.logger.FileLogger;
import org.apache.catalina.realm.MemoryRealm;
import org.apache.catalina.startup.Embedded;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import java.net.InetAddress;

public final class Tomcat {

private static final Log log = LogFactory.getLog(Tomcat.class);

private final Embedded embeddedTomcat;
private final Engine baseEngine;
private final Host baseHost;
private final Context rootContext;

public Tomcat() {
embeddedTomcat = new Embedded();

final FileLogger fileLogger = new FileLogger();
fileLogger.setDirectory(.);
fileLogger.setPrefix(myTomcat);
fileLogger.setSuffix(.log);
fileLogger.setTimestamp(true);
embeddedTomcat.setLogger(fileLogger);

final MemoryRealm memoryRealm = new MemoryRealm();
embeddedTomcat.setRealm(memoryRealm);

baseEngine = embeddedTomcat.createEngine();
baseEngine.setName(myEngine);
baseEngine.setDefaultHost(localhost);

baseHost = embeddedTomcat.createHost(localhost, webapps);
baseEngine.addChild(baseHost);

rootContext = embeddedTomcat.createContext(, ROOT);
baseHost.addChild(rootContext);

embeddedTomcat.addEngine(baseEngine);

final Connector httpConnector = 
embeddedTomcat.createConnector((InetAddress)null, 8080, false);

embeddedTomcat.addConnector(httpConnector);
}

public void start() {
try {
embeddedTomcat.start();
} catch (LifecycleException e) {
log.error(Error starting tomcat, e);
}
}

public void stop() {
try {
embeddedTomcat.stop();
} catch (LifecycleException e) {
log.error(Error stopping tomcat, e);
}
}

}

everything works okay but my webapp fails on initialization, with a 
NoClassDefFoundError on net.sf.hibernate.HibernateException. this is 
somewhat surprising given that hibernate.jar lives in the webapp's 
WEB-INF/lib directory. is there some additional configuration i need to 
do on my embedded Context object to force it to act like a normal tomcat 
webapp Context? do i perhaps need to ensure the webapp directory 
structure is in place before constructing my Tomcat instance? (that is 
to say, are the contents of WEB-INF/lib examined when the Context is 
created and/or added to the Host, or when tomcat is started?)


- donald

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Help figuring out Virtual Hosts

2005-09-16 Thread Durfee, Bernard
Dola,
I believe in order to serve static content you'll need to create a
context XML file. I just posted an email outlining how I was able to get
virtual hosting working. An additional step in your case would be to
create a file [TOMCAT]/conf/Catalina/servera.com/ROOT.xml and include a
context definition. The your content would reside in the
[TOMCAT]/webapps-servera.com directory.

Bernie



 -Original Message-
 From: Dola Woolfe [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 16, 2005 2:44 PM
 To: Tom Cat
 Subject: Help figuring out Virtual Hosts
 
 
 Hi,
 
 I've certainly RTFM'd and had thoroughly read
 
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.ht
ml#Host%20Name%20Aliases
 
 but I just can't figure out how to get virtual servers
 to work.
 
 Basically, assume that DNS is set up properly and that 
 ServerA.com ServerB.com and Server.com resolve to the same 
 IP. Now, I want ServerA.com to go to 
 Server.com/MyAppA/index.jsp and ServerB.com to go to 
 Server.com/MyAppB/index.jsp. This, in my mind is sort of like 
 how Apache lets you do it, where of course it takes advantage 
 of the convention of index.html being the default destination.
 
 OK, how do I achieve this with Tomcat? Could anyone
 please provide a specific example?
 
 Many thanks,
 
 Dola
 
 
   
 __ 
 Yahoo! Mail - PC Magazine Editors' Choice 2005 
 http://mail.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Immedidate help needed multiple hosts

2005-09-15 Thread Lalitha Prasad

Hi,

We are getting DataSources problem while setting multiple hosts with
tomcat-5.5.Also we using MS SQL Server for database.

Server.xml entry
..
HOST name='xyz.org' appBase='/home/abc/'
Aliaswww.xyz.org/Alias
/Host

in conf/catalina/ we have
xyz.org folder
in that we have context.xml. It contains entires as

?xml version=1.0 encoding=UTF-8?
Context
   docBase=
   reloadable=true
   swallowOutput=true
 Resource
   auth=Container
   name=jdbc/protocol
   type=javax.sql.DataSource
factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory
   password=pwd
   driverClassName=com.microsoft.jdbc.sqlserver.SQLServerDriver
   maxIdle=30
   maxWait=1
   username=userid

url=jdbc:microsoft:sqlserver://host:1433;DatabaseName=db;SelectMethod=Cursor
   maxActive=100/
 WatchedResourceWEB-INF/web.xml/WatchedResource
 WatchedResourceMETA-INF/context.xml/WatchedResource
/Context

In the  home/abc/META-INF we also have same above content as abc.xml.

But, when we try to login into the application it's not able to create
database connection from the URL. It seems it's not loading the driver.



Can any one please help us in this case asap.


Thanks,
LALITH

_
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Can anyone help with a MySQL ConnectorJ prob pls?

2005-09-15 Thread Kyle

Hi All,

I am using the com.mysql.jdbc.Driver to connect to MySQL.

I have managed to retrieve an apache.commons.dbcp.PoolableConnection to 
my MySQL server and retrieve results with a server.xml Resource like so;


Resource name=jdbc/iws auth=Container 
type=javax.sql.DataSource/

 ResourceParams name=jdbc/iws
   parameter
 namefactory/name
 
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value

   /parameter
   parameter
  namedriverClassName/name
  valuecom.mysql.jdbc.Driver/value
   /parameter

However I don't seem to be able to pull up a MysqlPooledConnection when 
I replace that factory with;


   parameter
 namefactory/name
 
valuecom.mysql.jdbc.jdbc2.optional.MysqlDataSourceFactory/value

   /parameter


Can anyone tell me what I am missing pls?


--

Kind Regards

Kyle


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[SOLVED] :) user authetication on MySql db issue need some help!

2005-09-13 Thread yel
hello everyone,

i found out what was the problem:)

okay the problem is that my jdbc driver was to old and could not comunicate 
with my mysql  and after finding that out using a java  based  mysql 
administartion tool (dbvisualzer)
i could not login and i was wondering the whole tiome what could be the source 
of the problem and i find out that yesterday as i was debuggin (seeking the 
problem i setted the passwords without md5 no digest and  my passwords was as a 
MD5 crypted   so the request

050913 14:40:12   5 Execute [1] SELECT user_pass FROM users WHERE 
user_name = ?
  5 Execute [2] SELECT role_name FROM user_roles WHERE 
user_name = ?


did not match the e115d589186390dd1405e7034d897  not i added the digest=MD5 
to my server xml again and thing works fine


one thing iam now dealing with is how to lets tomcat manager grab the user  and 
roles data from the db

okay have a great time everyone!

regards and dont give up :)


yassine
ps: Wade thanks again!



 directBOX Reply ---
From: WadeChandler ([EMAIL PROTECTED])
To: TomcatUsersList (tomcat-user@jakarta.apache.org)
Date: 12.09.2005 18:41:54

--- Yassine ELassad [EMAIL PROTECTED] wrote:

 hi list,

 iam about to set my user to a database instead of
 file and i am now trying  to get that done on a
 mysql rdbms
 i created the following tables :
 mysql use authority;
 Database changed
 mysql show tables;
 +-+
 | Tables_in_authority |
 +-+
 | user_roles  |
 | users   |
 +-+
 2 rows in set (0.00 sec)

 mysql describe user_roles;

+---+-+--+-+-+---+
 | Field | Type| Null | Key | Default |
 Extra |

+---+-+--+-+-+---+
 | user_name | varchar(15) |  | PRI | |
 |
 | role_name | varchar(10) |  | | |
 |

+---+-+--+-+-+---+
 2 rows in set (0.00 sec)

 mysql describe users;

+---+-+--+-+-+---+
 | Field | Type| Null | Key | Default |
 Extra |

+---+-+--+-+-+---+
 | user_name | varchar(15) |  | PRI | |
 |
 | user_pass | varchar(32) |  | | |
 |

+---+-+--+-+-+---+
 2 rows in set (0.00 sec)


 and this  this is my server.xml:


 =
 Server port=8005 shutdown=SHUTDOWN
  GlobalNamingResources
 !-- Used by Manager webapp --
 Resource name=UserDatabase auth=Container

 type=org.apache.catalina.UserDatabase
   description=User database that can be updated
 and saved

/Resource


ResourceParams name=UserDatabase
  parameter
 namefactory/name


valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
 namepathname/name
 valueconf/tomcat-users.xml/value
   /parameter
/ResourceParams
   /GlobalNamingResources


   Service name=Catalina
 Connector port=8080 /

 !-- This is here for compatibility only, not
 required --
 Connector port=8009 protocol=AJP/1.3 /

 Engine name=Catalina defaultHost=localhost
   Logger
 className=org.apache.catalina.logger.FileLogger /

   Realm

className=org.apache.catalina.realm.UserDatabaseRealm
  resourceName=UserDatabase /

realm
 className=org.apache.catalina.realm.JDBCRealm
 debug=99
   driverName=org.gjt.mm.mysql.Driver

 connectionURL=jdbc:mysql://dekold4711/authority
   connectionName=tomcat
 connectionPassword=tomcat
   userTable=users userNameCol=user_name
 userCredCol=user_pass
   userRoleTable=user_roles
 roleNameCol=role_name
   digest=md5 /

   Host name=localhost appBase=webapps /
 /Engine
   /Service
 /Server
 

 each time iam trying to login i gets an error
 message telling me wrong username or wrong password
 catalina.out dont show any susspecious errors any
 idea what i could be doing wrong please!!

 regards Yassine ELassad

I'm using mysql fine.  I use a context.xml file for my
web app in META-INF and this is it:
?xml version=1.0 encoding=UTF-8?
Context path= reloadable=true
  Resource auth=Container
driverClassName=com.mysql.jdbc.Driver
maxActive=100 maxIdle=30 maxWait=1
name=jdbc/caro462 password=
removeAbandoned=true type=javax.sql.DataSource
url=jdbc:mysql://localhost:3306/caro462?autoReconnect=true
username=caro462/
  Realm
className=org.apache.catalina.realm.DataSourceRealm
dataSourceName=jdbc/caro462 debug=99
localDataSource=true roleNameCol=role
userCredCol=password userNameCol=userid
userRoleTable=USERROLELINKS userTable=USERS/
/Context

I then have my web.xml file setup with different
security constraints like this one:
   

user authetication on MySql db issue need some help!

2005-09-12 Thread Yassine ELassad
hi list,

iam about to set my user to a database instead of file and i am now trying  to 
get that done on a mysql rdbms
i created the following tables :
mysql use authority;
Database changed
mysql show tables;
+-+
| Tables_in_authority |
+-+
| user_roles  |
| users   |
+-+
2 rows in set (0.00 sec)

mysql describe user_roles;
+---+-+--+-+-+---+
| Field | Type| Null | Key | Default | Extra |
+---+-+--+-+-+---+
| user_name | varchar(15) |  | PRI | |   |
| role_name | varchar(10) |  | | |   |
+---+-+--+-+-+---+
2 rows in set (0.00 sec)

mysql describe users;
+---+-+--+-+-+---+
| Field | Type| Null | Key | Default | Extra |
+---+-+--+-+-+---+
| user_name | varchar(15) |  | PRI | |   |
| user_pass | varchar(32) |  | | |   |
+---+-+--+-+-+---+
2 rows in set (0.00 sec)


and this  this is my server.xml:


=
Server port=8005 shutdown=SHUTDOWN
 GlobalNamingResources
!-- Used by Manager webapp --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
  description=User database that can be updated and saved

   /Resource


   ResourceParams name=UserDatabase
 parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
 /parameter
 parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
   /ResourceParams
  /GlobalNamingResources


  Service name=Catalina
Connector port=8080 /

!-- This is here for compatibility only, not required --
Connector port=8009 protocol=AJP/1.3 /

Engine name=Catalina defaultHost=localhost
  Logger className=org.apache.catalina.logger.FileLogger /

  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 resourceName=UserDatabase /

   realm className=org.apache.catalina.realm.JDBCRealm debug=99
driverName=org.gjt.mm.mysql.Driver
connectionURL=jdbc:mysql://dekold4711/authority
connectionName=tomcat connectionPassword=tomcat
userTable=users userNameCol=user_name 
userCredCol=user_pass
userRoleTable=user_roles roleNameCol=role_name
digest=md5 /

  Host name=localhost appBase=webapps /
/Engine
  /Service
/Server


each time iam trying to login i gets an error message telling me wrong username 
or wrong password  catalina.out dont show any susspecious errors any idea what 
i could be doing wrong please!!

regards Yassine ELassad
__
Verpassen Sie keine eBay-Auktion und bieten Sie bequem
und schnell über das Telefon mit http://www.telefonbieten.de

Ihre eMails auf dem Handy lesen - ohne Zeitverlust - 24h/Tag
eMail, FAX, SMS, VoiceMail mit http://www.directbox.com



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: user authetication on MySql db issue need some help!

2005-09-12 Thread Wade Chandler
--- Yassine ELassad [EMAIL PROTECTED] wrote:

 hi list,
 
 iam about to set my user to a database instead of
 file and i am now trying  to get that done on a
 mysql rdbms
 i created the following tables :
 mysql use authority;
 Database changed
 mysql show tables;
 +-+
 | Tables_in_authority |
 +-+
 | user_roles  |
 | users   |
 +-+
 2 rows in set (0.00 sec)
 
 mysql describe user_roles;

+---+-+--+-+-+---+
 | Field | Type| Null | Key | Default |
 Extra |

+---+-+--+-+-+---+
 | user_name | varchar(15) |  | PRI | |  
 |
 | role_name | varchar(10) |  | | |  
 |

+---+-+--+-+-+---+
 2 rows in set (0.00 sec)
 
 mysql describe users;

+---+-+--+-+-+---+
 | Field | Type| Null | Key | Default |
 Extra |

+---+-+--+-+-+---+
 | user_name | varchar(15) |  | PRI | |  
 |
 | user_pass | varchar(32) |  | | |  
 |

+---+-+--+-+-+---+
 2 rows in set (0.00 sec)
 
 
 and this  this is my server.xml:
 
 
 =
 Server port=8005 shutdown=SHUTDOWN
  GlobalNamingResources
 !-- Used by Manager webapp --
 Resource name=UserDatabase auth=Container
  
 type=org.apache.catalina.UserDatabase
   description=User database that can be updated
 and saved
 
/Resource
 
 
ResourceParams name=UserDatabase
  parameter
 namefactory/name


valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
 namepathname/name
 valueconf/tomcat-users.xml/value
   /parameter
/ResourceParams
   /GlobalNamingResources
 
 
   Service name=Catalina
 Connector port=8080 /
 
 !-- This is here for compatibility only, not
 required --
 Connector port=8009 protocol=AJP/1.3 /
 
 Engine name=Catalina defaultHost=localhost
   Logger
 className=org.apache.catalina.logger.FileLogger /
 
   Realm

className=org.apache.catalina.realm.UserDatabaseRealm
  resourceName=UserDatabase /
 
realm
 className=org.apache.catalina.realm.JDBCRealm
 debug=99
   driverName=org.gjt.mm.mysql.Driver
   
 connectionURL=jdbc:mysql://dekold4711/authority
   connectionName=tomcat
 connectionPassword=tomcat
   userTable=users userNameCol=user_name
 userCredCol=user_pass
   userRoleTable=user_roles
 roleNameCol=role_name
   digest=md5 /
 
   Host name=localhost appBase=webapps /
 /Engine
   /Service
 /Server
 
 
 each time iam trying to login i gets an error
 message telling me wrong username or wrong password 
 catalina.out dont show any susspecious errors any
 idea what i could be doing wrong please!!
 
 regards Yassine ELassad

I'm using mysql fine.  I use a context.xml file for my
web app in META-INF and this is it:
?xml version=1.0 encoding=UTF-8?
Context path= reloadable=true
  Resource auth=Container
driverClassName=com.mysql.jdbc.Driver
maxActive=100 maxIdle=30 maxWait=1
name=jdbc/caro462 password=
removeAbandoned=true type=javax.sql.DataSource
url=jdbc:mysql://localhost:3306/caro462?autoReconnect=true
username=caro462/
  Realm
className=org.apache.catalina.realm.DataSourceRealm
dataSourceName=jdbc/caro462 debug=99
localDataSource=true roleNameCol=role
userCredCol=password userNameCol=userid
userRoleTable=USERROLELINKS userTable=USERS/
/Context

I then have my web.xml file setup with different
security constraints like this one:
   security-constraint
  display-nameAgent security
constraint/display-name
  web-resource-collection
 web-resource-nameAgents/web-resource-name
 !-- Define the context-relative URL(s) to be
protected --
 url-pattern/agents/secure/*/url-pattern
  /web-resource-collection
  auth-constraint
 !-- Anyone with one of the listed roles may
access this area --
 role-nameAdministrator/role-name
 role-nameAgencyAdministrator/role-name
 role-nameAgent/role-name
  /auth-constraint
/security-constraint


I can login fine.  You certainly have to make sure you
have your roles linking to your user name.

Wade

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



All users help needed to track down all access to HttpSession.getAttribute in Tomcat 5.0.x and 5.5.x

2005-09-09 Thread Wade Chandler
All,

There is an issue in Tomcat 5.0.x and 5.5.x which
affects concurrency.  The deal is
HttpSession.getAttribute is not synchronized and can
cause the failure of session variable lookup as well
as an infinite or very long running loop to occur
during a getAttribute call.  There is no guarentee
that setAttribute will remain synchronized in the
future according the information from Tomcat
developers in the original bug report and how this is
always the developers problem.  The Tomcat source code
has different places where HttpSession.getAttribute
and setAttribute are called (notibly the standard JSP
tags jsp:getAttribute and jsp:useBean) which are not
being synchronized when they need to be.  These need
to be found and reported as bugs so they can be
corrected.  Remember that access to the session in any
way where the end developer (JSP or Servlet
developers) can't synchronize and protect against
concurrency issues or where it doesn't make sense for
them to (JSP tags) needs to be found and reported as
bugs.  Any help is appreciated and it helps everybody.
 Everyone can send me their findings to mail alias
[EMAIL PROTECTED] and I can be a
point for creating the bug report in BugZilla for
these particular bugs.

Please see:
http://issues.apache.org/bugzilla/show_bug.cgi?id=36541
and
http://issues.apache.org/bugzilla/show_bug.cgi?id=36586

for more details

Thanks,

Wade

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



httpfilterproc overflowing event logs help

2005-09-08 Thread Keddie, Robert








Recently upgraded to tomcat 5.028 on windows 2000 server.
Loaded 4.1.2.09 sdk and the jakarta-tomcat-connects-jk2.0.4-win32-IIS.zip. Now
in my application events logs we are getting information errors like the ones
below that fill up our application log: Debug: [jk_isapi_plugin.c (429)]:
HttpFilterProc check if [/contents.htm] is pointing to the web-inf directory
Debug: [jk_isapi_plugin.c (420)]: HttpFilterProc [/contents.htm] is not a
servlet url Debug: [jk_isapi_plugin.c (308)]: In HttpFilterProc Virtual Host
redirection of ipaddress : 80 Any ideas on how to make this stop??? It appears that
even .htm pages created in frontpage 2003 are going through the redirection
process. HELP





Robert Keddie

Web Development/MIS

Phone: (352)671-8802
Marion County BCC

Florida












where to deploy my .war and how ? help needed please!

2005-09-07 Thread Yassine ELassad
good morning list,

(sorry for the long mail)

im running Tomcat behind an apache Server using mod_jk2 everything seems to be 
working fine but im really confused about one thing
where to deploy my .war files to???

OS Suse Linux 9.1
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)


tomcat is at -  /usr/share/tomcat

webapps is at /srv/www/tomcat/base/webapps

my server.xml :
==
Server port=8005 shutdown=SHUTDOWN debug=9
Service name=Tomcat-Apache
!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector className=org.apache.coyote.tomcat5.CoyoteConnector
port=8009
minProcessors=5
maxProcessors=75
enableLookups=true
redirectPort=8443
acceptCount=10
debug=9
connectionTimeout=2
useURIValidationHack=true

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
!-- While starting off, leave debugging high for help in 
diagn. --
!-- When done, turn it back to 0 --
Engine name=DoApache defaultHost=do-web.de debug=9
Logger 
className=org.apache.catalina.logger.FileLogger
prefix=doweb_fileloger.
suffix=.log
timestamp=true/
!-- Access log processes all requests for this virtual 
host. --
!-- Leave pattern=combined for the most 
comprehensive logging --
Valve 
className=org.apache.catalina.valves.AccessLogValve
directory=logs
prefix=doweb_accesslogV.
suffix=.log
pattern=combined
resolveHosts=false/
Host name=DoDemo debug=0
appBase=/srv/www/demo
unpackWARs=true autoDeploy=true
Context path= docBase=/srv/www/demo 
debug=0/
Valve 
className=org.apache.catalina.valves.AccessLogValve
directory=logs  
prefix=demo_accesslogV.
suffix=.log 
pattern=combined resolveHosts=false/
/Host
Host name=doweb.de debug=9
appBase=/srv/www/htdocs
unpackWARs=true autoDeploy=true
Context path= docBase=/srv/www/htdocs 
debug=9/
Valve 
className=org.apache.catalina.valves.AccessLogValve
directory=logs  
prefix=dom_access.
suffix=.log 
pattern=combined resolveHosts=false/
/Host
/Engine
/Service
/Server

startup log from catalina.out :
===
Sep 7, 2005 8:05:29 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1288 ms
Sep 7, 2005 8:05:29 AM org.apache.catalina.core.StandardService start
INFO: Starting service Tomcat-Apache
Sep 7, 2005 8:05:29 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.19
Sep 7, 2005 8:05:29 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Sep 7, 2005 8:05:29 AM org.apache.catalina.startup.ContextConfig 
applicationConfig
INFO: Missing application web.xml, using defaults only 
StandardEngine[DOMApache].StandardHost[domdemo].StandardContext[]
Sep 7, 2005 8:05:30 AM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Sep 7, 2005 8:05:30 AM org.apache.catalina.startup.HostConfig deployWARs
WARNING: Exception while expanding web application archive BMIWizardDe.war
Sep 7, 2005 8:05:30 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Sep 7, 2005 8:05:30 AM org.apache.catalina.startup.ContextConfig 
applicationConfig

RE: where to deploy my .war and how ? help needed please!

2005-09-07 Thread Guy Katz
put it under your webapps and put a context elements with all its sub elements 
to configure the app in the server.xml file in the tomcat conf directory.

-Original Message-
From: Yassine ELassad [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 07, 2005 10:01 AM
To: tomcat-user@jakarta.apache.org
Subject: where to deploy my .war and how ? help needed please!


good morning list,

(sorry for the long mail)

im running Tomcat behind an apache Server using mod_jk2 everything seems to be 
working fine but im really confused about one thing
where to deploy my .war files to???

OS Suse Linux 9.1
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)


tomcat is at -  /usr/share/tomcat

webapps is at /srv/www/tomcat/base/webapps

my server.xml :
==
Server port=8005 shutdown=SHUTDOWN debug=9
Service name=Tomcat-Apache
!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector className=org.apache.coyote.tomcat5.CoyoteConnector
port=8009
minProcessors=5
maxProcessors=75
enableLookups=true
redirectPort=8443
acceptCount=10
debug=9
connectionTimeout=2
useURIValidationHack=true

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
!-- While starting off, leave debugging high for help in 
diagn. --
!-- When done, turn it back to 0 --
Engine name=DoApache defaultHost=do-web.de debug=9
Logger 
className=org.apache.catalina.logger.FileLogger
prefix=doweb_fileloger.
suffix=.log
timestamp=true/
!-- Access log processes all requests for this virtual 
host. --
!-- Leave pattern=combined for the most 
comprehensive logging --
Valve 
className=org.apache.catalina.valves.AccessLogValve
directory=logs
prefix=doweb_accesslogV.
suffix=.log
pattern=combined
resolveHosts=false/
Host name=DoDemo debug=0
appBase=/srv/www/demo
unpackWARs=true autoDeploy=true
Context path= docBase=/srv/www/demo 
debug=0/
Valve 
className=org.apache.catalina.valves.AccessLogValve
directory=logs  
prefix=demo_accesslogV.
suffix=.log 
pattern=combined resolveHosts=false/
/Host
Host name=doweb.de debug=9
appBase=/srv/www/htdocs
unpackWARs=true autoDeploy=true
Context path= docBase=/srv/www/htdocs 
debug=9/
Valve 
className=org.apache.catalina.valves.AccessLogValve
directory=logs  
prefix=dom_access.
suffix=.log 
pattern=combined resolveHosts=false/
/Host
/Engine
/Service
/Server

startup log from catalina.out :
===
Sep 7, 2005 8:05:29 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1288 ms
Sep 7, 2005 8:05:29 AM org.apache.catalina.core.StandardService start
INFO: Starting service Tomcat-Apache
Sep 7, 2005 8:05:29 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.19
Sep 7, 2005 8:05:29 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Sep 7, 2005 8:05:29 AM org.apache.catalina.startup.ContextConfig 
applicationConfig
INFO: Missing application web.xml, using defaults only 
StandardEngine[DOMApache].StandardHost[domdemo].StandardContext[]
Sep 7, 2005 8:05:30 AM org.apache.catalina.core.StandardHost getDeployer
INFO: Create

RE: where to deploy my .war and how ? help needed please!

2005-09-07 Thread Sonja Löhr

I'm no expert, but isnt' the docbase of a context evaluated relative to
the HOST's appbase?
so I guess your docBase path should not contain /srv/www/htdocs.
 

Am Mittwoch, den 07.09.2005, 10:04 +0300 schrieb Guy Katz:
 Context path= docBase=/srv/www/htdocs debug=9/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: where to deploy my .war and how ? help needed please!

2005-09-07 Thread Mert Eren ÜSTÜNKAYA

Hey Yassine,

   You should deploy your codes under webapps.
I am using tomcats manager to deploy my war files i recommend it to you.

http://localhost:8080/manager/html

u can give your war file to it and deploy with out any problems..





Yassine ELassad wrote:


good morning list,

(sorry for the long mail)

im running Tomcat behind an apache Server using mod_jk2 everything seems to be 
working fine but im really confused about one thing
where to deploy my .war files to???

OS Suse Linux 9.1
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)


tomcat is at -  /usr/share/tomcat

webapps is at /srv/www/tomcat/base/webapps

my server.xml :
==
Server port=8005 shutdown=SHUTDOWN debug=9
   Service name=Tomcat-Apache
   !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
   Connector className=org.apache.coyote.tomcat5.CoyoteConnector
   port=8009
   minProcessors=5
   maxProcessors=75
   enableLookups=true
   redirectPort=8443
   acceptCount=10
   debug=9
   connectionTimeout=2
   useURIValidationHack=true
   
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
   !-- While starting off, leave debugging high for help in diagn. 
--
   !-- When done, turn it back to 0 --
   Engine name=DoApache defaultHost=do-web.de debug=9
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=doweb_fileloger.
   suffix=.log
   timestamp=true/
   !-- Access log processes all requests for this virtual 
host. --
   !-- Leave pattern=combined for the most comprehensive 
logging --
   Valve 
className=org.apache.catalina.valves.AccessLogValve
   directory=logs
   prefix=doweb_accesslogV.
   suffix=.log
   pattern=combined
   resolveHosts=false/
   Host name=DoDemo debug=0
   appBase=/srv/www/demo
   unpackWARs=true autoDeploy=true
   Context path= docBase=/srv/www/demo 
debug=0/
   Valve 
className=org.apache.catalina.valves.AccessLogValve
   directory=logs  
prefix=demo_accesslogV.
   suffix=.log pattern=combined 
resolveHosts=false/
   /Host
   Host name=doweb.de debug=9
   appBase=/srv/www/htdocs
   unpackWARs=true autoDeploy=true
   Context path= docBase=/srv/www/htdocs 
debug=9/
   Valve 
className=org.apache.catalina.valves.AccessLogValve
   directory=logs  
prefix=dom_access.
   suffix=.log pattern=combined 
resolveHosts=false/
   /Host
   /Engine
   /Service
/Server

startup log from catalina.out :
===
Sep 7, 2005 8:05:29 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1288 ms
Sep 7, 2005 8:05:29 AM org.apache.catalina.core.StandardService start
INFO: Starting service Tomcat-Apache
Sep 7, 2005 8:05:29 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.19
Sep 7, 2005 8:05:29 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Sep 7, 2005 8:05:29 AM org.apache.catalina.startup.ContextConfig 
applicationConfig
INFO: Missing application web.xml, using defaults only 
StandardEngine[DOMApache].StandardHost[domdemo].StandardContext[]
Sep 7, 2005 8:05:30 AM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Sep 7, 2005 8:05:30 AM org.apache.catalina.startup.HostConfig deployWARs
WARNING: Exception while expanding

Re: RE: where to deploy my .war and how ? help needed please!

2005-09-07 Thread Yassine ELassad
Dear Guy,

well i have added a context element into my host and its now looking like this :

=
   Host name=do-web.de debug=9
appBase=/srv/www/tomcat/base
unpackWARs=true autoDeploy=true
Context path= docBase=webapps debug=9/
Valve 
className=org.apache.catalina.valves.AccessLogValve
directory=logs  
prefix=dom_access.
suffix=.log 
pattern=combined resolveHosts=false/
Context path=/MartialArts docBase=/MartialArts 
debug=8 privileged=true/
/Host
==

i also considered sonja's suggestion that  the docbase of a context  is 
evaluated relative to
the HOST's appbase and have changed it

now i have quite strange problem after specifying  webapps as appbase for my 
Vhost as you can see in the cofig above and  rying to deploy my test servlet 
into it
i have a strange log message :
==
2005-09-07 11:47:07 StandardContext[]default: DefaultServlet.init:  input 
buffer size=2048, output buffer size=2048
2005-09-07 11:47:07 NamingContextListener[/DOMApache/do-web.de]:   Resource 
parameters for UserTransaction = null
2005-09-07 11:47:07 StandardContext[]default: DefaultServlet.init:  input 
buffer size=2048, output buffer size=2048
2005-09-07 11:47:07 EngineConfig: EngineConfig: Processing START
===
in addition to this i observed that my .war file is not decompressed
and  since i did specify
Context path=/MartialArts docBase=/MartialArts debug=8 
privileged=true/
i observed that under /var/cach/tomcat/DOMApache/do-web.de/MartialArts has  
been Created but its contains nothing at all i m really confused about this :s


i hope you guys can give me a clue what's going wrong here

thanks in advance

Greetings
Yassine ELassad
Cologne


 directBOX Reply ---
From: Guy Katz ([EMAIL PROTECTED])
To: Tomcat Users List (tomcat-user@jakarta.apache.org)
Date: 07.09.2005 09:03:07

put it under your webapps and put a context elements with all its sub elements 
to configure the app in the server.xml file in the tomcat conf directory.

-Original Message-
From: Yassine ELassad [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 07, 2005 10:01 AM
To: tomcat-user@jakarta.apache.org
Subject: where to deploy my .war and how ? help needed please!


good morning list,

(sorry for the long mail)

im running Tomcat behind an apache Server using mod_jk2 everything seems to be 
working fine but im really confused about one thing
where to deploy my .war files to???

OS Suse Linux 9.1
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)


tomcat is at -  /usr/share/tomcat

webapps is at /srv/www/tomcat/base/webapps

my server.xml :
==
Server port=8005 shutdown=SHUTDOWN debug=9
Service name=Tomcat-Apache
!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector className=org.apache.coyote.tomcat5.CoyoteConnector
port=8009
minProcessors=5
maxProcessors=75
enableLookups=true
redirectPort=8443
acceptCount=10
debug=9
connectionTimeout=2
useURIValidationHack=true

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
!-- While starting off, leave debugging high for help in 
diagn. --
!-- When done, turn it back to 0 --
Engine name=DoApache defaultHost=do-web.de debug=9
Logger 
className=org.apache.catalina.logger.FileLogger
prefix=doweb_fileloger.
suffix=.log
timestamp=true/
!-- Access log processes all requests for this virtual 
host. --
!-- Leave pattern=combined for the most 
comprehensive logging --
Valve 
className=org.apache.catalina.valves.AccessLogValve
directory=logs

Re: Re: where to deploy my .war and how ? help needed please!

2005-09-07 Thread Yassine ELassad
Dear Eren,

unfortunatly iam not using tomcat's manager admin modules since iam using 
tomcat only
kind of plugin for apache so i can#t use there resources provided by tomcat

Thanks

 directBOX Reply ---
From: Mert Eren ÜSTÜNKAYA ([EMAIL PROTECTED])
To: TomcatUsersList (tomcat-user@jakarta.apache.org)
Date: 07.09.2005 11:56:35

Hey Yassine,

You should deploy your codes under webapps.
I am using tomcats manager to deploy my war files i recommend it to you.

http://localhost:8080/manager/html

u can give your war file to it and deploy with out any problems..





Yassine ELassad wrote:

good morning list,

(sorry for the long mail)

im running Tomcat behind an apache Server using mod_jk2 everything seems to be 
working fine but im really confused about one thing
where to deploy my .war files to???

OS Suse Linux 9.1
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)


tomcat is at -  /usr/share/tomcat

webapps is at /srv/www/tomcat/base/webapps

my server.xml :
==
Server port=8005 shutdown=SHUTDOWN debug=9
Service name=Tomcat-Apache
!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector 
 className=org.apache.coyote.tomcat5.CoyoteConnector
port=8009
minProcessors=5
maxProcessors=75
enableLookups=true
redirectPort=8443
acceptCount=10
debug=9
connectionTimeout=2
useURIValidationHack=true

 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
!-- While starting off, leave debugging high for help in  
 diagn. --
!-- When done, turn it back to 0 --
Engine name=DoApache defaultHost=do-web.de debug=9
Logger 
 className=org.apache.catalina.logger.FileLogger
prefix=doweb_fileloger.
suffix=.log
timestamp=true/
!-- Access log processes all requests for this 
 virtual host. --
!-- Leave pattern=combined for the most 
 comprehensive logging --
Valve 
 className=org.apache.catalina.valves.AccessLogValve
directory=logs
prefix=doweb_accesslogV.
suffix=.log
pattern=combined
resolveHosts=false/
Host name=DoDemo debug=0
appBase=/srv/www/demo
unpackWARs=true autoDeploy=true
Context path= docBase=/srv/www/demo 
 debug=0/
Valve 
 className=org.apache.catalina.valves.AccessLogValve
directory=logs  
 prefix=demo_accesslogV.
suffix=.log 
 pattern=combined resolveHosts=false/
/Host
Host name=doweb.de debug=9
appBase=/srv/www/htdocs
unpackWARs=true autoDeploy=true
Context path= docBase=/srv/www/htdocs 
 debug=9/
Valve 
 className=org.apache.catalina.valves.AccessLogValve
directory=logs  
 prefix=dom_access.
suffix=.log 
 pattern=combined resolveHosts=false/
/Host
/Engine
/Service
/Server

startup log from catalina.out :
===
Sep 7, 2005 8:05:29 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1288 ms
Sep 7, 2005 8:05:29 AM org.apache.catalina.core.StandardService start
INFO: Starting service Tomcat-Apache
Sep 7, 2005 8:05:29 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.19
Sep 7, 2005 8:05:29 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Sep 7, 2005 8:05:29 AM

Re: RE: where to deploy my .war and how ? help needed please!

2005-09-07 Thread Sonja Löhr

No, docBase=webapps is not good ;-)

I have everything under the localhost default Host with
appBase=webapps, so that the Context element can indeed be
Context path= debug=5 reloadable=true
docBase=/var/www/japplicoon/myApp

So, if you already specify that /srv/www/tomcat/base as appBase,
the docBase should be ... the empty String? Don't know wheter this is
valid. Perhaps you just cut off the last directory form the appBase 

Host name=do-web.de debug=9
appBase=/srv/www/tomcat
unpackWARs=true autoDeploy=true
  Context path= docBase=base debug=9/
 Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=dom_access.
 suffix=.log pattern=combined resolveHosts=false/
 Context path=/MartialArts docBase=MartialArts debug=8 
 privileged=true/
/Host

docBase is:
- A path totally different from appBase if it is an absolute path
- A path under the appBase if it is a relative one.

I hope that helps a bit.

Good luck!
sonja





Am Mittwoch, den 07.09.2005, 12:06 +0200 schrieb Yassine ELassad:
 Dear Guy,
 
 well i have added a context element into my host and its now looking like 
 this :
 
 =
Host name=do-web.de debug=9
 appBase=/srv/www/tomcat/base
 unpackWARs=true autoDeploy=true
 Context path= docBase=webapps debug=9/
 Valve 
 className=org.apache.catalina.valves.AccessLogValve
 directory=logs  
 prefix=dom_access.
 suffix=.log 
 pattern=combined resolveHosts=false/
 Context path=/MartialArts docBase=/MartialArts 
 debug=8 privileged=true/
 /Host
 ==
 
 i also considered sonja's suggestion that  the docbase of a context  is 
 evaluated relative to
 the HOST's appbase and have changed it 
 
 now i have quite strange problem after specifying  webapps as appbase for my 
 Vhost as you can see in the cofig above and  rying to deploy my test servlet 
 into it 
 i have a strange log message :
 ==
 2005-09-07 11:47:07 StandardContext[]default: DefaultServlet.init:  input 
 buffer size=2048, output buffer size=2048
 2005-09-07 11:47:07 NamingContextListener[/DOMApache/do-web.de]:   Resource 
 parameters for UserTransaction = null
 2005-09-07 11:47:07 StandardContext[]default: DefaultServlet.init:  input 
 buffer size=2048, output buffer size=2048
 2005-09-07 11:47:07 EngineConfig: EngineConfig: Processing START
 ===
 in addition to this i observed that my .war file is not decompressed 
 and  since i did specify
 Context path=/MartialArts docBase=/MartialArts debug=8 
 privileged=true/
 i observed that under /var/cach/tomcat/DOMApache/do-web.de/MartialArts has  
 been Created but its contains nothing at all i m really confused about this :s
 
 
 i hope you guys can give me a clue what's going wrong here 
 
 thanks in advance 
 
 Greetings 
 Yassine ELassad
 Cologne
 
 
  directBOX Reply ---
 From: Guy Katz ([EMAIL PROTECTED]) 
 To: Tomcat Users List (tomcat-user@jakarta.apache.org) 
 Date: 07.09.2005 09:03:07
 
 put it under your webapps and put a context elements with all its sub 
 elements to configure the app in the server.xml file in the tomcat conf 
 directory.
 
 -Original Message-
 From: Yassine ELassad [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, September 07, 2005 10:01 AM
 To: tomcat-user@jakarta.apache.org
 Subject: where to deploy my .war and how ? help needed please!
 
 
 good morning list,
 
 (sorry for the long mail)
 
 im running Tomcat behind an apache Server using mod_jk2 everything seems to 
 be working fine but im really confused about one thing
 where to deploy my .war files to???
 
 OS Suse Linux 9.1
 java version 1.4.2_03
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
 Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
 
 
 tomcat is at -  /usr/share/tomcat
 
 webapps is at /srv/www/tomcat/base/webapps
 
 my server.xml :
 ==
 Server port=8005 shutdown=SHUTDOWN debug=9
 Service name=Tomcat-Apache
 !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
 Connector 
 className=org.apache.coyote.tomcat5.CoyoteConnector
 port=8009
 minProcessors=5
 maxProcessors=75
 enableLookups=true
 redirectPort=8443

Re: JSF Please Help with a simple question thanks ???

2005-09-03 Thread David Haynes

Bovy, Stephen J wrote:


Thank you for the clarification ...

So is Tomcat 5.x using the appache MYFACES  

Which version of jsf is included/supported by tomcat 5.x ??? 


Is there any difference between the Sun version and the appache version
???

Stephen Bovy
Computer Associates
6100 Center Drive
Suite 700
Los Angeles, CA 90045
Tel: (310) 957-3930
Fax: (310) 957-3917
e-mail: [EMAIL PROTECTED]

It's not really a question of Tomcat using MyFaces or JSF RI - they are 
really independent technologies which can work together. You choose 
which one you want to use based upon your needs and any company policies 
which might apply. Both support the same API (JSR 127). Try thinking of 
it this way. Both MyFaces and JSF RI offer you a library (jar) of 
methods which allow you to develop JSF format web pages. Each library 
offers the same standard set of capabilities - the JSR 127 API. Each 
library is written and supported by a different group. Both will run on 
Tomcat (or any other reasonable application server) since both are 
written using Java.


To integrate either with Tomcat, you simply download the library, add it 
to your project's classpath, and then write JSF-specific web pages to 
take advantage of the JSF technology.


You might find this http://www.jsfcentral.com/faq/index.html (JSF 
Central's FAQ) to be helpful as a starting point.


-david-


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: custom valve help ???

2005-09-02 Thread Bovy, Stephen J
 
Are there any good tutorials or how-to documents for using and writing a
custom valve for tomcat ???


Stephen Bovy
Computer Associates
6100 Center Drive
Suite 700
Los Angeles, CA 90045
Tel: (310) 957-3930
Fax: (310) 957-3917
e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Configuring maxThread help

2005-09-02 Thread Raul Garcia
Hi all again, I repeat the question becouse the Subject wasn't correct

I need help to configure jakarta-tomcat to send a high volume of packet sockets 
trhought a servlet application.

The server is dual processor Intel 3.4Ghz 4 Gb RAM.

It should send aprox from 2000 or 5000 sockets in a short time (About 15 
minutes max)

Can someone recommend me a configuration of maxThreads etc, at the web.xml file.

Thanks on advance
Raúl.

Re: custom valve help ???

2005-09-02 Thread Len Popp
If you consider source code to be a tutorial, you can look at the
classes in org.apache.catalina.valves. RemoteAddrValve and
RequestDumperValve are quite simple and easy to understand.
-- 
Len

On 9/2/05, Bovy, Stephen J [EMAIL PROTECTED] wrote:
 
 Are there any good tutorials or how-to documents for using and writing a
 custom valve for tomcat ???
 
 
 Stephen Bovy
 Computer Associates
 6100 Center Drive
 Suite 700
 Los Angeles, CA 90045
 Tel: (310) 957-3930
 Fax: (310) 957-3917
 e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JSF Please Help with a simple question thanks ???

2005-09-02 Thread Bovy, Stephen J
 
Does Tomcat 5.x have a JSF implementation 

Does JSF have to be installed separately 

Stephen Bovy
Computer Associates
6100 Center Drive
Suite 700
Los Angeles, CA 90045
Tel: (310) 957-3930
Fax: (310) 957-3917
e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JSF Please Help with a simple question thanks ???

2005-09-02 Thread David Haynes

Bovy, Stephen J wrote:



Does Tomcat 5.x have a JSF implementation 

Does JSF have to be installed separately 

Stephen Bovy
Computer Associates
6100 Center Drive
Suite 700
Los Angeles, CA 90045
Tel: (310) 957-3930
Fax: (310) 957-3917
e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 


Tomcat 5.x supports JSF.
JSF is a separate download (jar file) from either Sun 
(http://java.sun.com/j2ee/javaserverfaces/download.html) or Apache 
(http://www.myfaces.org/)



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JSF Please Help with a simple question thanks ???

2005-09-02 Thread Bovy, Stephen J
Thank you for the clarification ...

So is Tomcat 5.x using the appache MYFACES  

Which version of jsf is included/supported by tomcat 5.x ??? 

Is there any difference between the Sun version and the appache version
???

Stephen Bovy
Computer Associates
6100 Center Drive
Suite 700
Los Angeles, CA 90045
Tel: (310) 957-3930
Fax: (310) 957-3917
e-mail: [EMAIL PROTECTED]
-Original Message-
From: David Haynes [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 02, 2005 6:48 PM
To: Tomcat Users List
Subject: Re: JSF Please Help with a simple question thanks ???

Bovy, Stephen J wrote:

 
Does Tomcat 5.x have a JSF implementation 

Does JSF have to be installed separately 

Stephen Bovy
Computer Associates
6100 Center Drive
Suite 700
Los Angeles, CA 90045
Tel: (310) 957-3930
Fax: (310) 957-3917
e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  

Tomcat 5.x supports JSF.
JSF is a separate download (jar file) from either Sun
(http://java.sun.com/j2ee/javaserverfaces/download.html) or Apache
(http://www.myfaces.org/)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat5 and apache2 dont want to cooperate please help!!

2005-08-30 Thread yel
Dear list subscriber,
im now working on this since two weeks and i just can progress with it so i 
really need some urgent help on this issue
what i intent to do is to use tomcate behinde apache as a servlet container and 
i tried many howto out there on the web but none of them was  the right one for 
me :s
so i appologize for your help:
here is information about my System , Configs  and Logs tahnks in advance:

Yel

My System :
/usr/share/tomcat/conf # uname -a
Linux suseleo 2.6.11.4-21.2-default #1 Thu Apr 21 09:37:56 UTC 2005 i686 i686 
i386 GNU/Linux
Suse 9.1

JRE:
/usr/share/tomcat/conf # java -version
java version 1.4.2_06
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)

SDK:
JAVA_HOME:   /opt/IBMJava2-142

Packages I'am using:
JK connector: apache2-jakarta-tomcat-connectors-5.0.19-13.i586.rpm
Tomcat Servlets Container: jakarta-tomcat-5.0.19-13.i586.rpm

My Configs:

Workers.properties:
---
workers.CATALINA_HOME=/usr/share/tomcat
workers.java_home=$(JAVA_HOME)
ps=/
worker.list=dom4
worker.dom4.type=ajp13
worker.dom4.host=localhost
worker.dom4.port=8009
worker.dom4.lbfactor=50
worker.dom4.cachesize=10
worker.dom4.cache_timeout=600
worker.dom4.socket_keepalive=1
worker.dom4.reclycle_timeout=300


Jk2.properties:

is empty i did uncomment nothing :
## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Set the desired handler list
# handler.list=apr,request,channelJni
#
# Override the default port for the socketChannel
# channelSocket.port=8019
# Default:
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
# shm.file=${jkHome}/work/jk2.shm

# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:

# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess
---

My mod_jk.conf (which i include in Apache2:
-
# Load mod_jk module

# Update this path to match your modules location
LoadModulejk_module  /usr/lib/apache2/mod_jk.so

# Declare the module for IfModule directive (remove this line on Apache 2.x)
##apache2   AddModule mod_jk.c
# Where to find workers.properties

# Update this path to match your conf directory location (put 
workers.properties next to httpd.conf)
JkWorkersFile /usr/share/tomcat/conf/workers.properties

# Where to put jk logs
# Update this path to match your logs directory location (put mod_jk.log next 
to access_log)
JkLogFile /usr/share/tomcat/logs/mod_jk.log

# Set the jk log level [debug/error/info]
JkLogLeveldebug

# Select the log format
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 

# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

# JkRequestLogFormat set the request format
JkRequestLogFormat %w %V %T

# Send everything for context /examples to worker named worker1 (ajp13)
 JkMount  /examples/* dom4
-

My Server.xml: (only list uncommented lines)
--
Server port=8005 shutdown=SHUTDOWN debug=0

Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

!-- Global JNDI resources --
  GlobalNamingResources

 !-- Test entry for demonstration purposes --
 Environment name=simpleValue type=java.lang.Integer value=30/

 !-- Editable user database that can also be used by
   UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
type=org.apache.catalina.UserDatabase
description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name

valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
/parameter
parameter
namepathname/name
valueconf/tomcat-users.xml/value
/parameter
/ResourceParams
/GlobalNamingResources

Service name=Catalina

!-- Define

help configuring security in tomcat 5.5

2005-08-29 Thread Ittay Dror

i have this in my ${CATALINA_HOME}/webapps/ROOT/WEB-INF/web.xml:

login-config
auth-methodFORM/auth-method
realm-nameqrm/realm-name
form-login-config
form-login-page/login/login.do?type=attempt/form-login-page
form-error-page/login/login.do?type=error/form-error-page
/form-login-config
/login-config

and this in ${CATALINA_HOME}/conf/Catalina/localhost/ROOT.xml:
Realm className=org.apache.catalina.realm.DataSourceRealm debug=99
   dataSourceName=QrmDS appName=qrm
   userTable=qrm_users userNameCol=user_name userCredCol=user_password
   userRoleTable=qrm_roles roleNameCol=role_name/

The database is up and contains the required schema.

But I get this:

 java.lang.SecurityException: Unable to locate a login configuration

Please help,
Ittay
--
===
Ittay Dror ([EMAIL PROTECTED])
Application Team Leader, RD
Qlusters Inc.
+972-3-6081994 Fax: +972-3-6081841

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



TOMCAT help needed

2005-08-24 Thread Pierre Faudon
Hello everyone ! I'm neewbie and i try to install groupwise
webmail. I folowed the procedure by copying the classes in
/webapps/ROOT/WEB-INF/classes and the jar in
/webapps/ROOT/WEB-INF/lib and I put my web.xml in the WEB-INF/
directory but it didn't work at all ... in the log the classes
wasnot found !
I try tu change the web.xml in conf directory and copy my
classes.jars in common directory and now I have an error 404 !

in the logs I have :

app.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target
string: News / Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target
param name: paramName / Target param value: paramValue /
Redirect URL: http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule:
Redirect URL: http://jakarta.apache.org]]
2005-08-24 17:51:53
StandardContext[/jsp-examples]ContextListener:
contextInitialized()
2005-08-24 17:51:53
StandardContext[/jsp-examples]SessionListener:
contextInitialized()
2005-08-24 17:51:54
StandardContext[/servlets-examples]ContextListener:
contextInitialized()
2005-08-24 17:51:54
StandardContext[/servlets-examples]SessionListener:
contextInitialized()


my web.xml is in atachement ... thank you for your help








Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)


?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
	servlet
		servlet-namewebacc/servlet-name
		servlet-classcom.novell.webaccess.WebAccessServlet/servlet-class
		init-param
			param-nameConfig/param-name
			param-value/novell/webaccess/webacc.cfg/param-value
		/init-param
		load-on-startup /load-on-startup
	/servlet

	servlet
		servlet-namespellchk/servlet-name
		servlet-classcom.novell.collexion.spell.servlet.SpellServlet/servlet-class
		init-param
			param-nameConfig/param-name
			param-value/novell/webaccess/spellchk.cfg/param-value
		/init-param
		load-on-startup /load-on-startup
	/servlet

	servlet
		servlet-namewebpub/servlet-name
		servlet-classcom.novell.webpublisher.WebPublisherServlet/servlet-class
		init-param
			param-nameConfig/param-name
			param-value/novell/webpublisher/webpub.cfg/param-value
		/init-param
		load-on-startup /load-on-startup
	/servlet

	servlet-mapping
		servlet-namewebacc/servlet-name
		url-pattern/webacc/*/url-pattern
	/servlet-mapping

	servlet-mapping
		servlet-namespellchk/servlet-name
		url-pattern/spellchk/*/url-pattern
	/servlet-mapping

	servlet-mapping
		servlet-namewebpub/servlet-name
		url-pattern/webpub/*/url-pattern
	/servlet-mapping

/web-app


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Need Help Programmatically Loading Servlets in StandardContext subclass

2005-08-23 Thread Philip Weaver


I give up. MVC baby!

On Aug 21, 2005, at 7:24 PM, Philip Weaver wrote:



How can I programmatically load servlets and servlet mappings in 
Tomcat? I'm using Tomcat 5.0.28.


I'm trying to extend StandardContext to automatically map/assign a 
batch of servlets from a specified jar at startup. I'm having trouble. 
As I try to add these servlets programmatically as the StandardContext 
is starting up, I can't get them to register/load. The servlets loaded 
from the web.xml work fine, but the ones I'm trying to add 
programmatically return null ObjectNames when I query 
context.getServlets(). They are also ignored or not found when I get 
the URL.


Here's the code I'm trying... The most relevant code is in 
addServlet() below - which I'm calling after super.start().


package com.luminera.www;

import java.io.*;
import java.util.*;
import javax.management.*;
import javax.naming.*;
import javax.servlet.*;
import org.apache.catalina.*;
import org.apache.catalina.deploy.*;
import org.apache.catalina.loader.*;
import org.apache.catalina.mbeans.*;
import org.apache.catalina.startup.*;
import org.apache.catalina.util.*;
import org.apache.commons.logging.*;
import org.apache.commons.modeler.*;
import org.apache.naming.*;
import org.apache.naming.resources.*;
import org.apache.tomcat.util.compat.*;

public class StandardContext extends 
org.apache.catalina.core.StandardContext {


public StandardContext() {

super();
}

public synchronized void start() throws LifecycleException {

super.start();

this.loadServlets();

String[] asServlets = this.getServlets();
for (int i = 0; i  asServlets.length; i++) {
System.out.println(known servlet:  + asServlets[i]);
}
}

private void loadServlets() {

String sParameter = this.findParameter(servlets-jar);
String sBasePath = this.getBasePath();
System.out.println(sParameter:  + sParameter);
System.out.println(sBasePath:  + sBasePath);
if ((sParameter != null)  (sBasePath != null)) {
String sJarPath = sBasePath + sParameter;
System.out.println(servlet jar path:  + sJarPath);
ClassLoader classLoader = 
this.getLoader().getClassLoader();
			//HashMap hashMap = ServletUtility.buildServletMap(sJarPath, 
classLoader); // external lib

HashMap hashMap = new HashMap();
			for (Iterator iterator = hashMap.keySet().iterator(); 
iterator.hasNext();) {

String sPattern = (String)iterator.next();
String sClass = (String)hashMap.get(sPattern);
this.addServlet(sPattern, sClass);
}
}
}

private void addServlet(String sPattern, String sClass) {

		System.out.println(Trying to load servlet for url pattern:  + 
sPattern);


Wrapper wrapper = null;
try {
String sName = sClass;
wrapper = this.createWrapper();
wrapper.setName(sName);
wrapper.setServletClass(sClass);
this.addChild(wrapper);
this.addServletMapping(sPattern, sName);
if (wrapper instanceof Lifecycle) {
((Lifecycle)wrapper).start();
}
System.out.println(succeeded);
System.out.println(sPattern:  + sPattern);
System.out.println(sName:  + sName);
} catch (Throwable throwable) {
System.out.println(failed);
Log log = LogFactory.getLog(StandardContext.class);
log.error(Failed to load servlet:  + sClass, 
throwable);
this.removeServletMapping(sPattern);
this.removeChild(wrapper);
}
}

private String getBasePath() {

String docBase = null;
Container container = this;
while (container != null) {
if (container instanceof Host) {
break;
}
container = container.getParent();
}
File file = new File(getDocBase());
if (!file.isAbsolute()) {
if (container == null) {
docBase = (new File(engineBase(), 
getDocBase())).getPath();
} else {
 

Need Help Programmatically Loading Servlets in StandardContext subclass

2005-08-21 Thread Philip Weaver


How can I programmatically load servlets and servlet mappings in 
Tomcat? I'm using Tomcat 5.0.28.


I'm trying to extend StandardContext to automatically map/assign a 
batch of servlets from a specified jar at startup. I'm having trouble. 
As I try to add these servlets programmatically as the StandardContext 
is starting up, I can't get them to register/load. The servlets loaded 
from the web.xml work fine, but the ones I'm trying to add 
programmatically return null ObjectNames when I query 
context.getServlets(). They are also ignored or not found when I get 
the URL.


Here's the code I'm trying... The most relevant code is in addServlet() 
below - which I'm calling after super.start().


package com.luminera.www;

import java.io.*;
import java.util.*;
import javax.management.*;
import javax.naming.*;
import javax.servlet.*;
import org.apache.catalina.*;
import org.apache.catalina.deploy.*;
import org.apache.catalina.loader.*;
import org.apache.catalina.mbeans.*;
import org.apache.catalina.startup.*;
import org.apache.catalina.util.*;
import org.apache.commons.logging.*;
import org.apache.commons.modeler.*;
import org.apache.naming.*;
import org.apache.naming.resources.*;
import org.apache.tomcat.util.compat.*;

public class StandardContext extends 
org.apache.catalina.core.StandardContext {


public StandardContext() {

super();
}

public synchronized void start() throws LifecycleException {

super.start();

this.loadServlets();

String[] asServlets = this.getServlets();
for (int i = 0; i  asServlets.length; i++) {
System.out.println(known servlet:  + asServlets[i]);
}
}

private void loadServlets() {

String sParameter = this.findParameter(servlets-jar);
String sBasePath = this.getBasePath();
System.out.println(sParameter:  + sParameter);
System.out.println(sBasePath:  + sBasePath);
if ((sParameter != null)  (sBasePath != null)) {
String sJarPath = sBasePath + sParameter;
System.out.println(servlet jar path:  + sJarPath);
ClassLoader classLoader = 
this.getLoader().getClassLoader();
			//HashMap hashMap = ServletUtility.buildServletMap(sJarPath, 
classLoader); // external lib

HashMap hashMap = new HashMap();
			for (Iterator iterator = hashMap.keySet().iterator(); 
iterator.hasNext();) {

String sPattern = (String)iterator.next();
String sClass = (String)hashMap.get(sPattern);
this.addServlet(sPattern, sClass);
}
}
}

private void addServlet(String sPattern, String sClass) {

		System.out.println(Trying to load servlet for url pattern:  + 
sPattern);


Wrapper wrapper = null;
try {
String sName = sClass;
wrapper = this.createWrapper();
wrapper.setName(sName);
wrapper.setServletClass(sClass);
this.addChild(wrapper);
this.addServletMapping(sPattern, sName);
if (wrapper instanceof Lifecycle) {
((Lifecycle)wrapper).start();
}
System.out.println(succeeded);
System.out.println(sPattern:  + sPattern);
System.out.println(sName:  + sName);
} catch (Throwable throwable) {
System.out.println(failed);
Log log = LogFactory.getLog(StandardContext.class);
log.error(Failed to load servlet:  + sClass, 
throwable);
this.removeServletMapping(sPattern);
this.removeChild(wrapper);
}
}

private String getBasePath() {

String docBase = null;
Container container = this;
while (container != null) {
if (container instanceof Host) {
break;
}
container = container.getParent();
}
File file = new File(getDocBase());
if (!file.isAbsolute()) {
if (container == null) {
docBase = (new File(engineBase(), 
getDocBase())).getPath();
} else {
String appBase = ((Host)container).getAppBase();
   

security-constraint not working, help please...

2005-08-12 Thread Trey Ethridge
Hello all,

I'm ready to pull my hair out getting the security constraint to work.  
Basically, I need to forward all traffic except one directory to the https 
port.  I've got it to work if I use the url-pattern of /*.  However, when I 
specify the patterns to accomplish the task, nothing matches and I can access 
any page through the http port.

Here is what I'm using: 

In web.xml:
security-constraint
web-resource-collection
web-resource-nameAutomatic SLL Forwarding/web-resource-name
url-pattern/Temp/*/url-pattern
url-pattern/temp/*/url-pattern
url-pattern/pictures/*/url-pattern
url-pattern/resources/*/url-pattern
url-pattern/admin/*/url-pattern
url-pattern/web/*/url-pattern
url-pattern/Operator/*/url-pattern
url-pattern/operator/*/url-pattern
url-pattern/soap/*/url-pattern
url-pattern/webtools/*/url-pattern
/web-resource-collection
user-data-constraint
  transport-guarantee
CONFIDENTIAL
  /transport-guarantee
/user-data-constraint
/security-constraint

In server.xml:
Server
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener 
descriptors=/jboss-mbeans.xml debug=0/
  Service name=jboss.web 
className=org.jboss.web.tomcat.tc5.StandardService
Connector port=81 address=${jboss.bind.address}
 maxThreads=150 minSpareThreads=25 maxSpareThreads=75
 enableLookups=false redirectPort=8443 acceptCount=100
 connectionTimeout=2 disableUploadTimeout=true /
Connector port=8009 address=${jboss.bind.address} 
 enableLookups=false redirectPort=8443 debug=0
 protocol=AJP/1.3 /
Connector port=8443 minProcessors=5 maxProcessors=200
 enableLookups=true disableUploadTimeout=true
 scheme=https secure=true keystorepass=changeit 
 keystoreFile=${jboss.server.home.dir}/conf/.keystore 
acceptCount=200 debug=0
 clientAuth=false sslProtocol=TLS /
Engine name=jboss.web defaultHost=localhost
  Logger className=org.jboss.web.tomcat.Log4jLogger
  verbosityLevel=INFORMATION 
  category=org.jboss.web.localhost.Engine/
  Realm className=org.jboss.web.tomcat.security.JBossSecurityMgrRealm /
  Host name=localhost autoDeploy=false deployOnStartup=false 
deployXML=false
Valve className=org.apache.catalina.valves.AccessLogValve
prefix=localhost_access_log. suffix=.log
pattern=common directory=${jboss.server.home.dir}/log 
resolveHosts=false /
DefaultContext cookies=true crossContext=true override=true /
  /Host
/Engine
  /Service
/Server

Is there a way to specify everything except a directory using some kind of NOT 
operator?

Why won't what I'm using above forward me to the correct https port?

Thanks in advance.


___
Try Juno Platinum for Free! Then, only $9.95/month!
Unlimited Internet Access with 250MB of Email Storage.
Visit http://www.juno.com/value to sign up today!


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Help: IndexOutOfBoundsException using JMX management

2005-08-05 Thread Tom
Hi,

I want to monitore and manage my tomcat instance using
JMX. I use tomcat-5.4.4 and a JDK-1.5 under suse
linux.
I do the actions specified in the official
documentation (Monitoning and managing tomcat).

~/bin/startup.sd

export CATALINA_OPTS=-Dcom.sun.management.jmxremote  
 \
   
-Dcom.sun.management.jmxremote.port=8789\
   
-Dcom.sun.management.jmxremote.ssl=false\
   
-Dcom.sun.management.jmxremote.authenticate=false

~/conf/server.xml

Connector  port=8790
handler.list=mx
mx.enabled=true
mx.httpHost=Linux2
mx.httpPort=8789
protocol=AJP/1.3 /

I don't use passwords, I am just testing the JMX
funcionality. In a near future, I will activate
passwords with a better security.

When I start tomcat, the JMX service is activated. I
can see the ports related to JMX in the netstat
output.

Linux2:/home/ctomcat # netstat -nap | grep tcp
tcp0  0 0.0.0.0:111 0.0.0.0:* 
 LISTEN  760/
tcp0  0 0.0.0.0:60000.0.0.0:* 
 LISTEN  1689/X
tcp0  0 127.0.0.1:250.0.0.0:* 
 LISTEN  1133/
tcp0  0 127.0.0.1:8005  :::*  
 LISTEN  6483/java
tcp0  0 :::33128:::*  
 LISTEN  6483/java
tcp0  0 :::8009 :::*  
 LISTEN  6483/java
tcp0  0 :::8080 :::*  
 LISTEN  6483/java
tcp0  0 :::8789 :::*  
 LISTEN  6483/java
--- JMX port
tcp0  0 :::8790 :::*  
 LISTEN  6483/java
--- JMX connector port
tcp0  0 :::22   :::*  
 LISTEN  955/sshd

The problem arises when I do a JMX request with any
web broser.

For example:

[EMAIL PROTECTED]:~ wget http://localhost:8790
--14:04:07--  http://localhost:8790/
   = `index.html'
Resolving localhost... done.
Connecting to localhost[::1]:8790... connected.
HTTP request sent, awaiting response...
14:04:07 ERROR -1: No data received.

In the ~/logs/catalina.log appears:

05-ago-2005 14:03:07 org.apache.jk.common.MsgAjp
processHeader
GRAVE: BAD packet signature 18245
05-ago-2005 14:03:07
org.apache.jk.common.ChannelSocket processConnection
GRAVE: Error, processing connection
java.lang.IndexOutOfBoundsException
at
java.io.BufferedInputStream.read(BufferedInputStream.java:306)
at
org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:598)
at
org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:554)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:663)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)

How can I solve this problem? I must upgrade to a
newer tomcat version. I consult the changelogs between
5.4.4 and the last Tomcat and I don't see any
references about this problem. Is this problem solved
or it is an erroniuos configuration.

Thanks a lot for your attention.

Regards,

Xevi.



__ 
Renovamos el Correo Yahoo! 
Nuevos servicios, más seguridad 
http://correo.yahoo.es

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HELP: Tomcat 5.5.9 with jsvc as low priviledges user on Linux fails in Bootstrap

2005-08-04 Thread Rainer Jung

CVS head now includes an improvement:

1) If the directory containing tomcat-users.xml is not writeable you 
will get a nice warning instead of a strange exception.
2) You can configure the MemoryUserDatabase with the attribute 
readonly=true. Then there will be not write attempt at all.


Details under

http://issues.apache.org/bugzilla/show_bug.cgi?id=36020

Will be included in 5.5.11 most probably sometime during august.

MC Moisei wrote:


Hi,

I manage to configure my tomcat with jsvc(common-daemon) and everything 
work great till I start to launch it as root. If I run it as tomcat user 
it does work great. If I try to run it as root from command prompt or 
from init.d I get the following exception ( see below )


Right are given as below
chown -R tomcat:tomcat /usr/local/tomcat
chown -R root:root /usr/local/tomcat/bin
chown -R root:root /usr/local/tomcat/common

This is not right - looks like the bootstrap is trying to access the 
Realm and there is no write access to the conf/tomcat-users.xml file. I 
can't believe the common-daemon not tomcat side didn't say a thing about 
this, I bet there are others experiencing the matter.
Do i have to disable Tomcat realms ? It doesn't sounds right. There is 
no way I'd give others write access on that.


Looking forward to hear from you if you experienced something similar.
Thanks,
MC




Aug 1, 2005 7:23:15 PM org.apache.naming.NamingContext lookup
WARNING: Unexpected exception resolving reference
java.io.FileNotFoundException: 
/usr/local/tomcat/tomcat_home/conf/tomcat-users.xml.new (Permission denied)

at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.init(FileOutputStream.java:179)
at java.io.FileOutputStream.init(FileOutputStream.java:131)
at 
org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:462) 

at 
org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:98) 

at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:129) 

at 
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)

at org.apache.naming.NamingContext.lookup(NamingContext.java:792)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:138) 

at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:108) 

at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:80) 

at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) 

at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:676)

at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
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:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
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:324)
at 
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:218)
Aug 1, 2005 7:23:15 PM 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBeans

SEVERE: Exception processing Global JNDI Resources



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HELP: Tomcat 5.5.9 with jsvc as low priviledges user on Linux fails in Boots

2005-08-04 Thread MC Moisei

Thanks Rainer!

Meanwhile what I did was to give root access to the conf folder.That worked 
as a charm.


Right/Owner are
chown -R tomcat:tomcat /usr/local/tomcat
chown -R root:root /usr/local/tomcat/bin
chown -R root:root /usr/local/tomcat/common
chown -R root:root /usr/local/tomcat/conf

Having it in the memory is a much better way. I'm looking forward to get the 
5.5.11 release then.


MC




From: Rainer Jung [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: HELP: Tomcat 5.5.9 with jsvc as low priviledges user on Linux 
fails in Bootstrap

Date: Thu, 04 Aug 2005 15:22:19 +0200

CVS head now includes an improvement:

1) If the directory containing tomcat-users.xml is not writeable you will 
get a nice warning instead of a strange exception.
2) You can configure the MemoryUserDatabase with the attribute 
readonly=true. Then there will be not write attempt at all.


Details under

http://issues.apache.org/bugzilla/show_bug.cgi?id=36020

Will be included in 5.5.11 most probably sometime during august.

MC Moisei wrote:


Hi,

I manage to configure my tomcat with jsvc(common-daemon) and everything 
work great till I start to launch it as root. If I run it as tomcat user 
it does work great. If I try to run it as root from command prompt or from 
init.d I get the following exception ( see below )


Right are given as below
chown -R tomcat:tomcat /usr/local/tomcat
chown -R root:root /usr/local/tomcat/bin
chown -R root:root /usr/local/tomcat/common

This is not right - looks like the bootstrap is trying to access the Realm 
and there is no write access to the conf/tomcat-users.xml file. I can't 
believe the common-daemon not tomcat side didn't say a thing about this, I 
bet there are others experiencing the matter.
Do i have to disable Tomcat realms ? It doesn't sounds right. There is no 
way I'd give others write access on that.


Looking forward to hear from you if you experienced something similar.
Thanks,
MC




Aug 1, 2005 7:23:15 PM org.apache.naming.NamingContext lookup
WARNING: Unexpected exception resolving reference
java.io.FileNotFoundException: 
/usr/local/tomcat/tomcat_home/conf/tomcat-users.xml.new (Permission 
denied)

at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.init(FileOutputStream.java:179)
at java.io.FileOutputStream.init(FileOutputStream.java:131)
at 
org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:462)


at 
org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:98)


at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:129)


at 
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)

at org.apache.naming.NamingContext.lookup(NamingContext.java:792)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:138)


at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:108)


at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:80)


at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)


at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:676)

at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
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:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
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:324)
at 
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:218)
Aug 1, 2005 7:23:15 PM 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBeans

SEVERE: Exception processing Global JNDI Resources



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL

Help with a Class

2005-08-04 Thread Charles P. Killmer
Does Java provide any ability to do something like the following.  C#
and C++ both allow this functionlality and I am hoping that Java does as
well
 
 
%!
public class myInteger {
   private Integer _test1;
   public Integer test1
   {
  set
  {
 _test1 = value;
  }
 
  get
  {
 return _test1;
  }
   }
}
%
%
myInteger temp = new myInteger;
temp.test1 = new Integer(4);
%
 
Charles


Re: Help with a Class

2005-08-04 Thread Wade Chandler
Yep...simple example of a class as a wrapper around
the Integer class.  Syntax way off and looks more like
you're trying to do it in a JSP page where you would
do it in a library.  So surejust read a good java
book for syntax and maybe some of the java tutorial
and you can get all the info you need at java.sun.com
and www.java.net and if you need a good free IDE
www.netbeans.org.  Don't know what else to say really.
 Java uses patterns so you have methods setTest1 and
getTest1 which is what you would do in C++ with the
same pattern style for setters and getters as C++
doesn't have any simpler syntax than java for setters
and getters.  Maybe to say java scripting languages
and EL in JSP pages let you access the properties
directly like 
Integer temp2 = temp.test1
and
temp.test1 = new Integer(4)
so other than that I don't know what else to say
without trying to explain java itself.

Wade

--- Charles P. Killmer
[EMAIL PROTECTED] wrote:

 Does Java provide any ability to do something like
 the following.  C#
 and C++ both allow this functionlality and I am
 hoping that Java does as
 well
  
  
 %!
 public class myInteger {
private Integer _test1;
public Integer test1
{
   set
   {
  _test1 = value;
   }
  
   get
   {
  return _test1;
   }
}
 }
 %
 %
 myInteger temp = new myInteger;
 temp.test1 = new Integer(4);
 %
  
 Charles
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HELP: Tomcat 5.5.9 with jsvc as low priviledges user on Linux fails in Bootstrap

2005-08-02 Thread Darryl L. Miles

MC Moisei wrote:

java.io.FileNotFoundException: 
/usr/local/tomcat/tomcat_home/conf/tomcat-users.xml.new (Permission 
denied)

at java.io.FileOutputStream.open(Native Method)


This smells like its calling for write access to the DIRECTORY  
/usr/local/tomcat/tomcat_home/conf/  (not the file)


Unless you have a left over file that is actually called 
conf/tomcat-users.xml.new from a previous execution of TC that did not 
complete the edit and rename.  In which case I think you need to delete 
the conf/tomcat-users.xml.new file (after you've ensured you have a 
valid and working conf/tomcat-users.xml file itself).



FYI - I run jsvc too and have not seen this problem with 5.5.9.

jsvc.exec -Djava.endorsed.dirs=./common/endorsed -classpath 
:/opt/jakarta-tomcat-5.5.9/bin/bootstrap.jar:/opt/jakarta-tomcat-5.5.9/bin/commons-logging-api.jar 
-Dcatalina.base=/opt/jakarta-tomcat-5.5.9 
-Dcatalina.home=/opt/jakarta-tomcat-5.5.9 
-Djava.io.tmpdir=/opt/jakarta-tomcat-5.5.9/temp -outfile 
./logs/catalina.out -errfile ./logs/catalina.err -pidfile ./logs/jsvc.pid
-user jakarta -Xmx2048M -Xms512M 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
org.apache.catalina.startup.Bootstrap start


--
Darryl L. Miles



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



HELP: Problem with tomcat559 in XP machine

2005-08-02 Thread dummy

But I m not using the http connector. I m using Apache and mod_jk.
I disabled the http connectot.

-Original Message-
From: Lintang JP [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 01, 2005 2:17 PM
To: Tomcat Users List
Subject: Re: Problem with tomcat559 in XP machine

maybe U should increase the AcceptCount parameter in Connector..it's inside 
server.xml

Tomcat will wait until there's a resource finish their task if the 
AcceptCount parameter reached, so it's hanged. By increasing it, U should 
get more AcceptCount.

Regards

On 8/1/05, dummy [EMAIL PROTECTED] wrote:
 
 Tomcat 5.5.9 hanged and when I do a netstat under Windows XP, I saw port
 8009 with a long list and all user can't access.
 Is this tomcat problem or windows ?
 
 Active Connections
 
 Proto Local Address Foreign Address State
 TCP tc:3376 localhost:8009 ESTABLISHED
 TCP tc:3939 localhost:8009 ESTABLISHED
 TCP tc:3940 localhost:8009 ESTABLISHED
 TCP tc:3942 localhost:8009 ESTABLISHED
 TCP tc:4108 localhost:8009 ESTABLISHED
 TCP tc:4109 localhost:8009 ESTABLISHED
 TCP tc:4110 localhost:8009 ESTABLISHED
 TCP tc:4111 localhost:8009 ESTABLISHED
 TCP tc:4112 localhost:8009 ESTABLISHED
 TCP tc:4114 localhost:8009 ESTABLISHED
 TCP tc:4116 localhost:8009 ESTABLISHED
 TCP tc:4117 localhost:8009 ESTABLISHED
 TCP tc:4118 localhost:8009 ESTABLISHED
 TCP tc:4119 localhost:8009 ESTABLISHED
 TCP tc:4120 localhost:8009 ESTABLISHED
 TCP tc:4124 localhost:8009 FIN_WAIT_2
 TCP tc:4125 localhost:8009 ESTABLISHED
 TCP tc:4126 localhost:8009 ESTABLISHED
 TCP tc:4133 localhost:8009 ESTABLISHED
 TCP tc:4134 localhost:8009 ESTABLISHED
 TCP tc:8009 localhost:3376 ESTABLISHED
 TCP tc:8009 localhost:3938 CLOSE_WAIT
 TCP tc:8009 localhost:3939 ESTABLISHED
 TCP tc:8009 localhost:3940 ESTABLISHED
 TCP tc:8009 localhost:3942 ESTABLISHED
 TCP tc:8009 localhost:4010 CLOSE_WAIT
 TCP tc:8009 localhost:4011 CLOSE_WAIT
 TCP tc:8009 localhost:4012 CLOSE_WAIT
 TCP tc:8009 localhost:4013 CLOSE_WAIT
 TCP tc:8009 localhost:4014 CLOSE_WAIT
 TCP tc:8009 localhost:4015 CLOSE_WAIT
 TCP tc:8009 localhost:4016 CLOSE_WAIT
 TCP tc:8009 localhost:4095 CLOSE_WAIT
 TCP tc:8009 localhost:4096 CLOSE_WAIT
 TCP tc:8009 localhost:4097 CLOSE_WAIT
 TCP tc:8009 localhost:4098 CLOSE_WAIT
 TCP tc:8009 localhost:4099 CLOSE_WAIT
 TCP tc:8009 localhost:4101 CLOSE_WAIT
 TCP tc:8009 localhost:4102 CLOSE_WAIT
 TCP tc:8009 localhost:4103 CLOSE_WAIT
 TCP tc:8009 localhost:4104 CLOSE_WAIT
 TCP tc:8009 localhost:4105 CLOSE_WAIT
 TCP tc:8009 localhost:4108 ESTABLISHED
 TCP tc:8009 localhost:4109 ESTABLISHED
 TCP tc:8009 localhost:4110 ESTABLISHED
 TCP tc:8009 localhost:4111 ESTABLISHED
 TCP tc:8009 localhost:4112 ESTABLISHED
 TCP tc:8009 localhost:4114 ESTABLISHED
 TCP tc:8009 localhost:4115 CLOSE_WAIT
 TCP tc:8009 localhost:4116 ESTABLISHED
 TCP tc:8009 localhost:4117 ESTABLISHED
 TCP tc:8009 localhost:4118 ESTABLISHED
 TCP tc:8009 localhost:4119 ESTABLISHED
 TCP tc:8009 localhost:4120 ESTABLISHED
 TCP tc:8009 localhost:4121 CLOSE_WAIT
 TCP tc:8009 localhost:4124 CLOSE_WAIT
 TCP tc:8009 localhost:4125 ESTABLISHED
 TCP tc:8009 localhost:4126 ESTABLISHED
 TCP tc:8009 localhost:4133 ESTABLISHED
 TCP tc:8009 localhost:4134 ESTABLISHED


-- 
---
http://www.psychotazkia.or.id


Re: HELP: Tomcat 5.5.9 with jsvc as low priviledges user on Linux fails in Boots

2005-08-02 Thread MC Moisei


Interesting, Thanks Darryl for sharing. So you run 5.5.9 and no problem huh 
?


What's the access given for the tomcat structure ? I'm interested in 
particular on that conf folder.  I can run it fine too but not as root and 
root has no write access to the conf folder. How is your set up ?


BTW that .new extension looked strange to me too. I cannot explain it - 
didn't look yet in TC source code.


Here's the way I call the jsvc

JAVA_HOME=/usr/local/java_home
CATALINA_HOME=/usr/local/tomcat/tomcat_home
TOMCAT_USER=tomcat
TMP_DIR=/var/tmp

CATALINA_OPTS=

CLASSPATH=\
$JAVA_HOME/lib/tools.jar:\
$CATALINA_HOME/bin/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar:\
$CATALINA_HOME/bin/mx4j-jmx.jar:\
$CATALINA_HOME/bin/mx4j.jar:\

   $CATALINA_HOME/bin/jsvc \
   -user $TOMCAT_USER \
   -home $JAVA_HOME \
   -Dcatalina.home=$CATALINA_HOME \
   -Djava.io.tmpdir=$TMP_DIR \
   -outfile $CATALINA_HOME/logs/catalina-daemon.out \
   -errfile $CATALINA_HOME/logs/catalina-daemon.err \
   $CATALINA_OPTS \
   -cp 
$CLASSPATH:$CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/commons-daemon.jar 
org.apache.catalina.startup.Bootstrap



Did you have any issues while installing jsvc ?

Thanks again,
MC

http://www.goodstockimages.com




From: Darryl L. Miles [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: HELP: Tomcat 5.5.9 with jsvc as low priviledges user on Linux 
fails in Bootstrap

Date: Tue, 02 Aug 2005 08:01:36 +0100

MC Moisei wrote:

java.io.FileNotFoundException: 
/usr/local/tomcat/tomcat_home/conf/tomcat-users.xml.new (Permission 
denied)

at java.io.FileOutputStream.open(Native Method)


This smells like its calling for write access to the DIRECTORY  
/usr/local/tomcat/tomcat_home/conf/  (not the file)


Unless you have a left over file that is actually called 
conf/tomcat-users.xml.new from a previous execution of TC that did not 
complete the edit and rename.  In which case I think you need to delete the 
conf/tomcat-users.xml.new file (after you've ensured you have a valid and 
working conf/tomcat-users.xml file itself).



FYI - I run jsvc too and have not seen this problem with 5.5.9.

jsvc.exec -Djava.endorsed.dirs=./common/endorsed -classpath 
:/opt/jakarta-tomcat-5.5.9/bin/bootstrap.jar:/opt/jakarta-tomcat-5.5.9/bin/commons-logging-api.jar 
-Dcatalina.base=/opt/jakarta-tomcat-5.5.9 
-Dcatalina.home=/opt/jakarta-tomcat-5.5.9 
-Djava.io.tmpdir=/opt/jakarta-tomcat-5.5.9/temp -outfile 
./logs/catalina.out -errfile ./logs/catalina.err -pidfile ./logs/jsvc.pid
-user jakarta -Xmx2048M -Xms512M 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
org.apache.catalina.startup.Bootstrap start


--
Darryl L. Miles



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HELP: Tomcat 5.5.9 with jsvc as low priviledges user on Linux fails in Boots

2005-08-02 Thread Rainer Jung
For some reason during startup tomcat writes (!) the file
tomcat-users.xml. It does it in the way that it writes to
tomcat-users.xml.new and then renames that file to tomcat-users.xml. At
least that's what was in the 5.0 code. I assume that didn't change with
5.5.

As a consequence the user running tomcat needs write access to the
directory the tomcat-users.xml file is in. If you don't like the idea of
giving that runtime user write access to the conf directory, you can
configure tomcat-users.xml inside server.xml to be in some other directory
- which then is the one that needs write access. As far as I know, there
is no workaround for that at the moment (except for choosing another user
realm).


 Interesting, Thanks Darryl for sharing. So you run 5.5.9 and no problem
 huh
 ?

 What's the access given for the tomcat structure ? I'm interested in
 particular on that conf folder.  I can run it fine too but not as root and
 root has no write access to the conf folder. How is your set up ?

 BTW that .new extension looked strange to me too. I cannot explain it -
 didn't look yet in TC source code.

 Here's the way I call the jsvc

 JAVA_HOME=/usr/local/java_home
 CATALINA_HOME=/usr/local/tomcat/tomcat_home
 TOMCAT_USER=tomcat
 TMP_DIR=/var/tmp

 CATALINA_OPTS=

 CLASSPATH=\
 $JAVA_HOME/lib/tools.jar:\
 $CATALINA_HOME/bin/commons-daemon.jar:\
 $CATALINA_HOME/bin/bootstrap.jar:\
 $CATALINA_HOME/bin/mx4j-jmx.jar:\
 $CATALINA_HOME/bin/mx4j.jar:\

 $CATALINA_HOME/bin/jsvc \
 -user $TOMCAT_USER \
 -home $JAVA_HOME \
 -Dcatalina.home=$CATALINA_HOME \
 -Djava.io.tmpdir=$TMP_DIR \
 -outfile $CATALINA_HOME/logs/catalina-daemon.out \
 -errfile $CATALINA_HOME/logs/catalina-daemon.err \
 $CATALINA_OPTS \
 -cp
 $CLASSPATH:$CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/commons-daemon.jar
 org.apache.catalina.startup.Bootstrap


 Did you have any issues while installing jsvc ?

 Thanks again,
 MC

 http://www.goodstockimages.com



From: Darryl L. Miles [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: HELP: Tomcat 5.5.9 with jsvc as low priviledges user on
 Linux
fails in Bootstrap
Date: Tue, 02 Aug 2005 08:01:36 +0100

MC Moisei wrote:

java.io.FileNotFoundException:
/usr/local/tomcat/tomcat_home/conf/tomcat-users.xml.new (Permission
denied)
 at java.io.FileOutputStream.open(Native Method)

This smells like its calling for write access to the DIRECTORY
/usr/local/tomcat/tomcat_home/conf/  (not the file)

Unless you have a left over file that is actually called
conf/tomcat-users.xml.new from a previous execution of TC that did not
complete the edit and rename.  In which case I think you need to delete
 the
conf/tomcat-users.xml.new file (after you've ensured you have a valid and
working conf/tomcat-users.xml file itself).


FYI - I run jsvc too and have not seen this problem with 5.5.9.

jsvc.exec -Djava.endorsed.dirs=./common/endorsed -classpath
:/opt/jakarta-tomcat-5.5.9/bin/bootstrap.jar:/opt/jakarta-tomcat-5.5.9/bin/commons-logging-api.jar
-Dcatalina.base=/opt/jakarta-tomcat-5.5.9
-Dcatalina.home=/opt/jakarta-tomcat-5.5.9
-Djava.io.tmpdir=/opt/jakarta-tomcat-5.5.9/temp -outfile
./logs/catalina.out -errfile ./logs/catalina.err -pidfile ./logs/jsvc.pid
-user jakarta -Xmx2048M -Xms512M
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
org.apache.catalina.startup.Bootstrap start

--
Darryl L. Miles



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: need help for deployment of unpack apps at Linux Tomcat 5.0

2005-08-01 Thread Mohd. Jeffry
I'm not using the war. This is an Unpacked deployment. 

On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
 Hi Jeffry, are you trying to deploy a .war file ? maybe U should use the
 tomcat manager, usually it's located at
 http://localhost:8080/manager/html, U can deploy your .war
 files from that tools.
  
  
 
 
 On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
  
  I'm migrating form Tomcat 4.1.2 to Tomcat 5.0. In Tomcat 4.1.2 I
  usually put my unpacked apps at /opt/tomcat/webapps/myapp and it work.
  Now It doesn't work with the newly installed tomcat 5. Tomcat gives me
  404 error. The example that came with the package works fine. Any 
  thing that I miss?
  
  
  
  
  --
  Malaysian Java Online Community ( www.kampungjawa.cjb.net )
  
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 
 
 -- 
 ---
 http://www.psychotazkia.or.id 


-- 
Malaysian Java Online Community ( www.kampungjawa.cjb.net )

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: need help for deployment of unpack apps at Linux Tomcat 5.0

2005-08-01 Thread Lintang JP
any log file ?

On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
 
 I'm not using the war. This is an Unpacked deployment.
 
 On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
  Hi Jeffry, are you trying to deploy a .war file ? maybe U should use the
  tomcat manager, usually it's located at
  http://localhost:8080/manager/html, U can deploy your .war
  files from that tools.
 
 
 
 
  On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
  
   I'm migrating form Tomcat 4.1.2 to Tomcat 5.0. In Tomcat 4.1.2 I
   usually put my unpacked apps at /opt/tomcat/webapps/myapp and it work.
   Now It doesn't work with the newly installed tomcat 5. Tomcat gives me
   404 error. The example that came with the package works fine. Any
   thing that I miss?
  
  
  
  
   --
   Malaysian Java Online Community ( 
   www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net)
  
  
  -
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
 
  --
  ---
  http://www.psychotazkia.or.id
 
 
 --
 Malaysian Java Online Community ( 
 www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net)
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
---
http://www.psychotazkia.or.id


Re: need help for deployment of unpack apps at Linux Tomcat 5.0

2005-08-01 Thread Mohd. Jeffry
my application name is sd. This is my catalina.out

.
.
.
INFO: Processing Context configuration file URL
file:/etc/tomcat5/Catalina/localhost/balancer.xml
Aug 1, 2005 11:21:31 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /sd from URL
file:/opt/tomcat5/webapps/sd
Aug 1, 2005 11:21:33 PM org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
at 
org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:505)
.
.
.
.Aug 1, 2005 11:21:33 PM org.apache.catalina.startup.ContextConfig
applicationConfig
SEVERE: Parse error in application web.xml
java.lang.IllegalArgumentException: Servlet mapping specifies an
unknown servlet name invoker
at 
org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)
at 
org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)
at org.apache.commons.digester.Digester.endElement(Digester.java:1061)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
.
.
.
.



On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
 any log file ?
 
 On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
  I'm not using the war. This is an Unpacked deployment.
  
  On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
   Hi Jeffry, are you trying to deploy a .war file ? maybe U should use the
   tomcat manager, usually it's located at
   http://localhost:8080/manager/html, U can deploy your
 .war
   files from that tools.
  
  
  
  
   On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
   
I'm migrating form Tomcat 4.1.2 to Tomcat 5.0. In Tomcat 4.1.2 I
usually put my unpacked apps at /opt/tomcat/webapps/myapp and it work.
Now It doesn't work with the newly installed tomcat 5. Tomcat gives me
404 error. The example that came with the package works fine. Any
thing that I miss?
   

   
   
--
Malaysian Java Online Community ( www.kampungjawa.cjb.net )
   
   
  
 -
To unsubscribe, e-mail:
   [EMAIL PROTECTED]
For additional commands, e-mail:
   [EMAIL PROTECTED]
   
   
  
  
  
   --
  
 ---
   http://www.psychotazkia.or.id
  
  
  --
  Malaysian Java Online Community ( www.kampungjawa.cjb.net )
  
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 
 
 -- 
 ---
 http://www.psychotazkia.or.id 


-- 
Malaysian Java Online Community ( www.kampungjawa.cjb.net )

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: need help for deployment of unpack apps at Linux Tomcat 5.0

2005-08-01 Thread Lintang JP
Servlet mapping specifies an
unknown servlet name invoker

Maybe you try to map a servlet name that's not declared yet on web.xml ?
How about your web.xml file ?

On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
 
 my application name is sd. This is my catalina.out
 
 .
 .
 .
 INFO: Processing Context configuration file URL
 file:/etc/tomcat5/Catalina/localhost/balancer.xml
 Aug 1, 2005 11:21:31 PM org.apache.catalina.core.StandardHostDeployerinstall
 INFO: Installing web application at context path /sd from URL
 file:/opt/tomcat5/webapps/sd
 Aug 1, 2005 11:21:33 PM org.apache.commons.digester.Digester endElement
 SEVERE: End event threw exception
 java.lang.reflect.InvocationTargetException
 at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java
 :252)
 at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:505)
 .
 .
 .
 .Aug 1, 2005 11:21:33 PM org.apache.catalina.startup.ContextConfig
 applicationConfig
 SEVERE: Parse error in application web.xml
 java.lang.IllegalArgumentException: Servlet mapping specifies an
 unknown servlet name invoker
 at org.apache.commons.digester.Digester.createSAXException(Digester.java
 :2540)
 at org.apache.commons.digester.Digester.createSAXException(Digester.java
 :2566)
 at org.apache.commons.digester.Digester.endElement(Digester.java:1061)
 at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
 Source)
 at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown
 Source)
 at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
 Source)
 at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
 at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement
 (Unknown
 Source)
 at 
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
 (Unknown
 Source)
 at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
 (Unknown
 Source)
 .
 .
 .
 .
 
 
 
 On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
  any log file ?
 
  On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
   I'm not using the war. This is an Unpacked deployment.
  
   On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
Hi Jeffry, are you trying to deploy a .war file ? maybe U should use 
 the
tomcat manager, usually it's located at
http://localhost:8080/manager/html, U can deploy your
  .war
files from that tools.
   
   
   
   
On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:

 I'm migrating form Tomcat 4.1.2 to Tomcat 5.0. In Tomcat 4.1.2 I
 usually put my unpacked apps at /opt/tomcat/webapps/myapp and it 
 work.
 Now It doesn't work with the newly installed tomcat 5. Tomcat 
 gives me
 404 error. The example that came with the package works fine. Any
 thing that I miss?




 --
 Malaysian Java Online Community ( 
 www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net)


   
  -
 To unsubscribe, e-mail:
[EMAIL PROTECTED]
 For additional commands, e-mail:
[EMAIL PROTECTED]


   
   
   
--
   
  ---
http://www.psychotazkia.or.id
  
  
   --
   Malaysian Java Online Community ( 
   www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net)
  
  
  -
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
 
  --
  ---
  http://www.psychotazkia.or.id
 
 
 --
 Malaysian Java Online Community ( 
 www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net)
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
---
http://www.psychotazkia.or.id


Re: need help for deployment of unpack apps at Linux Tomcat 5.0

2005-08-01 Thread Mohd. Jeffry
which one?  tomcat or my application web.xml ?

On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
 Servlet mapping specifies an
  unknown servlet name invoker
  
  Maybe you try to map a servlet name that's not declared yet on web.xml ?
  How about your web.xml file ?
 
 
 On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
  
  my application name is sd. This is my catalina.out
  
  .
  .
  .
  INFO: Processing Context configuration file URL
  file:/etc/tomcat5/Catalina/localhost/balancer.xml
  Aug 1, 2005 11:21:31 PM
 org.apache.catalina.core.StandardHostDeployer install
  INFO: Installing web application at context path /sd from URL
  file:/opt/tomcat5/webapps/sd
  Aug 1, 2005 11:21:33 PM
 org.apache.commons.digester.Digester endElement
  SEVERE: End event threw exception
  java.lang.reflect.InvocationTargetException
  at
 sun.reflect.GeneratedMethodAccessor46.invoke(Unknown
 Source)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at
 org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
  at
 org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java
 :505)
  .
  .
  .
  .Aug 1, 2005 11:21:33 PM
 org.apache.catalina.startup.ContextConfig
  applicationConfig
  SEVERE: Parse error in application web.xml
  java.lang.IllegalArgumentException: Servlet mapping
 specifies an 
  unknown servlet name invoker
  at
 org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)
  at
 org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)
  at
 org.apache.commons.digester.Digester.endElement(Digester.java:1061)
  at
 org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
  Source)
  at
 org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope
 (Unknown
  Source)
  at
 org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
  Source)
  at
 org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
 Source)
  at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement
 (Unknown
  Source)
  at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
  Source)
  at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
 (Unknown
  Source)
  .
  .
  .
  .
  
  
  
  On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
   any log file ?
  
   On 8/1/05, Mohd. Jeffry  [EMAIL PROTECTED] wrote:
I'm not using the war. This is an Unpacked deployment.
   
On 8/1/05, Lintang JP  [EMAIL PROTECTED] wrote:
 Hi Jeffry, are you trying to deploy a .war file ? maybe U should use
 the
 tomcat manager, usually it's located at
 http://localhost:8080/manager/html, U can deploy
 your
   .war
 files from that tools.




 On 8/1/05, Mohd. Jeffry  [EMAIL PROTECTED] wrote:
 
  I'm migrating form Tomcat 4.1.2 to Tomcat 5.0. In Tomcat 4.1.2 I
  usually put my unpacked apps at /opt/tomcat/webapps/myapp and it
 work. 
  Now It doesn't work with the newly installed tomcat 5. Tomcat
 gives me
  404 error. The example that came with the package works fine. Any
  thing that I miss? 
 
 
 
 
  --
  Malaysian Java Online Community ( www.kampungjawa.cjb.net )
 
 

  
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
 



 --

  
 ---
 http://www.psychotazkia.or.id
   
   
--
Malaysian Java Online Community ( www.kampungjawa.cjb.net )
   
   
  
 -
To unsubscribe, e-mail:
   [EMAIL PROTECTED] 
For additional commands, e-mail:
   [EMAIL PROTECTED]
   
   
  
  
  
   --
  
 ---
   http://www.psychotazkia.or.id
  
  
  --
  Malaysian Java Online Community ( www.kampungjawa.cjb.net )
  
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 
 
 -- 
 ---
 http://www.psychotazkia.or.id 


-- 
Malaysian Java Online Community ( www.kampungjawa.cjb.net )

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: need help for deployment of unpack apps at Linux Tomcat 5.0

2005-08-01 Thread Lintang JP
you app.specific web.xml, at WEB-INF

On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
 
 which one? tomcat or my application web.xml ?
 
 On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
  Servlet mapping specifies an
  unknown servlet name invoker
 
  Maybe you try to map a servlet name that's not declared yet on web.xml ?
  How about your web.xml file ?
 
 
  On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
  
   my application name is sd. This is my catalina.out
  
   .
   .
   .
   INFO: Processing Context configuration file URL
   file:/etc/tomcat5/Catalina/localhost/balancer.xml
   Aug 1, 2005 11:21:31 PM
  org.apache.catalina.core.StandardHostDeployer install
   INFO: Installing web application at context path /sd from URL
   file:/opt/tomcat5/webapps/sd
   Aug 1, 2005 11:21:33 PM
  org.apache.commons.digester.Digester endElement
   SEVERE: End event threw exception
   java.lang.reflect.InvocationTargetException
   at
  sun.reflect.GeneratedMethodAccessor46.invoke(Unknown
  Source)
   at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at
  org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java
 :252)
   at
  org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java
  :505)
   .
   .
   .
   .Aug 1, 2005 11:21:33 PM
  org.apache.catalina.startup.ContextConfig
   applicationConfig
   SEVERE: Parse error in application web.xml
   java.lang.IllegalArgumentException: Servlet mapping
  specifies an
   unknown servlet name invoker
   at
  org.apache.commons.digester.Digester.createSAXException(Digester.java
 :2540)
   at
  org.apache.commons.digester.Digester.createSAXException(Digester.java
 :2566)
   at
  org.apache.commons.digester.Digester.endElement(Digester.java:1061)
   at
  org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
   Source)
   at
  org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope
  (Unknown
   Source)
   at
  org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
   Source)
   at
  org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
  Source)
   at
  org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement
  (Unknown
   Source)
   at
  
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
 (Unknown
   Source)
   at
  org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
  (Unknown
   Source)
   .
   .
   .
   .
  
  
  
   On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
any log file ?
   
On 8/1/05, Mohd. Jeffry  [EMAIL PROTECTED] wrote:
 I'm not using the war. This is an Unpacked deployment.

 On 8/1/05, Lintang JP  [EMAIL PROTECTED] wrote:
  Hi Jeffry, are you trying to deploy a .war file ? maybe U should 
 use
  the
  tomcat manager, usually it's located at
  http://localhost:8080/manager/html, U can deploy
  your
.war
  files from that tools.
 
 
 
 
  On 8/1/05, Mohd. Jeffry  [EMAIL PROTECTED] wrote:
  
   I'm migrating form Tomcat 4.1.2 to Tomcat 5.0. In Tomcat 4.1.2I
   usually put my unpacked apps at /opt/tomcat/webapps/myapp and 
 it
  work.
   Now It doesn't work with the newly installed tomcat 5. Tomcat
  gives me
   404 error. The example that came with the package works fine. 
 Any
   thing that I miss?
  
  
  
  
   --
   Malaysian Java Online Community ( 
   www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net)
  
  
 
   
  -
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
 
  --
 
   
  ---
  http://www.psychotazkia.or.id


 --
 Malaysian Java Online Community ( 
 www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net)


   
  -
 To unsubscribe, e-mail:
[EMAIL PROTECTED]
 For additional commands, e-mail:
[EMAIL PROTECTED]


   
   
   
--
   
  ---
http://www.psychotazkia.or.id
  
  
   --
   Malaysian Java Online Community ( 
   www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net)
  
  
  -
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
 
  --
  ---
  http://www.psychotazkia.or.id
 
 
 --
 Malaysian Java Online Community ( 
 www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net)
 



-- 
---
http://www.psychotazkia.or.id


Re: need help for deployment of unpack apps at Linux Tomcat 5.0

2005-08-01 Thread Mohd. Jeffry
I don't think its a good idea to post it here. The files got thousands
of lines.. perhaps there are specific parts that I should be look in
to?

On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
 you app.specific web.xml, at WEB-INF
 
 
 On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
  which one?  tomcat or my application web.xml ?
  
  On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
   Servlet mapping specifies an
unknown servlet name invoker 
  
Maybe you try to map a servlet name that's not declared yet on web.xml
 ?
How about your web.xml file ?
  
  
   On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED]  wrote:
   
my application name is sd. This is my catalina.out
   
.
.
.
INFO: Processing Context configuration file URL
file:/etc/tomcat5/Catalina/localhost/balancer.xml 
Aug 1, 2005 11:21:31 PM
   org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /sd from URL
file:/opt/tomcat5/webapps/sd
Aug 1, 2005 11:21:33 PM 
   org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
at
   sun.reflect.GeneratedMethodAccessor46.invoke (Unknown
   Source)
at
  
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
  
 org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
at
  
 org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java
   :505)
.
. 
.
.Aug 1, 2005 11:21:33 PM
   org.apache.catalina.startup.ContextConfig
applicationConfig
SEVERE: Parse error in application web.xml
java.lang.IllegalArgumentException : Servlet mapping
   specifies an
unknown servlet name invoker
at
  
 org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)
at
  
 org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)
at
  
 org.apache.commons.digester.Digester.endElement(Digester.java:1061)
at
   org.apache.xerces.parsers.AbstractSAXParser.endElement
 (Unknown
Source)
at
  
 org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope
   (Unknown
Source)
at
  
 org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement
 (Unknown
Source)
at
  
 org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
   Source)
at
  
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement
   (Unknown
Source)
at
  
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
  
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
   (Unknown
Source)
.
.
.
.
   
   
   
On 8/1/05, Lintang JP  [EMAIL PROTECTED] wrote:
 any log file ?

 On 8/1/05, Mohd. Jeffry  [EMAIL PROTECTED]  wrote:
  I'm not using the war. This is an Unpacked deployment.
 
  On 8/1/05, Lintang JP  [EMAIL PROTECTED]  wrote:
   Hi Jeffry, are you trying to deploy a .war file ? maybe U should
 use
   the
   tomcat manager, usually it's located at
   http://localhost:8080/manager/html, U can
 deploy
   your
 .war
   files from that tools.
  
   
  
  
   On 8/1/05, Mohd. Jeffry  [EMAIL PROTECTED] wrote:
   
I'm migrating form Tomcat 4.1.2 to Tomcat 5.0. In Tomcat 4.1.2
 I
usually put my unpacked apps at /opt/tomcat/webapps/myapp and
 it
   work.
Now It doesn't work with the newly installed tomcat 5. Tomcat 
   gives me
404 error. The example that came with the package works fine.
 Any
thing that I miss?
   

   
   
--
Malaysian Java Online Community ( www.kampungjawa.cjb.net )
   
   
  

  
 -
To unsubscribe, e-mail: 
   [EMAIL PROTECTED]
For additional commands, e-mail:
   [EMAIL PROTECTED]
   
   
  
  
   
   --
  

  
 ---
   http://www.psychotazkia.or.id
 
 
  --
  Malaysian Java Online Community ( www.kampungjawa.cjb.net )
 
 

  
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
 



 --

  
 ---
 http://www.psychotazkia.or.id
   
   
--
Malaysian Java Online Community ( www.kampungjawa.cjb.net )
   
   
  
 -
To unsubscribe, e-mail:
   

Re: need help for deployment of unpack apps at Linux Tomcat 5.0

2005-08-01 Thread Lintang JP
1. try to match the servlet-name part with the servlet-mapping, maybe 
there's some unmatch item there
2. If U just migrate to tomcat 5, U shd also look the DTD item at the top of 
your web.xml file, which dtd is used by web.xml in tomcat 5

I guess that's all ?

On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
 
 I don't think its a good idea to post it here. The files got thousands
 of lines.. perhaps there are specific parts that I should be look in
 to?
 
 On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
  you app.specific web.xml, at WEB-INF
 
 
  On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
   which one? tomcat or my application web.xml ?
  
   On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
Servlet mapping specifies an
unknown servlet name invoker
   
Maybe you try to map a servlet name that's not declared yet on 
 web.xml
  ?
How about your web.xml file ?
   
   
On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED]  wrote:

 my application name is sd. This is my catalina.out

 .
 .
 .
 INFO: Processing Context configuration file URL
 file:/etc/tomcat5/Catalina/localhost/balancer.xml
 Aug 1, 2005 11:21:31 PM
org.apache.catalina.core.StandardHostDeployer install
 INFO: Installing web application at context path /sd from URL
 file:/opt/tomcat5/webapps/sd
 Aug 1, 2005 11:21:33 PM
org.apache.commons.digester.Digester endElement
 SEVERE: End event threw exception
 java.lang.reflect.InvocationTargetException
 at
sun.reflect.GeneratedMethodAccessor46.invoke (Unknown
Source)
 at
   
  sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
   
  org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java
 :252)
 at
   
  org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java
:505)
 .
 .
 .
 .Aug 1, 2005 11:21:33 PM
org.apache.catalina.startup.ContextConfig
 applicationConfig
 SEVERE: Parse error in application web.xml
 java.lang.IllegalArgumentException : Servlet mapping
specifies an
 unknown servlet name invoker
 at
   
  org.apache.commons.digester.Digester.createSAXException(Digester.java
 :2540)
 at
   
  org.apache.commons.digester.Digester.createSAXException(Digester.java
 :2566)
 at
   
  org.apache.commons.digester.Digester.endElement(Digester.java:1061)
 at
org.apache.xerces.parsers.AbstractSAXParser.endElement
  (Unknown
 Source)
 at
   
  org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope
(Unknown
 Source)
 at
   
  org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement
  (Unknown
 Source)
 at
   
  org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
Source)
 at
   
  org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement
(Unknown
 Source)
 at
   
  
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
 (Unknown
 Source)
 at
   
  org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
(Unknown
 Source)
 .
 .
 .
 .



 On 8/1/05, Lintang JP  [EMAIL PROTECTED] wrote:
  any log file ?
 
  On 8/1/05, Mohd. Jeffry  [EMAIL PROTECTED]  wrote:
   I'm not using the war. This is an Unpacked deployment.
  
   On 8/1/05, Lintang JP  [EMAIL PROTECTED]  wrote:
Hi Jeffry, are you trying to deploy a .war file ? maybe U 
 should
  use
the
tomcat manager, usually it's located at
http://localhost:8080/manager/html, U can
  deploy
your
  .war
files from that tools.
   
   
   
   
On 8/1/05, Mohd. Jeffry  [EMAIL PROTECTED] wrote:

 I'm migrating form Tomcat 4.1.2 to Tomcat 5.0. In Tomcat 
 4.1.2
  I
 usually put my unpacked apps at /opt/tomcat/webapps/myapp 
 and
  it
work.
 Now It doesn't work with the newly installed tomcat 5. 
 Tomcat
gives me
 404 error. The example that came with the package works 
 fine.
  Any
 thing that I miss?




 --
 Malaysian Java Online Community ( 
 www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net)


   
 
   
  -
 To unsubscribe, e-mail:
[EMAIL PROTECTED]
 For additional commands, e-mail:
[EMAIL PROTECTED]


   
   
   
--
   
 
   
  ---
http://www.psychotazkia.or.id
  
  
   --
   Malaysian Java Online Community ( 
   www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net)
  
  
 
   
  -
   

Cannot create JDBC driver of class - help!!

2005-08-01 Thread Anish Tom Ashley
Hi,
I'm trying to create a struts based application which tries to
access MySQL dB using mysql-connector-java-3.1.10 connector.
I'm having problem with my getConnection() code. The following error
is occurring.

org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC
driver of class ' ' for connect URL 'null'
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
a:780)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5
40)
at
com.tavant.app1_2.dao.MySQLLoader.executeQuery(MySQLLoader.java:29)
at
com.tavant.app1_2.action.HomePageAction.execute(HomePageAction.java:28)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:419)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
..etcetc


I've pasted the server.xml, web.xml and my java program only
including relevant parts.

 server.xml

?xml version='1.0' encoding='utf-8'?
Server
  context path=/teststruts docBase=teststruts.war debug=1
reloadable=true 
Resource name=mydatasource type=javax.sql.DataSource/
ResourceParams name=mydatasource
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
namemaxWait/name
value5000/value
  /parameter
  parameter
namemaxActive/name
value4/value
  /parameter
  parameter
namepassword/name
valuef_695248/value
  /parameter
  parameter
nameurl/name
valuejdbc:mysql://localhost:3306/tavant/value
  /parameter
  parameter
namedriverClassName/name
valuecom.mysql.jdbc.Driver/value
  /parameter
  parameter
namemaxIdle/name
value2/value
  /parameter
  parameter
nameusername/name
valueroot/value
  /parameter
/ResourceParams
  /context  
/Server


-
 web.xml

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;
web-app 
 resource-ref
   description
Resource reference to a factory for java.sql.Connection
instances that may be used for talking to a particular
database that is configured in the server.xml file.
   /description
   res-ref-namemydatasource/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
 /resource-ref
/web-app


-


 MySQLLoader.java

package com.tavant.app1_2.dao;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.sql.DataSource;

public class MySQLLoader {
public void executeQuery() {
try { 
InitialContext ctx = new InitialContext();
Context ctx2 = (Context)ctx.lookup(java:comp/env);

DataSource ds = (DataSource)ctx2.lookup(mydatasource);
Connection conn = ds.getConnection();
Statement stmt = conn.createStatement();
stmt.executeUpdate(Insert into customer
values('001','Anish','001'));
stmt.close();   
conn.close();  
 } catch(Exception e) { 
//some code
 } finally{
//some code
 }
}


-



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Cannot create JDBC driver of class - help!!

2005-08-01 Thread Allistair Crossley
Is Context not supposed to be within a Host element? You also have a lowercase 
c in context rather than Context. You also will want jdbc/ before the name 
for the datasource. 

In fact, I think you need to read the manual (I am assuming Tomcat 5.0, 
otherwise look at your version).

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html

Allistair.

 -Original Message-
 From: Anish Tom Ashley [mailto:[EMAIL PROTECTED]
 Sent: 01 August 2005 16:30
 To: tomcat-user@jakarta.apache.org
 Subject: Cannot create JDBC driver of class - help!!
 Importance: High
 
 
 Hi,
   I'm trying to create a struts based application which tries to
 access MySQL dB using mysql-connector-java-3.1.10 connector.
   I'm having problem with my getConnection() code. The 
 following error
 is occurring.
 
 org.apache.commons.dbcp.SQLNestedException: 
 Cannot create JDBC
 driver of class ' ' for connect URL 'null'
 at
 org.apache.commons.dbcp.BasicDataSource.createDataSource(Basic
 DataSource.jav
 a:780)
 at
 org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDat
 aSource.java:5
 40)
 at
 com.tavant.app1_2.dao.MySQLLoader.executeQuery(MySQLLoader.java:29)
 at
 com.tavant.app1_2.action.HomePageAction.execute(HomePageAction
 .java:28)
 at
 org.apache.struts.action.RequestProcessor.processActionPerform
 (RequestProces
 sor.java:419)
 at
 org.apache.struts.action.RequestProcessor.process(RequestProce
 ssor.java:224)
 at
 org.apache.struts.action.ActionServlet.process(ActionServlet.j
 ava:1194)
 at
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
   ..etcetc
   
 
   I've pasted the server.xml, web.xml and my java program only
 including relevant parts.
 
    server.xml
 
 ?xml version='1.0' encoding='utf-8'?
 Server
   context path=/teststruts docBase=teststruts.war debug=1
 reloadable=true 
 Resource name=mydatasource type=javax.sql.DataSource/
 ResourceParams name=mydatasource
   parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
 namemaxWait/name
 value5000/value
   /parameter
   parameter
 namemaxActive/name
 value4/value
   /parameter
   parameter
 namepassword/name
 valuef_695248/value
   /parameter
   parameter
 nameurl/name
 valuejdbc:mysql://localhost:3306/tavant/value
   /parameter
   parameter
 namedriverClassName/name
 valuecom.mysql.jdbc.Driver/value
   /parameter
   parameter
 namemaxIdle/name
 value2/value
   /parameter
   parameter
 nameusername/name
 valueroot/value
   /parameter
 /ResourceParams
   /context  
 /Server
   
 --
 --
 -
    web.xml
 
 ?xml version=1.0 encoding=ISO-8859-1?
 
 !DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;
 web-app 
  resource-ref
description
 Resource reference to a factory for java.sql.Connection
 instances that may be used for talking to a particular
 database that is configured in the server.xml file.
/description
res-ref-namemydatasource/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
  /resource-ref
 /web-app
   
 --
 --
 -
 
 
    MySQLLoader.java
 
 package com.tavant.app1_2.dao;
 import java.sql.Connection;
 import java.sql.SQLException;
 import java.sql.Statement;
 import javax.naming.Context;
 import javax.naming.InitialContext;
 import javax.sql.DataSource;
 
 public class MySQLLoader {
   public void executeQuery() {
   try { 
   InitialContext ctx = new InitialContext();
   Context ctx2 = (Context)ctx.lookup(java:comp/env);
 
   DataSource ds = 
 (DataSource)ctx2.lookup(mydatasource);
   Connection conn = ds.getConnection();
   Statement stmt = conn.createStatement();
 stmt.executeUpdate(Insert into customer
 values('001','Anish','001

HELP: Tomcat 5.5.9 with jsvc as low priviledges user on Linux fails in Bootstrap

2005-08-01 Thread MC Moisei

Hi,

I manage to configure my tomcat with jsvc(common-daemon) and everything work 
great till I start to launch it as root. If I run it as tomcat user it does 
work great. If I try to run it as root from command prompt or from init.d I 
get the following exception ( see below )


Right are given as below
chown -R tomcat:tomcat /usr/local/tomcat
chown -R root:root /usr/local/tomcat/bin
chown -R root:root /usr/local/tomcat/common

This is not right - looks like the bootstrap is trying to access the Realm 
and there is no write access to the conf/tomcat-users.xml file. I can't 
believe the common-daemon not tomcat side didn't say a thing about this, I 
bet there are others experiencing the matter.
Do i have to disable Tomcat realms ? It doesn't sounds right. There is no 
way I'd give others write access on that.


Looking forward to hear from you if you experienced something similar.
Thanks,
MC




Aug 1, 2005 7:23:15 PM org.apache.naming.NamingContext lookup
WARNING: Unexpected exception resolving reference
java.io.FileNotFoundException: 
/usr/local/tomcat/tomcat_home/conf/tomcat-users.xml.new (Permission denied)

at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.init(FileOutputStream.java:179)
at java.io.FileOutputStream.init(FileOutputStream.java:131)
	at 
org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:462)
	at 
org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:98)
	at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:129)

at 
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
at org.apache.naming.NamingContext.lookup(NamingContext.java:792)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
	at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:138)
	at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:108)
	at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:80)
	at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)

at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:676)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
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:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
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:324)
	at 
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:218)
Aug 1, 2005 7:23:15 PM 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBeans

SEVERE: Exception processing Global JNDI Resources



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



need help for deployment of unpack apps at Linux Tomcat 5.0

2005-07-31 Thread Mohd. Jeffry
I'm migrating form Tomcat 4.1.2 to Tomcat 5.0. In Tomcat 4.1.2 I
usually put my unpacked apps at /opt/tomcat/webapps/myapp and it work.
Now It doesn't work with the newly installed tomcat 5. Tomcat gives me
404 error. The example that came with the package works fine. Any
thing that I miss?




-- 
Malaysian Java Online Community ( www.kampungjawa.cjb.net )

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: need help for deployment of unpack apps at Linux Tomcat 5.0

2005-07-31 Thread Lintang JP
Hi Jeffry, are you trying to deploy a .war file ? maybe U should use the 
tomcat manager, usually it's located at http://localhost:8080/manager/html, 
U can deploy your .war files from that tools.



On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
 
 I'm migrating form Tomcat 4.1.2 to Tomcat 5.0. In Tomcat 4.1.2 I
 usually put my unpacked apps at /opt/tomcat/webapps/myapp and it work.
 Now It doesn't work with the newly installed tomcat 5. Tomcat gives me
 404 error. The example that came with the package works fine. Any
 thing that I miss?
 
 
 
 
 --
 Malaysian Java Online Community ( 
 www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net)
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
---
http://www.psychotazkia.or.id


Problem with Jasper-Need your help

2005-07-27 Thread Panagiotis Karvounis
Hi.I am new with Tomcat and JSP and I need your help.

I am trying the following simple jsp:


!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
HTML
HEAD
TITLEJSP Expressions/TITLE
/HEAD
BODY
H2JSP Expressions/H2
UL
LICurrent time: %= new java.util.Date() %
LIYour hostname: %= request.getRemoteHost() %
LIYour session ID: %= session.getId() %
LIThe CODEtestParam/CODE form parameter:
%= request.getParameter(testParam) %
/UL
/BODY
/HTML



And I get this error:

type Exception report

message 

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

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
The method handlePageException(Exception) in the type PageContext is
not applicable for the arguments (Throwable)


org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:382)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:280)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:259)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:247)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:544)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:302)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246)
javax.servlet.http.HttpServlet.service(HttpServlet.java)


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

Can you help me?

Thanks 
Panagiotis

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem with Jasper-Need your help

2005-07-27 Thread Raghupathy,Gurumoorthy
%= request.getParameter(testParam) % may trow a null pointer  so try 

%= request.getParameter(testParam) == null ?  :
request.getParameter(testParam) %


Regards
Guru

-Original Message-
From: Panagiotis Karvounis [mailto:[EMAIL PROTECTED] 
Sent: 27 July 2005 13:23
To: tomcat-user@jakarta.apache.org
Subject: Problem with Jasper-Need your help


Hi.I am new with Tomcat and JSP and I need your help.

I am trying the following simple jsp:


!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
HTML
HEAD
TITLEJSP Expressions/TITLE
/HEAD
BODY
H2JSP Expressions/H2
UL
LICurrent time: %= new java.util.Date() %
LIYour hostname: %= request.getRemoteHost() %
LIYour session ID: %= session.getId() %
LIThe CODEtestParam/CODE form parameter:
%= request.getParameter(testParam) %
/UL
/BODY
/HTML



And I get this error:

type Exception report

message 

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

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
The method handlePageException(Exception) in the type PageContext is
not applicable for the arguments (Throwable)


org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3
28)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:382)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:280)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:259)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:247)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
44)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
96)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:302)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246)
javax.servlet.http.HttpServlet.service(HttpServlet.java)


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

Can you help me?

Thanks 
Panagiotis

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with Jasper-Need your help

2005-07-27 Thread Panagiotis Karvounis
It didn't work again!

I have almost the same problem with all my JSP pages(Servlets work ok).
I think is a Tomcat problem;The method handlePageException(Exception)
in the type PageContext is not applicable for the arguments
(Throwable)

I went to servlet code produced and I changed catch(Throwable t)
with catch(Exception t) and the java file was compiled succesfully
with javac.

Thanks for help
Panagiotis


On 7/27/05, Raghupathy,Gurumoorthy
[EMAIL PROTECTED] wrote:
 %= request.getParameter(testParam) % may trow a null pointer  so try
 
 %= request.getParameter(testParam) == null ?  :
 request.getParameter(testParam) %
 
 
 Regards
 Guru
 
 -Original Message-
 From: Panagiotis Karvounis [mailto:[EMAIL PROTECTED]
 Sent: 27 July 2005 13:23
 To: tomcat-user@jakarta.apache.org
 Subject: Problem with Jasper-Need your help
 
 
 Hi.I am new with Tomcat and JSP and I need your help.
 
 I am trying the following simple jsp:
 
 
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
 HTML
 HEAD
 TITLEJSP Expressions/TITLE
 /HEAD
 BODY
 H2JSP Expressions/H2
 UL
 LICurrent time: %= new java.util.Date() %
 LIYour hostname: %= request.getRemoteHost() %
 LIYour session ID: %= session.getId() %
 LIThe CODEtestParam/CODE form parameter:
 %= request.getParameter(testParam) %
 /UL
 /BODY
 /HTML
 
 
 
 And I get this error:
 
 type Exception report
 
 message
 
 description The server encountered an internal error () that prevented
 it from fulfilling this request.
 
 exception
 
 org.apache.jasper.JasperException: Unable to compile class for JSP
 
 Generated servlet error:
 The method handlePageException(Exception) in the type PageContext is
 not applicable for the arguments (Throwable)
 
 
 org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
 r.java:84)
 org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3
 28)
 org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:382)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:280)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:259)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:247)
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
 44)
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
 96)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:302)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246)
 javax.servlet.http.HttpServlet.service(HttpServlet.java)
 
 
 note The full stack trace of the root cause is available in the Apache
 Tomcat/5.5.1 logs.
 
 Can you help me?
 
 Thanks
 Panagiotis
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Help with setting up aliases , it kind of works , but the getRealPath does not

2005-07-27 Thread Randy Paries
Hello
I will try to be brief
I am running apache 2, tomcat 5
 
I currently have this configuration
 
/home/topdomain=  www.topdomain.com
/home/topdomain/subdomain1  =  sub1.topdomain.com
/home/topdomain/subdomain2  =  sub2.topdomain.com
 
under each subdomain i have users. ie
/home/topdomain/subdomain1/usera  =  http://sub1.topdomain.com/usera
 
So this kind of works. All these subdomains, (I will actually have 5) all
share the exact code, and i really do not 
want to have 5 exact instances of this running.
 
The problem i am seeing getrealPath problems. For example, when i allow the
user to upload a file, i take his virt dir and do a getrealPath to get the
real physical path so i can upload it to the correct place. So if i am usera
on b1.topdomain.com 
and do a String realRPPath = application.getRealPath(/+user.getDir());
I get /home/topdomain/usera and not /home/topdomain/subdomain1/usera

I hope this makes sense
 
in my server.xml i have
Host name=www.topdomain.com http://www.topdomain.com/ 
debug=0 appBase=/home/topdomain unpackWARs=true
Aliassub1.topdomain.com/Alias
Aliassub2.topdomain.com/Alias
/Host
 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with Jasper-Need your help

2005-07-27 Thread Panagiotis Karvounis
So is there anybody that can help me?

Please guys...I don't know what to do.

On 7/27/05, Panagiotis Karvounis [EMAIL PROTECTED] wrote:
 It didn't work again!
 
 I have almost the same problem with all my JSP pages(Servlets work ok).
 I think is a Tomcat problem;The method handlePageException(Exception)
 in the type PageContext is not applicable for the arguments
 (Throwable)
 
 I went to servlet code produced and I changed catch(Throwable t)
 with catch(Exception t) and the java file was compiled succesfully
 with javac.
 
 Thanks for help
 Panagiotis
 
 
 On 7/27/05, Raghupathy,Gurumoorthy
 [EMAIL PROTECTED] wrote:
  %= request.getParameter(testParam) % may trow a null pointer  so try
 
  %= request.getParameter(testParam) == null ?  :
  request.getParameter(testParam) %
 
 
  Regards
  Guru
 
  -Original Message-
  From: Panagiotis Karvounis [mailto:[EMAIL PROTECTED]
  Sent: 27 July 2005 13:23
  To: tomcat-user@jakarta.apache.org
  Subject: Problem with Jasper-Need your help
 
 
  Hi.I am new with Tomcat and JSP and I need your help.
 
  I am trying the following simple jsp:
 
 
  !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
  HTML
  HEAD
  TITLEJSP Expressions/TITLE
  /HEAD
  BODY
  H2JSP Expressions/H2
  UL
  LICurrent time: %= new java.util.Date() %
  LIYour hostname: %= request.getRemoteHost() %
  LIYour session ID: %= session.getId() %
  LIThe CODEtestParam/CODE form parameter:
  %= request.getParameter(testParam) %
  /UL
  /BODY
  /HTML
 
 
 
  And I get this error:
 
  type Exception report
 
  message
 
  description The server encountered an internal error () that prevented
  it from fulfilling this request.
 
  exception
 
  org.apache.jasper.JasperException: Unable to compile class for JSP
 
  Generated servlet error:
  The method handlePageException(Exception) in the type PageContext is
  not applicable for the arguments (Throwable)
 
 
  org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
  r.java:84)
  org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3
  28)
  org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:382)
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:280)
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:259)
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:247)
  org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
  44)
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
  96)
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:302)
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246)
  javax.servlet.http.HttpServlet.service(HttpServlet.java)
 
 
  note The full stack trace of the root cause is available in the Apache
  Tomcat/5.5.1 logs.
 
  Can you help me?
 
  Thanks
  Panagiotis
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with Jasper-Need your help

2005-07-27 Thread Panagiotis Karvounis
I found the solution;

The method handlePage(Throwable) was introduced in JSP 2.0
The problem was that I had in my classpath a servlet.jar older where
this method was not defined.I deleted it and everything works fine
now.

Thanks for support
Panagiotis

On 7/27/05, Panagiotis Karvounis [EMAIL PROTECTED] wrote:
 So is there anybody that can help me?
 
 Please guys...I don't know what to do.
 
 On 7/27/05, Panagiotis Karvounis [EMAIL PROTECTED] wrote:
  It didn't work again!
 
  I have almost the same problem with all my JSP pages(Servlets work ok).
  I think is a Tomcat problem;The method handlePageException(Exception)
  in the type PageContext is not applicable for the arguments
  (Throwable)
 
  I went to servlet code produced and I changed catch(Throwable t)
  with catch(Exception t) and the java file was compiled succesfully
  with javac.
 
  Thanks for help
  Panagiotis
 
 
  On 7/27/05, Raghupathy,Gurumoorthy
  [EMAIL PROTECTED] wrote:
   %= request.getParameter(testParam) % may trow a null pointer  so try
  
   %= request.getParameter(testParam) == null ?  :
   request.getParameter(testParam) %
  
  
   Regards
   Guru
  
   -Original Message-
   From: Panagiotis Karvounis [mailto:[EMAIL PROTECTED]
   Sent: 27 July 2005 13:23
   To: tomcat-user@jakarta.apache.org
   Subject: Problem with Jasper-Need your help
  
  
   Hi.I am new with Tomcat and JSP and I need your help.
  
   I am trying the following simple jsp:
  
  
   !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
   HTML
   HEAD
   TITLEJSP Expressions/TITLE
   /HEAD
   BODY
   H2JSP Expressions/H2
   UL
   LICurrent time: %= new java.util.Date() %
   LIYour hostname: %= request.getRemoteHost() %
   LIYour session ID: %= session.getId() %
   LIThe CODEtestParam/CODE form parameter:
   %= request.getParameter(testParam) %
   /UL
   /BODY
   /HTML
  
  
  
   And I get this error:
  
   type Exception report
  
   message
  
   description The server encountered an internal error () that prevented
   it from fulfilling this request.
  
   exception
  
   org.apache.jasper.JasperException: Unable to compile class for JSP
  
   Generated servlet error:
   The method handlePageException(Exception) in the type PageContext is
   not applicable for the arguments (Throwable)
  
  
   org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
   r.java:84)
   org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3
   28)
   org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:382)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:280)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:259)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:247)
   org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
   44)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
   96)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:302)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246)
   javax.servlet.http.HttpServlet.service(HttpServlet.java)
  
  
   note The full stack trace of the root cause is available in the Apache
   Tomcat/5.5.1 logs.
  
   Can you help me?
  
   Thanks
   Panagiotis
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



help getting a simple no dependency client working with tomcat

2005-07-18 Thread Dewey, John
I am trying to get a simple zero dependency client to work with tomcat,
at current it works with

http://services.xmethods.net:80/soap/servlet/rpcrouter
http://services.xmethods.net/soap/servlet/rpcrouter 

but not my home grown test web service

http://localhost:8080/axis/services/fibonacci

 

 

I have build a simple client using Apache dependencies that access the
Fibonacci client so I know it works, but I'm utterly confused as to why
my zero dependency client doesn't work.

Well I shouldn't say my client since I took from an example article
http://www-128.ibm.com/developerworks/xml/library/x-soapcl/ listing 1
has the source code
http://www-128.ibm.com/developerworks/xml/library/x-soapcl/listing1.html


The error I get follows (note I renamed the file LowClient.java):

Exception in thread main java.io.IOException: Server returned HTTP
response code: 500 for URL:
http://localhost:8080/axis/services/fibonacci

at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnec
tion.java:800)

at LowClient.main(LowClient.java:71)

 

I don't understand why the client would break when targeting a tomcat
service... I thought the whole point of web services is that they are
all supposed to be a single client. The SOAP message file that LowClient
is sending follows:

?xml version=1.0 encoding=UTF-8?

soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; 
  xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
soapenv:Body
ns1:calculateFibonacci
soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; 

 
xmlns:ns1=urn:fibonacci
in0 href=#id0/
/ns1:calculateFibonacci
multiRef id=id0 
  soapenc:root=0
soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; 
  xsi:type=xsd:int 
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;10/multiRef
/soapenv:Body
/soapenv:Envelope

 

Thanks in advance for helping me understand this Tomcat Client
interaction problem.


NOTE: This message was send to the TomcatDev list which I have realized
now was a mistake as it is for developers of Tomcat not for developing
with Tomcat. For those on both lists I apologize for the dual send.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ServletException: javax/servlet/jsp/tagext/TagLibraryValidator - help!

2005-07-16 Thread John Pedersen
Hi,

I had an app that was working - then I upgraded to Tomcat 5.5.9, and Java 1.5.

Now I get a javax.servlet.ServletException:
javax/servlet/jsp/tagext/TagLibraryValidator when I try to start the
app. I have followed all the google links for this problem and trawled
through the docs - I'm stuck!

I use one page to declare my taglibs, and this is included in all the
other pages:

%@ taglib prefix=spring uri=http://www.springframework.org/tags; %
%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %

If I delete the second line, the app starts fine, although of course
all the c: tags aren't evaluated. So it seems that the problem is only
associated with the standard tags.

Here is what I have at the top of my web.xml (I have tried variations!):

!DOCTYPE web-app PUBLIC
-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
...

Here are the jar files I have in web-app\myApp\lib:

activation.jar
commons-collections.jar
commons-dbcp.jar
commons-fileupload.jar
commons-logging.jar
commons-pool.jar
cos.jar
itext-1.1.4.jar
jstl.jar
junit.jar
log4j-1.2.9.jar
mail.jar
mysql-connector-java-3.1.8-bin.jar
spring.jar
standard.jar
swissEph.jar

and the jar files I have in {tomcat-home}\common\lib:

commons-el.jar
jasper-compiler-jdt.jar
jasper-compiler.jar
jasper-runtime.jar
jsp-api.jar
naming-factory-dbcp.jar
naming-factory.jar
naming-resources.jar
servlet-api.jar

Inside the standard jar, in c.tld:

descriptionJSTL 1.1 core library/description
  display-nameJSTL core/display-name
  tlib-version1.1/tlib-version
  short-namec/short-name
  urihttp://java.sun.com/jsp/jstl/core/uri

...

If anyone can help me solve this one, I'll be very relieved,

Thanks,

John Pedersen

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



help on editing userconfig.sh

2005-07-13 Thread Spotted Elk Lance
Hello.

I'm following the instructions from the following page:

http://www.dougsparling.com/comp/howto/linux_java-1.3.html

At the part where I edit a userconfig.sh file with the vi editor, I'm at a loss 
as far as what to type in the editor besides setting the J2EE_HOME and 
JAVA_HOME environment variables.  Could someone point me in the right direction?

--Lance Bo Spotted Elk



OS X.3.8 Server help...

2005-07-07 Thread Martin Hoffsten
Title: OS X.3.8 Server help...



Im looking for a quick walkthrough to install Tomcat 4.x on my OS 10.3.8 server. My Java is up to date and I need a very detailed list of instructions. By detailed, I mean I have no idea what Im doing in the Terminal...



Martin Hoffsten
612.333.3233 x119
www.creatis.com






Re: help in setting up

2005-06-29 Thread ganesan malairaja

thankx

htmlDIV
DIVFONT color=#cc face=Lucida Handwriting, CursiveEMSTRONGIMG 
height=16 src=http://graphics.hotmail.com/emarrow_right.gif; 
width=16Ganesan_MalairajaIMG height=16 
src=http://graphics.hotmail.com/emarrow_left.gif; 
width=16/STRONG/EM/FONT/DIV/DIV/html





From: Parsons Technical Services [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: help in setting up
Date: Wed, 29 Jun 2005 01:52:39 -0400

It depends:

5.5.x only needs JRE
5.0.x and earlier versions needs full JDK
As for version I recommend Java 1.5 and it is required for the 5.5.x 
version unless you use the compatibility patch for 1.4


Doug

- Original Message - From: ganesan malairaja 
[EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Tuesday, June 28, 2005 11:42 PM
Subject: help in setting up




hi guys

i know that to settup tomcat , there no need for apache

i wanna know what java i should use

is it j2dk or j2ee

because i saw some example that uses both..

i am going to run JSP to retrieve info from database

i need guide on how to setup tomcat .. ie what java version i shoud use.

any links also would be helpfull .. consider a newbie case

thanks guys .. ur help is appreaciated.
htmlDIV
DIVFONT color=#cc face=Lucida Handwriting, 
CursiveEMSTRONGIMG height=16 
src=http://graphics.hotmail.com/emarrow_right.gif; 
width=16Ganesan_MalairajaIMG height=16 
src=http://graphics.hotmail.com/emarrow_left.gif; 
width=16/STRONG/EM/FONT/DIV/DIV/html




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: help in setting up

2005-06-29 Thread Venkat Radha Venkataramanan
Ganesan:

You can download the latest and greatest version of Tomcat, unzip it and run
the batch file to start it up. That's all to it.

-Original Message-
From: ganesan malairaja [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 28, 2005 11:42 PM
To: tomcat-user@jakarta.apache.org
Subject: help in setting up


hi guys

i know that to settup tomcat , there no need for apache

i wanna know what java i should use

is it j2dk or j2ee

because i saw some example that uses both..

i am going to run JSP to retrieve info from database

i need guide on how to setup tomcat .. ie what java version i shoud use.

any links also would be helpfull .. consider a newbie case

thanks guys .. ur help is appreaciated.
htmlDIV
DIVFONT color=#cc face=Lucida Handwriting, CursiveEMSTRONGIMG

height=16 src=http://graphics.hotmail.com/emarrow_right.gif; 
width=16Ganesan_MalairajaIMG height=16 
src=http://graphics.hotmail.com/emarrow_left.gif; 
width=16/STRONG/EM/FONT/DIV/DIV/html



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



help for class not found

2005-06-29 Thread MEHMOOD, QAISER
I have created one web application(reminder) and deployed this on the 

tomcat/webapps with folder name reminder.

 

 

 

 I put all classes under  the reminder/WEB-INF/classes folder , but 

 when I run the jsps and try to access any class, its giving me message 

 No Class Def Found error , plz help me is there any place in tomcat 

 where I can specify the classpath for a context or web application.

 

 

 

 Qaiser Mehmood

 Email : [EMAIL PROTECTED]

 



help in setting up

2005-06-28 Thread ganesan malairaja


hi guys

i know that to settup tomcat , there no need for apache

i wanna know what java i should use

is it j2dk or j2ee

because i saw some example that uses both..

i am going to run JSP to retrieve info from database

i need guide on how to setup tomcat .. ie what java version i shoud use.

any links also would be helpfull .. consider a newbie case

thanks guys .. ur help is appreaciated.
htmlDIV
DIVFONT color=#cc face=Lucida Handwriting, CursiveEMSTRONGIMG 
height=16 src=http://graphics.hotmail.com/emarrow_right.gif; 
width=16Ganesan_MalairajaIMG height=16 
src=http://graphics.hotmail.com/emarrow_left.gif; 
width=16/STRONG/EM/FONT/DIV/DIV/html




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: help in setting up

2005-06-28 Thread Richard Reyes
I use JDK.

On 6/29/05, ganesan malairaja [EMAIL PROTECTED] wrote:
 
 hi guys
 
 i know that to settup tomcat , there no need for apache
 
 i wanna know what java i should use
 
 is it j2dk or j2ee
 
 because i saw some example that uses both..
 
 i am going to run JSP to retrieve info from database
 
 i need guide on how to setup tomcat .. ie what java version i shoud use.
 
 any links also would be helpfull .. consider a newbie case
 
 thanks guys .. ur help is appreaciated.
 htmlDIV
 DIVFONT color=#cc face=Lucida Handwriting, CursiveEMSTRONGIMG
 height=16 src=http://graphics.hotmail.com/emarrow_right.gif;
 width=16Ganesan_MalairajaIMG height=16
 src=http://graphics.hotmail.com/emarrow_left.gif;
 width=16/STRONG/EM/FONT/DIV/DIV/html
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: help in setting up

2005-06-28 Thread Parsons Technical Services

It depends:

5.5.x only needs JRE
5.0.x and earlier versions needs full JDK
As for version I recommend Java 1.5 and it is required for the 5.5.x version 
unless you use the compatibility patch for 1.4


Doug

- Original Message - 
From: ganesan malairaja [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Tuesday, June 28, 2005 11:42 PM
Subject: help in setting up




hi guys

i know that to settup tomcat , there no need for apache

i wanna know what java i should use

is it j2dk or j2ee

because i saw some example that uses both..

i am going to run JSP to retrieve info from database

i need guide on how to setup tomcat .. ie what java version i shoud use.

any links also would be helpfull .. consider a newbie case

thanks guys .. ur help is appreaciated.
htmlDIV
DIVFONT color=#cc face=Lucida Handwriting, 
CursiveEMSTRONGIMG height=16 
src=http://graphics.hotmail.com/emarrow_right.gif; 
width=16Ganesan_MalairajaIMG height=16 
src=http://graphics.hotmail.com/emarrow_left.gif; 
width=16/STRONG/EM/FONT/DIV/DIV/html




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Please help me sir

2005-06-27 Thread Asit Basak

Sir

I have installed Jdk1.5.0 in windows 2000 server.
After that I have installed Apache Tomcat/5.0.29.
I have deployed all of my JSPs in Root directory
and all of my beans in classes.

Now after starting of the Tomcat server.
when I want to see the paged in IE6,
It is giving errors
  javac: target release 1.3 conflicts with default source release 1.5 .
Now sir please tell me what can I I do for this purpose.
Thanking you in anticipation.

Regards
Asit Basak
email - [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Please help me sir

2005-06-27 Thread Jaroslav Záruba
Hello Asit

Could it be that you write for Java 1.5 whilst your Tomcat somehow
expects Java 1.3?
Try this link:
http://blog.taragana.com/index.php/archive/how-to-run-javac-15-or-beyond-compiler-for-jsp-compilation-in-tomcat-55-with-generics-enabled-and-other-15-only-features/1/

hope it helps
have a nice day
  J.Zaruba

On 6/27/05, Asit Basak [EMAIL PROTECTED] wrote:
 Sir
 
 I have installed Jdk1.5.0 in windows 2000 server.
 After that I have installed Apache Tomcat/5.0.29.
 I have deployed all of my JSPs in Root directory
 and all of my beans in classes.
 
 Now after starting of the Tomcat server.
 when I want to see the paged in IE6,
 It is giving errors
javac: target release 1.3 conflicts with default source release 1.5 .
 Now sir please tell me what can I I do for this purpose.
 Thanking you in anticipation.
 
 Regards
 Asit Basak
 email - [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Please help with PermGen OutOfMemory error

2005-06-27 Thread Andy Kriger
After many webapp installs, I get this in my tomcat logs...

Exception in thread
ContainerBackgroundProcessor[StandardEngine[Catalina]]
java.lang.OutOfMemory
Error: PermGen space

MaxPermSize=128m, but the errors still happen. I understand that this
comes from apps not releasing all their resources. How do I track down
what part of my app is leaving these resources behind? I'm hoping for
pointers to tools/articles/blog entries - anything that'll let me
isolate this problem (hopefully to a part of my code that I can
actually fix as opposed to third party code I have no control over).

thx
andy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Please help with PermGen OutOfMemory error

2005-06-27 Thread Phillip Qin
What is the version of your tomcat? 5.5 supposed to have resolved this issue
by flush reflection cache when undeploy your web app.

-Original Message-
From: Andy Kriger [mailto:[EMAIL PROTECTED] 
Sent: June 27, 2005 12:12 PM
To: tomcat-user@jakarta.apache.org
Subject: Please help with PermGen OutOfMemory error


After many webapp installs, I get this in my tomcat logs...

Exception in thread ContainerBackgroundProcessor[StandardEngine[Catalina]]
java.lang.OutOfMemory
Error: PermGen space

MaxPermSize=128m, but the errors still happen. I understand that this comes
from apps not releasing all their resources. How do I track down what part
of my app is leaving these resources behind? I'm hoping for pointers to
tools/articles/blog entries - anything that'll let me isolate this problem
(hopefully to a part of my code that I can actually fix as opposed to third
party code I have no control over).

thx
andy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


!DSPAM:42c02542251611437718752!


Re: Please help with PermGen OutOfMemory error

2005-06-27 Thread James Black
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Phillip Qin wrote:
 What is the version of your tomcat? 5.5 supposed to have resolved this issue
 by flush reflection cache when undeploy your web app.

  I get this with 5.5.9, using jdk 1.5, under Solaris 8, when I copy my
new beehive-based webapp into my webapps directory. After about 5-8 new
versions within a few hours then I get this error and have to restart
tomcat.

- --
Love is mutual self-giving that ends in self-recovery. Fulton Sheen
James Black[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCwDZhikQgpVn8xrARAmGqAJ90O/O0HFgB6cCL/PvpcqOldhoFPQCeJ60A
kPBnA55zhnUmNtiNp6z1iqU=
=s7n+
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Please help with PermGen OutOfMemory error

2005-06-27 Thread Phillip Qin
I did see this issue happened with my tomcat 4.1/5.0. After I upgraded to
5.5, I have encountered any outofmemory even after 100 hundreds deployments.

Does your web app use struts? You can always clean up resource by adding
Introspector.flushCaches(); in your context listener's contextDestroyed
method. Otherwise, you will have to go through your web app carefully to
find out if there is any memory leak.

-Original Message-
From: James Black [mailto:[EMAIL PROTECTED] 
Sent: June 27, 2005 1:25 PM
To: Tomcat Users List
Subject: Re: Please help with PermGen OutOfMemory error


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Phillip Qin wrote:
 What is the version of your tomcat? 5.5 supposed to have resolved this 
 issue by flush reflection cache when undeploy your web app.

  I get this with 5.5.9, using jdk 1.5, under Solaris 8, when I copy my new
beehive-based webapp into my webapps directory. After about 5-8 new versions
within a few hours then I get this error and have to restart tomcat.

- --
Love is mutual self-giving that ends in self-recovery. Fulton Sheen
James Black[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCwDZhikQgpVn8xrARAmGqAJ90O/O0HFgB6cCL/PvpcqOldhoFPQCeJ60A
kPBnA55zhnUmNtiNp6z1iqU=
=s7n+
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


!DSPAM:42c03666260791431712512!


Re: Please help with PermGen OutOfMemory error

2005-06-27 Thread James Black
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Phillip Qin wrote:
 I did see this issue happened with my tomcat 4.1/5.0. After I upgraded to
 5.5, I have encountered any outofmemory even after 100 hundreds deployments.
 
 Does your web app use struts? You can always clean up resource by adding
 Introspector.flushCaches(); in your context listener's contextDestroyed
 method. Otherwise, you will have to go through your web app carefully to
 find out if there is any memory leak.

  Struts is used in my beehive-based project
(http://incubator.apache.org/beehive), but I will need to check if there
is some memory leak otherwise.

  Thanx.

- --
Love is mutual self-giving that ends in self-recovery. Fulton Sheen
James Black[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCwEduikQgpVn8xrARAooaAJsEjG6T/a52rsNyIQjIPbbOP7nm7ACfepMP
ukLUqtHP8YY5mkK41AEdcFk=
=lOrA
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   3   4   5   6   7   8   9   10   >