tomcat directing

2010-02-12 Thread Blueberry

Hello

I have Tomcat with Jira. Is there a way to directing so that Tomcat the link
srv01\instance in srv01 redirect?
I have a Windows XP Server (I know, I know win XP isn't a server edition ;)
)

regards
Blueberry
-- 
View this message in context: 
http://old.nabble.com/tomcat-directing-tp27562019p27562019.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: tomcat directing

2010-02-12 Thread Blueberry



n828cl wrote:
 
 From: Blueberry [mailto:sandro.lamp...@zeitag.ch]
 Subject: tomcat directing
 
 
 I have Tomcat with Jira. Is there a way to directing so that Tomcat the
 link srv01\instance in srv01 redirect?
 
 Have someone unfamiliar with your project read the above; can they make
 any sense of your question?  I certainly can't.
 
  - Chuck
 
 

Okey, I'm sorry for my bad English...

I try again:
I have a server called srv01 on this server is tomcat running and i should
make an filter which catch the incoming request and check the url, if the
url contains more than http://srv01/; e.x. http://srv01/instance; then he
should redirect to http://srv01;.
my question is: where is the file (or which filename does this file have),
where the filter are wrotten in?

I hope now it's more cleare what I mean...


-- 
View this message in context: 
http://old.nabble.com/tomcat-directing-tp27562019p27563977.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: tomcat directing

2010-02-12 Thread Blueberry



n828cl wrote:
 
 From: Blueberry [mailto:sandro.lamp...@zeitag.ch]
 Subject: RE: tomcat directing
 
 Okey, I'm sorry for my bad English...
 
 The English was fine, it was the content of the question that was lacking.
 
 if the url contains more than http://srv01/; e.x.
 http://srv01/instance;
 then he should redirect to http://srv01;.
 my question is: where is the file (or which filename does this file
 have), where the filter are wrotten in?
 
 Much better.  You're still missing some details, such as the Tomcat
 version you're using, so we'll assume you're on a current one.
 
 You'll want your webapp deployed as ROOT (case sensitive, even on
 Windows), since ROOT is the default webapp.  Read the servlet spec for how
 to specify filters in the WEB-INF/web.xml file.  There's already a general
 purpose, highly configurable rewrite filter available to drop into any
 webapp, so you don't need to write your own.  Look here for details:
 http://tuckey.org/urlrewrite/
 
  - Chuck
 
 
 

Version of my tomcat is 5.5
-- 
View this message in context: 
http://old.nabble.com/tomcat-directing-tp27562019p27564217.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: SecurityException when starting TomCat

