Re: Tomcat configuration error

2006-06-17 Thread Fredrik Andersson
ok, thanks a bunch :)

Sadly I'm away over the weekend and can´t test the configuration just
yet. But as soon as I get back again I will try it and let you know how
it went :)

Den 6/16/2006, skrev Filip Hanik - Dev Lists [EMAIL PROTECTED]:

no worries, lets start from the beginning, after that I will send you
off to take a tomcat and/or servlet tutorial

Host appBase=/var/www/webapps...

The appbase is where tomcat will autodeploy applications from, an
application, or webapp is defined by two means
1. A directory
2. A war file

So in your case, the directory SMC is your webapp, hence the path to the
application would be:
/var/www/webapps/SMC (with subdirectories and files like below)
  - WEB-INF
- web.xml
  - index.jsp

You have four choices to deploy this webapp

1. put the SCM directory inside Host.appBase, ie, /var/www/webapps/SCM
   The app will get deployed as /SCM

2. put the SCM directory inside Host.appBase, ie, /var/www/webapps/SCM
   and put SCM.xml inside TC_HOME/conf/appserver/RM2/
   The app will get deployed twice, /SCM and /

3. put the SCM directory inside Host.appBase, ie, /var/www/webapps/SCM
   Create a file named context.xml ie
/var/www/webapps/SCM/META-INF/context.xml
   The app will get deployed once as /, tomcat will automatically
create SCM.xml inside TC_HOME/conf/appserver/RM2/

4. Put the SCM directory anywhere on the file system, for example /tmp/SCM
   and put SCM.xml inside TC_HOME/conf/appserver/RM2/
   and inside SCM.xml do Context docBase=/tmp/SCM path=/
   The app will get deployed once as /

Filip


Fredrik Andersson wrote:
 ok, the application I want to launch is SMC so where should I place the
 SMC.xml file?

 I´m really confused, not because I dont know what I want to do, but there
 are tons of different sources telling me different things and none
 works.. :(

 I understand that I must be anoying and it´s really nice of you to help
 me. =)

 Den 6/16/2006, skrev Filip Hanik - Dev Lists [EMAIL PROTECTED]:


 R2M.xml? where did that come from? it should be SCM.xml, although the
 name isn't important.

 Your original setup was confusing, cause you have RM2/SCM (inside of
 webapps)
 so which one is the webapp, RM2 directory, or the SCM directory?

 They key to your problem though, is probably the Context path=...
 instead of Context path=/...

 Filip


 Fredrik Andersson wrote:

 ok, and my R2M.xml configuration file should reside inside of
 $CATALINA_HOME/appserver/R2M ? or did I missunderstand you on that part?
 Will try it out, thanks a million. Really nice of you taking youre time
 explaining this to me :)

 Den 6/16/2006, skrev Filip Hanik - Dev Lists [EMAIL PROTECTED]:



 the more logical setup would be (assuming the SMC is a webapp)

 Engine name=appserver
debug=0
defaultHost=R2M

Host name=R2M
appBase=/var/www/webapps/RM2
autoDeploy=false
deployOnStartup=false
unpackWARs=false
deployXML=true
debug=0/

/Engine

 Context path=
docBase=SMC
reloadable=true
debug=0/

 I changed three things
 1. Host.appBase
 2. Context.path
 3. Context.docBase

 Filip



 Fredrik Andersson wrote:


 Hi, thanks for answering=)
 I´m still a little confused so I will try to describe what kind of setup
 I want and we will se if it becomes clearer.

 I want my internet files to reside inside of
 /var/www/webapps/R2M/SMC

 Now I wan´t apache to forward all pages that are jsp (*.jsp) and all
 servlets thats are mapped through ip/servlets/* to tomcat.

 As it is right now I have HelloWorld.html and HelloWorld.jsp inside the
 SMC folder and apache finds them both and the .jsp file gets forwarded
 to tomcat (it says that tomcat can´t find the file). Now where is tomcat
 looking for the files?

 $CATALINA_HOME/conf/server.xml (engine part)
  Engine name=appserver
 debug=0
 defaultHost=R2M

 Host name=R2M
 appBase=/var/www/webapps/RM2
 autoDeploy=false
 deployOnStartup=false
 unpackWARs=false
 deployXML=true
 debug=0/

 /Engine

 then I read that it was good to seperate the context part into a
 different file for every host and I understood that they were supposed
 to reside inside of $CATALINA_HOME/conf/engine
 name/application_name.xml

 So I have the file $CATALINA_HOME/appserve/R2M/SMC.xml and it holds
 Context path=/
 docBase=SMC
 reloadable=true
 debug=0/

 Did I set this up wrong?


 Den 6/16/2006, skrev Filip Hanik - Dev Lists [EMAIL PROTECTED]:




 Fredrik Andersson wrote:



 Hi all

 

Re: Re: help getting jsvc up and running on sles9 on ibm pseries (power5)

2006-06-17 Thread Warren Pace
I know this doesn't address the compilation problems but why not run tomcat as 
a daemon in a chrooted jail?   
see:  http://www.oreilly.com/catalog/tomcat/chapter/ch06.pdf

 
 From: Christian Andersson [EMAIL PROTECTED]
 Date: 2006/06/15 Thu AM 06:36:47 EDT
 To: Tomcat Users List users@tomcat.apache.org
 Subject: Re: help getting jsvc up and running on sles9 on ibm pseries (power5)
 
 anyone?
 
 Christian Andersson wrote:
  Hi there, I have a small problem that I'. hoping that you can help me solve.
  
  I want to be able to run tomcat on a server that we have available at a
  hosting firm.
  
  I can get tomcat up and running on it witohut problem, as long as I
  don't try to use jsvc..  and I need jsvc sicne I don't want to run tomat
  as root, or manually start tomcat whenever there is a restart of the
  server, etc..
  
  I've tried compiling the jsvc that comes with tomcat, but no luck, so I
  downloaded deamons 1.0.1 and tried to get that compiling, and still no
  luck, after searching/following different hints that I found on the net
  (I'll ge over those later) I do get jsvc compiled, but I still cannot
  run it, because it looks like jsvc is compiled as a 32 bit binary and
  the ibm-java that I have is a 64 bit binary.
  
  anyway here is a list of what I've done (not much)
  
  after downloading and unpacking jsvc I went into
  daemon-1.0.1/src/native/unix and did a ./configure
  --with-java=/opt/ibm/java2-ppc64-50
  
  and got the following result..
  
  --
  *** Current host ***
  checking build system type... ./support/config.guess: unable to guess
  system type
  
  This script, last modified 2001-04-20, has failed to recognize
  the operating system you are using. It is advised that you
  download the most up to date version of the config scripts from
  
  ftp://ftp.gnu.org/pub/gnu/config/
  
  If the version you run (./support/config.guess) is already up to date,
  please
  send the following data and any information you think might be
  pertinent to [EMAIL PROTECTED] in order to provide the needed
  information to handle your system.
  
  config.guess timestamp = 2001-04-20
  
  uname -m = ppc64
  uname -r = 2.6.5-7.252-pseries64
  uname -s = Linux
  uname -v = #1 SMP Tue Feb 14 11:11:04 UTC 2006
  
  /usr/bin/uname -p =
  /bin/uname -X =
  
  hostinfo   =
  /bin/universe  =
  /usr/bin/arch -k   =
  /bin/arch  = ppc64
  /usr/bin/oslevel   =
  /usr/convex/getsysinfo =
  
  UNAME_MACHINE = ppc64
  UNAME_RELEASE = 2.6.5-7.252-pseries64
  UNAME_SYSTEM  = Linux
  UNAME_VERSION = #1 SMP Tue Feb 14 11:11:04 UTC 2006
  configure: error: cannot guess build type; you must specify one
  --
  
  after downloading the newest config.guess from
  http://cvs.savannah.gnu.org/viewcvs/*checkout*/config/config/config.guess
  (the above specified link leads to this file) and replacing the existing
  one in  daemon-1.0.1/src/native/unix/support and once more execute
  configure I get the following...
  
  --
  *** Current host ***
  checking build system type... powerpc64-unknown-linux-gnu
  checking host system type... powerpc64-unknown-linux-gnu
  checking cached host system type... ok
  *** C-Language compilation tools ***
  checking for gcc... gcc
  checking for C compiler default output file name... a.out
  checking whether the C compiler works... yes
  checking whether we are cross compiling... no
  checking for suffix of executables...
  checking for suffix of object files... o
  checking whether we are using the GNU C compiler... yes
  checking whether gcc accepts -g... yes
  checking for gcc option to accept ANSI C... none needed
  checking for ranlib... ranlib
  *** Host support ***
  checking C flags dependant on host system type... failed
  configure: error: Unsupported CPU architecture powerpc64
  --
  
  following information on the net it was suggested that I change the
  configure script so that it accepts powerpc* instead of powerpc
  that is from
  --
  ...