2008-02-08 Thread Bob the BlueBerry
I'm not familiar with servlet mappings. I just enabled the invoker servlet 
because the book I'm reading told me to, and it said to use the '/servlet/*' 
mapping. Which one should I use?


--
From: Caldarale, Charles R [EMAIL PROTECTED]
Sent: Tuesday, January 15, 2008 1:24 PM
To: Tomcat Users List users@tomcat.apache.org
Subject: RE: SecurityException when starting TomCat


From: Bob the BlueBerry [mailto:[EMAIL PROTECTED]
Subject: SecurityException when starting TomCat

Can you tell me how to fix this?



java.lang.SecurityException: Servlet of class
org.apache.catalina.servlets.InvokerServlet
is privileged and cannot be loaded by
this web application


Don't use the InvokerServlet - it's certifiably evil:
http://wiki.apache.org/tomcat/FAQ/Miscellaneous?highlight=%28invoker%29

Use the proper servlet mappings, and the see if you've got a problem.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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




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



Re: confusion of tomcat downloading

2005-11-30 Thread blueberry lake
I downloaded tomcat for unix, and want it to run inside apache.
It seems I should go with the core version.


On 11/29/05, Scott Purcell [EMAIL PROTECTED] wrote:

 What OS are you wanting to install Tomcat on?
 And did you want to just run Tomcat Standalone, or put it inside Apache?


 - Original Message -
 From: blueberry lake [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Tuesday, November 29, 2005 7:47 PM
 Subject: confusion of tomcat downloading


 On page http://tomcat.apache.org/download-55.cgi, there are several
 choices
 for tomcat 5.x, like core, deployer, embedded, admin web application,
 etc.,
 can anyone explain berifly what their difference are?
 Thanks.


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




Re: HTTP 404 error when mod_jk 1.2.15 connects apache 2.0.55 and tomcat 5.0.28 on unix

2005-11-30 Thread blueberry lake
Thanks for helping.
http://localhost:7888/manager/html gives me the same HTTP 404 error.


On 11/30/05, Martin Gainty [EMAIL PROTECTED] wrote:

 Good Morning Blueberry
 if you go to http://localhost:8081/manager/html
 what happens when you Reload jsp-examples ?
 Martin-
 - Original Message -
 From: blueberry lake [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Wednesday, November 30, 2005 10:39 AM
 Subject: HTTP 404 error when mod_jk 1.2.15 connects apache 2.0.55 and
 tomcat
 5.0.28 on unix


 Hi all,

 I installed apache 2.0.55, tomcat 5.0.28, and mod_jk 1.2.15 on a
 solaris 5.9unix machine.
 Before I connected apache and tomcat, both of them work fine if I start
 them
 up as seperate servers.
 Mod_jk is complied from source code and mod_jk.so is copied to
 apache/modules/


 The connected system gives me the tomcat welcome page for URL
 http://localhost:7888/
 ( I changed apache to listen to port 7888. ), which seems fine. The
 problem
 is that when
 I access the URLs like  http://localhost:7888/jsp-examples/, I got the
 following error:
 =
 HTTP 404

 type Status report

 message /jsp-examples/

 description The requested resource (/jsp-examples/) is not available.

 Apache/Tomcat 5.0.28
 ==


 For tomcat, I comment out the 8080 port (http) so that to make sure it
 stops
 the http service and only handles the requests
 on port 8009 from apache. That's the only modification I did in tomcat.

 For apache, I add workers.properties file and edit httpd.conf, both  in
 conf/ subdirectory.
 The workers.properties is like:
 ==
 workers.tomcat_home=/usr/local/jakarta-tomcat-5.0.28
 workers.java_home=/usr/j2sdk1.4.2_03
 ps=/
 worker.list=worker1

 worker.worker1.port=8009
 worker.worker1.host=localhost
 worker.worker1.type=ajp13
 worker.worker1.lbfactor=50
 ==



 The httpd.conf has the following modification:
 ===
 #
 Listen 7888

 #
 LoadModulejk_module  modules/mod_jk.so

 #
 #config of mod_jk
 #
 JkWorkersFile /usr/local/apache2.0.55/conf/workers.properties
 JkLogFile /usr/local/jakarta-tomcat-5.0.28/logs/mod_jk.log
 JkLogLevelinfo
 JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
 JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
 JkRequestLogFormat %w %V %T
 #
 JkMount  /*  worker1
 JkMount  /*/*  worker1
 JkMount  /*/*/*  worker1
 JkMount  /*/*/*/*  worker1
 #
 # End of mod_jk


 Also the log files seem don't give me much useful info, for example, the
 mod_jk.log file has the following line:
 [Tue Nov 29 15:33:54 2005] worker1 [localhost] 0.089465

 ANy suggestions are overwelcome!

 -b

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




Re: Re: HTTP 404 error when mod_jk 1.2.15 connects apache 2.0.55 and tomcat 5.0.28 on unix

2005-11-30 Thread blueberry lake
Finally, I found the problem is that port 8009 is already used by some other
application.   I used another port, then everything works fine.

Thank you both, martin and wapace!

btw, do you know how to check if a port number has been used in UNIX?

On 11/30/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 And add a JkAutoAlias line to httpd.conf if you're not going to mount
 individual directories.
 
  From: Martin Gainty [EMAIL PROTECTED]
  Date: 2005/11/30 Wed PM 02:53:22 EST
  To: Tomcat Users List users@tomcat.apache.org
  Subject: Re: HTTP 404 error when mod_jk 1.2.15 connects apache 2.0.55and 
  tomcat
 5.0.28 on unix
 
  Good Afternoon Blueberry-
  I have some excerpts from
  http://tomcat.apache.org/connectors-doc/howto/apache.html
 
  I would uninstall mod_jk, clean off the TOMCAT_HOME/conf/jk folder then
  reinstall mod_jk 1.2.15
  following the doc:
If you've previously configured Apache to use mod_jserv, remove any
  ApJServMount directives from your httpd.conf.
 
If you're including tomcat-apache.conf or tomcat.conf, you'll want to
  remove them as well - they are specific to mod_jserv.
 
Remember The mod_jserv configuration directives are not compatible
 with
  mod_jk !
 
  assuming your TOMCAT is properly installed and your
  $TOMCAT_HOME/conf/server.xml has this entry
  Engine ...
  Listener className=org.apache.jk.config.ApacheConfig
  modJk=/path/to/mod_jk.so /
/Engine
  where path specified by modJk is configured correctly (usually
  /usr/lib/apache)
 
  be sure to turn on automatic config option in Apache configuration file
  called httpd.conf
  e.g.
  #To be added at the end of your httpd.conf
  Include /var/tomcat3/conf/jk/mod_jk.conf-auto
 
  Then restart Tomcat and mod_jk.conf should be automatically generated
 
  be sure to read the docs for proper installation procedure
  HTH
  Martin-
  - Original Message -
  From: blueberry lake [EMAIL PROTECTED]
  To: Tomcat Users List users@tomcat.apache.org; Martin Gainty
  [EMAIL PROTECTED]
  Sent: Wednesday, November 30, 2005 1:19 PM
  Subject: Re: HTTP 404 error when mod_jk 1.2.15 connects apache 2.0.55and
  tomcat 5.0.28 on unix
 
 
  Thanks for helping.
  http://localhost:7888/manager/html gives me the same HTTP 404 error.
 
 
  On 11/30/05, Martin Gainty [EMAIL PROTECTED] wrote:
  
   Good Morning Blueberry
   if you go to http://localhost:8081/manager/html
   what happens when you Reload jsp-examples ?
   Martin-
   - Original Message -
   From: blueberry lake [EMAIL PROTECTED]
   To: users@tomcat.apache.org
   Sent: Wednesday, November 30, 2005 10:39 AM
   Subject: HTTP 404 error when mod_jk 1.2.15 connects apache 2.0.55 and
   tomcat
   5.0.28 on unix
  
  
   Hi all,
  
   I installed apache 2.0.55, tomcat 5.0.28, and mod_jk 1.2.15 on a
   solaris 5.9unix machine.
   Before I connected apache and tomcat, both of them work fine if I
 start
   them
   up as seperate servers.
   Mod_jk is complied from source code and mod_jk.so is copied to
   apache/modules/
  
  
   The connected system gives me the tomcat welcome page for URL
   http://localhost:7888/
   ( I changed apache to listen to port 7888. ), which seems fine. The
   problem
   is that when
   I access the URLs like  http://localhost:7888/jsp-examples/, I got the
   following error:
   =
   HTTP 404
  
   type Status report
  
   message /jsp-examples/
  
   description The requested resource (/jsp-examples/) is not available.
  
   Apache/Tomcat 5.0.28
   ==
  
  
   For tomcat, I comment out the 8080 port (http) so that to make sure it
   stops
   the http service and only handles the requests
   on port 8009 from apache. That's the only modification I did in
 tomcat.
  
   For apache, I add workers.properties file and edit httpd.conf,
 both  in
   conf/ subdirectory.
   The workers.properties is like:
   ==
   workers.tomcat_home=/usr/local/jakarta-tomcat-5.0.28
   workers.java_home=/usr/j2sdk1.4.2_03
   ps=/
   worker.list=worker1
  
   worker.worker1.port=8009
   worker.worker1.host=localhost
   worker.worker1.type=ajp13
   worker.worker1.lbfactor=50
   ==
  
  
  
   The httpd.conf has the following modification:
   ===
   #
   Listen 7888
  
   #
   LoadModulejk_module  modules/mod_jk.so
  
   #
   #config of mod_jk
   #
   JkWorkersFile /usr/local/apache2.0.55/conf/workers.properties
   JkLogFile /usr/local/jakarta-tomcat-5.0.28/logs/mod_jk.log
   JkLogLevelinfo
   JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
   JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
   JkRequestLogFormat %w %V %T
   #
   JkMount  /*  worker1
   JkMount  /*/*  worker1
   JkMount  /*/*/*  worker1
   JkMount  /*/*/*/*  worker1
   #
   # End of mod_jk
  
  
   Also the log files seem don't give me much useful info, for example,
 the
   mod_jk.log file has the following line

HTTP 404 error when mod_jk 1.2.15 connects apache 2.0.55 and tomcat 5.0.28 on unix

2005-11-29 Thread blueberry lake
Hi all,

I installed apache 2.0.55, tomcat 5.0.28, and mod_jk 1.2.15 on a
solaris 5.9unix machine.
Before I connected apache and tomcat, both of them work fine if I start them
up as seperate servers.
Mod_jk is complied from source code and mod_jk.so is copied to
apache/modules/


The connected system gives me the tomcat welcome page for URL
http://localhost:7888/
( I changed apache to listen to port 7888. ), which seems fine. The problem
is that when
I access the URLs like  http://localhost:7888/jsp-examples/, I got the
following error:
=
HTTP 404

type Status report

message /jsp-examples/

description The requested resource (/jsp-examples/) is not available.

Apache/Tomcat 5.0.28
==


For tomcat, I comment out the 8080 port (http) so that to make sure it stops
the http service and only handles the requests
on port 8009 from apache. That's the only modification I did in tomcat.

For apache, I add workers.properties file and edit httpd.conf, both  in
conf/ subdirectory.
The workers.properties is like:
==
workers.tomcat_home=/usr/local/jakarta-tomcat-5.0.28
workers.java_home=/usr/j2sdk1.4.2_03
ps=/
worker.list=worker1

worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.type=ajp13
worker.worker1.lbfactor=50
==



The httpd.conf has the following modification:
===
#
Listen 7888

#
LoadModulejk_module  modules/mod_jk.so

#
#config of mod_jk
#
JkWorkersFile /usr/local/apache2.0.55/conf/workers.properties
JkLogFile /usr/local/jakarta-tomcat-5.0.28/logs/mod_jk.log
JkLogLevelinfo
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
#
JkMount  /*  worker1
JkMount  /*/*  worker1
JkMount  /*/*/*  worker1
JkMount  /*/*/*/*  worker1
#
# End of mod_jk


Also the log files seem don't give me much useful info, for example, the
mod_jk.log file has the following line:
[Tue Nov 29 15:33:54 2005] worker1 [localhost] 0.089465

ANy suggestions are overwelcome!

-b


HTTP 404 error when mod_jk 1.2.15 connects apache 2.0.55 and tomcat 5.0.28 on unix

2005-11-29 Thread blueberry lake
(sorry if I  send this message twice,  I didn't get the first one)

Hi all,

I installed apache 2.0.55, tomcat 5.0.28, and mod_jk 1.2.15 on a
solaris 5.9unix machine.
Before I connected apache and tomcat, both of them work fine if I start them
up as seperate servers.
Mod_jk is complied from source code and mod_jk.so is copied to
apache/modules/


The connected system gives me the tomcat welcome page for URL
http://localhost:7888/
( I changed apache to listen to port 7888. ), which seems fine. The problem
is that when
I access the URLs like  http://localhost:7888/jsp-examples/, I got the
following error:
=
HTTP 404

type Status report

message /jsp-examples/

description The requested resource (/jsp-examples/) is not available.

Apache/Tomcat 5.0.28
==


For tomcat, I comment out the 8080 port (http) so that to make sure it stops
the http service and only handles the requests
on port 8009 from apache. That's the only modification I did in tomcat.

For apache, I add workers.properties file and edit httpd.conf, both  in
conf/ subdirectory.
The workers.properties is like:
==
workers.tomcat_home=/usr/local/jakarta-tomcat-5.0.28
workers.java_home=/usr/j2sdk1.4.2_03
ps=/
worker.list=worker1

worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.type=ajp13
worker.worker1.lbfactor=50
==



The httpd.conf has the following modification:
===
#
Listen 7888

#
LoadModulejk_module  modules/mod_jk.so

#
#config of mod_jk
#
JkWorkersFile /usr/local/apache2.0.55/conf/workers.properties
JkLogFile /usr/local/jakarta-tomcat-5.0.28/logs/mod_jk.log
JkLogLevelinfo
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
#
JkMount  /*  worker1
JkMount  /*/*  worker1
JkMount  /*/*/*  worker1
JkMount  /*/*/*/*  worker1
#
# End of mod_jk


Also the log files seem don't give me much useful info, for example, the
mod_jk.log file has the following line:
[Tue Nov 29 15:33:54 2005] worker1 [localhost] 0.089465

ANy suggestions are overwelcome!

-b


Re: Problems with Mod JK (Apache 2.052 and Tomcat 5.5.9)

2005-11-29 Thread blueberry lake
Since I am a new user of mod_jk, please correct me if I am wrong.

In your apache httpd.conf, you set:
 JkWorkersFile /var/tomcat/conf/workers.properties
I remember workers.properties is  located in apache/conf/, the same
directory with httpd.conf..

And, do you indicate the location of tomcat in workers.properties, such as
workers.tomcat_home=/.../tomcat/?

-b

On 11/29/05, Luka Andrejasic [EMAIL PROTECTED] wrote:

 Hello guys,

 I am trying to figure this one out for weeks. Nothing seems to work and I
 am running out of ideas. The problem seems to be with Mod JK, as Apache and
 Tomcat work without problems on their own.

 Below are all the main configuration files, as well as the error log (at
 the bottom) :

 // System Configuration :

 - OS : RedHat Linux ES 4.0 (2.6.9-22.0.1)
 - Apache : 2.0.52
 - Tomcat : 5.5.9
 - MySQL : 4.1.12
 - Mod JK : 1.2.15




 // Mod JK Installation :

tar -xzf jakarta-tomcat-connectors-jk-1.2.15-src.tar.gz
cd jakarta-tomcat-connectors-jk-1.2.15-src
cd jk
cd native
./buildconf.sh
./configure --enable-EAPI --with-apxs=/usr/sbin/apxs
make
make install

cp ./apache-2.0/mod_jk.so /etc/httpd/modules




 // Apache Virtual Domains :

 NameVirtualHost *:80


 VirtualHost *:80
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/tomcat/webapps/ROOT
ServerName domain.com
ServerAlias server.domain.com
ErrorLog /home/virtual/domain.com/logs/error_log
CustomLog /home/virtual/domain.com/logs/access_log combined

IfModule mod_jk.c
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm

  Location /META-INF/*
AllowOverride None
deny from all
  /Location

  Location /WEB-INF/*
AllowOverride None
deny from all
  /Location

  JkWorkersFile /var/tomcat/conf/workers.properties
  JkShmFile /var/tomcat/conf/shm.file
  JkLogFile /var/tomcat/logs/mod_jk.txt
  JkLogLevel info
  JkAutoAlias /var/tomcat/webapps/ROOT

  JkMount /backup/*  ajp13w
  JkMount /config/*  ajp13w
  JkMount /files/*  ajp13w
  JkMount /logs/*  ajp13w
  JkMount /servlet/*  ajp13w
  JkMount /sql/*  ajp13w
  JkMount /temp/*  ajp13w
  JkMount /*.jsp  ajp13w
/IfModule

 /VirtualHost




 // File server.xml :

 Server className=org.apache.catalina.core.StandardServer
 debug=0
 port=8005
 shutdown=SHUTDOWN

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

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

   Listener className=
 org.apache.catalina.storeconfig.StoreConfigLifecycleListener
 debug=0/

   GlobalNamingResources
 Resource name=UserDatabase
   auth=Container
   type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
 
   pathname=conf/tomcat-users.xml/
   /GlobalNamingResources

   Service className=org.apache.catalina.core.StandardService
debug=0
name=Catalina

 Connector acceptCount=128
   className=org.apache.coyote.tomcat5.CoyoteConnector
   connectionTimeout=2
   debug=0
   enableLookups=false
   minProcessors=32
   maxProcessors=384
   port=8009
   protocolHandlerClassName=
 org.apache.jk.server.JkCoyoteHandler
   protocol=AJP/1.3
   redirectPort=8443
   useURIValidationHack=false/

 Engine className=org.apache.catalina.core.StandardEngine
 debug=0
 defaultHost=server.domain.com
 mapperClass=org.apache.catalina.core.StandardEngineMapper
 name=Catalina

   Host className=org.apache.catalina.core.StandardHost
 appBase=webapps
 autoDeploy=true
 debug=0
 name=server.domain.com
 unpackWARS=true
 xmlValidation=false
 xmlNamespaceAware=false

 Context charsetMapperClass=
 org.apache.catalina.util.CharsetMapper
  cookies=true
  crossContext=false
  debug=0
  docBase=ROOT
  mapperClass=
 org.apache.catalina.core.StandardContextMapper
  path=
  privileged=false
  reloadable=false
  swallowOutput=true
  useNaming=true
  wrapperClass=org.apache.catalina.core.StandardWrapper/

   /Host

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

 /Engine

   /Service

 /Server




 // File workers.properties :

 worker.list=ajp13w
 worker.ajp13w.port=8009