case $host_cpu in
powerpc)
  CFLAGS=$CFLAGS -DCPU=\\\$host_cpu\\\ ;;
  ...
  --
  to
  --
  ...
case $host_cpu in
powerpc*)
  CFLAGS=$CFLAGS -DCPU=\\\$host_cpu\\\ ;;
  ...
  --
  
  the result:
  
  --
  ...
  *** All done ***
  Now you can issue make
  --
  
  make also succedes, but when running 

jdk 1.3 and tomcat 4.1

2006-06-17 Thread t malu
Hi,
I'm a new user of java and tomcat. I have installed
jdk 1.3.  I downloaded the apache tomcat 4.1. But
everytime I start the server, the following message
comes up and then closes.
The error message starts out as ...
[ERROR] Digester -- Begin event threw exception
java.util.missingresourceexception: can't find the
bundle for base name or
org.apache.coyote.tomcat4.LocalStrings.locale en_US

Please help,
Malavika

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: jdk 1.3 and tomcat 4.1

2006-06-17 Thread Mark Thomas
t malu wrote:
 The error message starts out as ...

Which exactly which Tomcat version?
What OS?
Which file did you download?
How did you install Tomcat?
Please provide the full stack trace.

And finally, if you have to use a 1.3 JDK Tomcat 4 should be fine but
I would use a later JDK if possible.

Mark

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



Re: jdk 1.3 and tomcat 4.1

2006-06-17 Thread Steve Ochani
 Hi,
 I'm a new user of java and tomcat. I have installed
 jdk 1.3.  I downloaded the apache tomcat 4.1. But

If you are a new user of java and tomcat then you should use the current 
version of jdk and 
tomcat. 
jdk 1.3 and tomcat 4.1 are very old.



 everytime I start the server, the following message
 comes up and then closes.
 The error message starts out as ...
 [ERROR] Digester -- Begin event threw exception
 java.util.missingresourceexception: can't find the
 bundle for base name or
 org.apache.coyote.tomcat4.LocalStrings.locale en_US
 
 Please help,
 Malavika
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
 e-mail: [EMAIL PROTECTED] For additional commands,
 e-mail: [EMAIL PROTECTED]
 



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



Re: tomcat 5.0.28 with JDK 1.5?

2006-06-17 Thread Rumpa Giri
Yes, it works. We have it currently on production.
   
  Thanks,
  Rumpa Giri

Sunitha Kumar (sunithak) [EMAIL PROTECTED] wrote:
  Hi,

Wanted to check if tomcat 5.0.28 would work with JDK 1.5?
thnx
-sunitha



-
Yahoo! Groups gets better. Check out the new email design. Plus there’s much 
more to come.  

Re: tomcat 5.0.28 with JDK 1.5?

2006-06-17 Thread Denis dos Santos Silva |̲̲̅̅Θ̲̅̅ ̲|

Sunitha Kumar (sunithak) wrote:

Hi,
 
Wanted to check if tomcat 5.0.28 would work with JDK 1.5?

thnx
-sunitha



Fine ;)


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



realm based security and logging

2006-06-17 Thread squatty

I'm hoping this is a simple one- I want to use the realm based security
mechanism in tomcat, but my ops team is unhappy with the silent failures for
login and attempts to access protected resources.  I set the debug=99
attribute when defining my DataSourceRealm.  Unfortunately, the only log
messages I see are for a successful login or an usuccessful login with an
existing user:

DataSourceRealm[/support]: Username admin NOT successfully authenticated
DataSourceRealm[/support]: Username admin successfully authenticated

Otherwise I don't see any log output, for example a user that does't exist
attempting to login, or a logged in user attempting to access a resource for
which he doesn't have permission.  Does anyone know how to turn on this
logging? 

tia



--
View this message in context: 
http://www.nabble.com/realm-based-security-and-logging-t1804813.html#a4918752
Sent from the Tomcat - User forum at Nabble.com.


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



Re: jdk 1.3 and tomcat 4.1

2006-06-17 Thread Bill Barker

t malu [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hi,
 I'm a new user of java and tomcat. I have installed
 jdk 1.3.  I downloaded the apache tomcat 4.1. But
 everytime I start the server, the following message
 comes up and then closes.
 The error message starts out as ...
 [ERROR] Digester -- Begin event threw exception
 java.util.missingresourceexception: can't find the
 bundle for base name or
 org.apache.coyote.tomcat4.LocalStrings.locale en_US


If it's 1.3.0, the problem is the broken jar index handling in that JVM. 
Just remove the index file in this case.  If it's 1.3.1, then I've got no 
clue.

 Please help,
 Malavika

 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com

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

 




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



Re: realm based security and logging

2006-06-17 Thread squatty

OK- so I figured out i can crank up the logging level to DEBUG and see the
kind of logging I want, although it's alot more than I wanted to see.  OPS
would prefer user admin attempting to access protected resource
/protected/protected.jsp or something along those lines, as a WARN level
message.  

So I'd still appreciate any advice from anyone who's dealt with this problem
before? 
--
View this message in context: 
http://www.nabble.com/realm-based-security-and-logging-t1804813.html#a4918899
Sent from the Tomcat - User forum at Nabble.com.


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



Fwd: Tomcat 5.5 / IIS 6 web server log question

2006-06-17 Thread 0 8

Does anyone know where I can go to get an answer to this question?

Thanks,
Matt

-- Forwarded message --
From: 0 8 [EMAIL PROTECTED]
Date: Jun 16, 2006 12:43 PM
Subject: Tomcat 5.5 / IIS 6 web server log question
To: Tomcat Users users@tomcat.apache.org


Hello,

I have Tomcat 5.5 and IIS 6 integrated using isapi_redirect.dll.  So
far, they are working together just fine.

I noticed in my IIS web server logs that the GET requests are not
being recorded as I would expect.  I'm currently seeing...

GET /jakarta/isapi_redirect.dll

...when I expected to see...

GET /hello.jsp

...since hello.jsp is the file I actually requsted.

Is there a setting I've missed somewhere to keep the IIS logs as I
expected or do I have to now maintain both IIS and Tomcat access logs?

Thanks,
Matt

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



Re: tomcat5.5.17 cluster(using jdk1.5) error - OutOfMemoryError in starting up on AS4

2006-06-17 Thread Peter Rossbach

Hi,

Which JVM memory parameter you use?
At pooled mode use more receiver worker set tcpThreadCount=6!
You really need deployer? Deployer generate at every startup a large  
cluster message.


Regards
Peter


Am 18.06.2006 um 06:22 schrieb Dilan Kelanibandara:




Hello ,



I am getting OutOfMemoryError continuously when starting up two  
cluster
nodes of tomcat5.5.17 (jdk1.5 on Advanced server 4). Any way it was  
working
fine for 3 weeks time. This error occurs previously only one time  
and when

restarted the tomcat, it worked.





Following is a part of catalina.out  relevent to that error for  
node 1.


 



INFO: Start ClusterSender at cluster  
Catalina:type=Cluster,host=localhost


with name Catalina:type=ClusterSender,host=localhost

Jun 17, 2006 8:44:15 PM  
org.apache.catalina.cluster.mcast.McastService start


INFO: Sleeping for 2000 milliseconds to establish cluster membership
Exception in thread Cluster-MembershipReceiver  
java.lang.OutOfMemoryError:



Java heap space

Jun 17, 2006 8:44:17 PM org.apache.catalina.cluster.mcast.McastService

registerMBean

INFO: membership mbean registered

(Catalina:type=ClusterMembership,host=localhost)

Jun 17, 2006 8:44:17 PM  
org.apache.catalina.cluster.deploy.FarmWarDeployer


start

INFO: Cluster FarmWarDeployer started.

Jun 17, 2006 8:44:19 PM  
org.apache.catalina.cluster.session.DeltaManager


start

INFO: Register manager /StockTradingServer to cluster element Host  
with name

localhost Jun 17, 2006 8:44:19 PM
org.apache.catalina.cluster.session.DeltaManager

start

INFO: Starting clustering manager at /StockTradingServer Jun 17, 2006
8:44:19 PM org.apache.catalina.cluster.session.DeltaManager

getAllClusterSessions

INFO: Manager [/StockTradingServer]: skipping state transfer. No  
members

active in cluster group.



== 
==

=

node2 startup log is as follows

== 
==

=

INFO: Cluster is about to start

Jun 17, 2006 8:53:00 PM

org.apache.catalina.cluster.tcp.ReplicationTransmitter start

INFO: Start ClusterSender at cluster  
Catalina:type=Cluster,host=localhost


with name Catalina:type=ClusterSender,host=localhost

Jun 17, 2006 8:53:00 PM  
org.apache.catalina.cluster.mcast.McastService start


INFO: Sleeping for 2000 milliseconds to establish cluster membership
Exception in thread Cluster-MembershipReceiver  
java.lang.OutOfMemoryError:



Java heap space

Jun 17, 2006 8:53:02 PM org.apache.catalina.cluster.mcast.McastService

registerMBean

INFO: membership mbean registered

(Catalina:type=ClusterMembership,host=localhost)

Jun 17, 2006 8:53:02 PM  
org.apache.catalina.cluster.deploy.FarmWarDeployer


start

INFO: Cluster FarmWarDeployer started.

Jun 17, 2006 8:53:04 PM  
org.apache.catalina.cluster.session.DeltaManager


start

INFO: Register manager /StockTradingServer to cluster element Host  
with name

localhost Jun 17, 2006 8:53:04 PM
org.apache.catalina.cluster.session.DeltaManager

start



== 
==

=

Any way my clustor was working fine for 3 weeks time and started to  
give

this error in startup of both the nodes.



I have an IBMHTTPServer with jk connector for load balancing and  
that load

is comming my tomcat cluster.



following is the server.xml file for both the servers.



== 
==

=



!-- Example Server Configuration File --

!-- Note that component elements are nested corresponding to their

parent-child relationships with each other --



!-- A Server is a singleton element that represents the entire JVM,

which may contain one or more Service instances.  The Server

listens for a shutdown command on the indicated port.



Note:  A Server is not itself a Container, so you may not

define subcomponents such as Valves or Loggers at this level.

 --



Server port=8005 shutdown=SHUTDOWN



 !-- Comment these entries out to disable JMX MBeans support used  
for the


  administration web application --  Listener
className=org.apache.catalina.core.AprLifecycleListener /   
Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener /  
Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener 
 /

Listener
className=org.apache.catalina.storeconfig.StoreConfigLifecycleListene 
r/




 !-- 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