Re: Re[2]: Tomcat/Apache integration

2004-01-13 Thread Joaquin Corchero
To me it looks like you have a problem in the httpd.conf or in the
workers.properties file, if you can send them, it will be easier to give you
a hand.


Joaquin Corchero


Chris Gibbons [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I've got mod_jk set up and running, and it works as long as I'm on the
 server using http://localhost/  but if I go to a different
 machine, or even on the server try to access the site via the ip
 address, apache doesn't hand off the request to tomcat, it only hands
 it off if I use http://localhost/...  If I add the port 8080 to the ip
 address everything is fine, so I know tomcat is working, the only
 problem is when I use the IP address I get a 404 file not found error,
 because apache isn't handing the request to tomcat, and apache doesn't
 know what to do with it.

  Chrismailto:[EMAIL PROTECTED]




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



Tomcat-Apache Security

2003-12-17 Thread Joaquin Corchero
Good morning.

I'm new in Tomcat-Apache administration and I just created a production environment, 
but I need some guidelines to give securtity to my web applications.

Can anyone give me some url's where I can find information about it?

Thank you very much.

OFF TOPIC (create Subdomains)

2003-12-05 Thread Joaquin Corchero
Hi all. I'm starting with tomcat and apache administration.

I have a domain pointed to my Linux server (with apache and tomcat working together), 
and I want to create subdomains to this domain.

Can anyone give me a hand with it?? or give me any url to find out by myself?

Thank you Joaquin

Re: Tomcat doesn't start

2003-11-05 Thread Joaquin Corchero
Can you send a copy of the server.xml???

Anyway check that you didn't introduce any character at the begining of the
file


- Original Message - 
From: Didier Wiroth [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 9:48 AM
Subject: Tomcat doesn't start


 Hi,
 I've created a custom server.xml when I try to start tomcat, tomcat fails
 with this output:

 Catalina.start: java.io.UTFDataFormatException: Invalid byte 1 of 1-byte
 UTF-8 sequence.
 java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8 sequence.
 at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown
Source)
 at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
 at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
 at org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown
 Source)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknown
 Source)
 at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
 her.dispatch(Unknown Source)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
 Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
 Source)
 at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
 at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
 at org.apache.commons.digester.Digester.parse(Digester.java:1548)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 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.main(Bootstrap.java:203)

 What does that mean?
 Thanks


 -
 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 needed with Apache 2.0.47 Tomcat 4.1.27 + mod_jk

2003-10-30 Thread Joaquin Corchero
Hi everyone

I hope someone can help me

After having a look to your url. I've to say that I think I'm closer to a
solution, but I haven't arrived yet.

I haven't achieved yet to make apache and tomcat work together.

I followed the steps to setup apache nonssl, tomcat and mod_jk because I had
java already installed and I work with mysql and I think I don't need any of
the other packages that you mention in the url.

After following your instructions I found two steps a bit estrange that I
don't understand:

1)
  Directly below this line in /usr/local/tomcat/WEB-INF/server.xml
  Host name=localhost debug=0 appBase=webapps
  Add this line
  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true forwardAll=false
modJk=/usr/local/apache2/modules/mod_jk.so /

Do you mean that I need to create a folder called WEB-INF and introduce
a copy of server.xml?

2) In the same paragraph you have this:

Create file /usr/local/tomcat/workers.properties with these contents:
# Setting Tomcat  Java Home
workers.tomcat_home=/usr/local/tomcat
workers.java_home=/usr/local/java/java
ps=/
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13..host=localhost:443
worker.ajp13.type=ajp13

But the default location for the workers file (or the location that
everybody  uses) is /usr/local/tomcat/conf/jk/workers.properties. Do you
mean that I need to create another workers .properties?
Anyway is what I created the new file and I copied the same content in the
other workers but I'm not sure if the line worker.ajp13..host=localhost:443
should be worker.ajp13..host=localhost:80 because I'm not using SSL.


Attached you will find my httpd.conf, server.xml and workers.properties.

Thank you for your help.

Joaquin


- Original Message - 
From: Oscar Carrillo [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 4:15 PM
Subject: Re: Help needed with Apache 2.0.47 Tomcat 4.1.27 + mod_jk


 Does Apache launches and serves up plain html files?

 If so, most likely it's the mapping done in httpd.conf and/or the
 auto-generated modjk.conf file.

 I have examples on how to do it in httpd.conf for virtual hosting here:
 http://daydream.stanford.edu/tomcat/install_web_services.html

 It may help you in seeing what gets configured where.

 Oscar


 On Wed, 29 Oct 2003, Joaquin Corchero wrote:

  Hi!
 
  I'm new in tomcat and I have a problem (very big for me) so I hope
someone will be able to help me.
 
  My problem is that after setting everything up following the
  instructions from
  http://www.johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html,
  the apache server doesn't execute the jsp files.
 
  I didn't get any error during the installations, so I think everything
  is working properly I don't understand what's the problem.
 
 
  Thank you
 
  Joaquin
 
 


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


!-- 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 debug=0
!--Modiffied Joaquin 29 Oct--
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache/modules/mod_jk.so WorkersConfig=/usr/local/tomcat/conf/jk/workers.properties/


  !-- Comment these entries out to disable JMX MBeans support --
  !-- You may also configure custom components (e.g. Valves/Realms) by
   including your own mbean-descriptor file(s), and setting the
   descriptors attribute to point to a ';' seperated list of paths
   (in the ClassLoader sense) of files to add to the default list.
   e.g. descriptors=/com/myfirm/mypackage/mbean-descriptor.xml
  --
  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

Re: Help needed with Apache 2.0.47 Tomcat 4.1.27 + mod_jk

2003-10-30 Thread Joaquin Corchero
Hi everyone

I hope someone can help me

After having a look to your url. I've to say that I think I'm closer to a
solution, but I haven't arrived yet.

I haven't achieved yet to make apache and tomcat work together.

I followed the steps to setup apache nonssl, tomcat and mod_jk because I had
java already installed and I work with mysql and I think I don't need any of
the other packages that you mention in the url.

After following your instructions I found two steps a bit estrange that I
don't understand:

1)
Directly below this line in /usr/local/tomcat/WEB-INF/server.xml
Host name=localhost debug=0 appBase=webapps
Add this line
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true forwardAll=false
 modJk=/usr/local/apache2/modules/mod_jk.so /

Do you mean that I need to create a folder called WEB-INF and introduce a
copy of server.xml?

2) In the same paragraph you have this:
Create file /usr/local/tomcat/workers.properties with these contents:
# Setting Tomcat  Java Home
workers.tomcat_home=/usr/local/tomcat
workers.java_home=/usr/local/java/java
ps=/
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13..host=localhost:443
worker.ajp13.type=ajp13

But the default location for the workers file (or the location that
everybody  uses) is /usr/local/tomcat/conf/jk/workers.properties. Do you
mean that I need to create another workers .properties?
Anyway is what I created the new file and I copied the same content in the
other workers but I'm not sure if the line worker.ajp13..host=localhost:443
should be worker.ajp13..host=localhost:80 because I'm not using SSL.

Attached you will find my httpd.conf, server.xml and workers.properties.

Thank you for your help.

Joaquin

Talego

 - Original Message - 
 From: Oscar Carrillo [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, October 29, 2003 4:15 PM
 Subject: Re: Help needed with Apache 2.0.47 Tomcat 4.1.27 + mod_jk


  Does Apache launches and serves up plain html files?
 
  If so, most likely it's the mapping done in httpd.conf and/or the
  auto-generated modjk.conf file.
 
  I have examples on how to do it in httpd.conf for virtual hosting here:
  http://daydream.stanford.edu/tomcat/install_web_services.html
 
  It may help you in seeing what gets configured where.
 
  Oscar
 
 
  On Wed, 29 Oct 2003, Joaquin Corchero wrote:
 
   Hi!
  
   I'm new in tomcat and I have a problem (very big for me) so I hope
 someone will be able to help me.
  
   My problem is that after setting everything up following the
   instructions from
   http://www.johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html,
   the apache server doesn't execute the jsp files.
  
   I didn't get any error during the installations, so I think everything
   is working properly I don't understand what's the problem.
  
  
   Thank you
  
   Joaquin
  
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

!-- 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 debug=0
!--Modiffied Joaquin 29 Oct--
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache/modules/mod_jk.so WorkersConfig=/usr/local/tomcat/conf/jk/workers.properties/


  !-- Comment these entries out to disable JMX MBeans support --
  !-- You may also configure custom components (e.g. Valves/Realms) by
   including your own mbean-descriptor file(s), and setting the
   descriptors attribute to point to a ';' seperated list of paths
   (in the ClassLoader sense) of files to add to the default list.
   e.g. descriptors=/com/myfirm/mypackage/mbean-descriptor.xml
  --
  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

AM_PROG_LIBTOOL building mod_jk

2003-10-30 Thread Joaquin Corchero
  Hi

  In my production environment I'm finding a problem when I try to build mod_jk 
(jakarta-comcat-connectors-jk-1.2-src-current.tar.gz). The error Message is the next:

  libtoolize --force --automake --copy
  ./buildconf.sh: line 4: libtoolize: command not found
  aclocal
  calocal: configure.in: 22: macro 'AM_PROG_LIBTOOL' not found in library
  automake -a --foreign -i --copy
  aclocal.m4.141: version mismatch. This is automake 1.6.3 but aclocal.m4
  aclocal.m4.141: was generated for Automake 1.6 You should recreate
  aclocal.m4:141: aclocal.m4 with aclocal and run automake again.
  autocong

  Can anyone help me and tell me what is the update that I need???

  Further information wellcome.


  Thank you very much



  Joaquin

Please, help with Jsp not working with Apache-Tomcat-mod_jk

2003-10-29 Thread Joaquin Corchero
Hello!

I just installed Apache (2.0.47), Tomcat (4.1.27) and mod_jk (1.2.5) in a redhat 
Machine following the instructions found in 
http://www.johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html

Everything went perfect during the installations except that I configure the apache 
installation with the enable ssl because errors in the make, anyway I don't need it.

As I said everything went perfect, but when I call a jsp, it looks like apache doesn't 
go to Tomcat to execute the jsp.

Can anyone help me??

Thank you very much

Joaky

Help needed with Apache 2.0.47 Tomcat 4.1.27 + mod_jk

2003-10-29 Thread Joaquin Corchero
Hi!

I'm new in tomcat and I have a problem (very big for me) so I hope someone will be 
able to help me.

My problem is that after setting everything up following the instructions from 
http://www.johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html, the apache 
server doesn't execute the jsp files.

I didn't get any error during the installations, so I think everything is working 
properly I don't understand what's the problem.


Thank you

Joaquin



Re: Connecting Apache 2.0.47 to Tomcat 4.0.6

2003-10-29 Thread Joaquin Corchero
Can you send me the tittle of the message (I signed up today)

Thank you very much
- Original Message - 
From: Asif Chowdhary [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 3:49 PM
Subject: RE: Connecting Apache 2.0.47 to Tomcat 4.0.6


I think Apache 2.0 works with mod_jk2. and the configuration is very
different
from mod_jk1.2. The directives such as JkWorkersFile JKMount dont work with
mod_jk2.

-Original Message-
From: Ahmad, Kashif [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 10:42 AM
To: '[EMAIL PROTECTED]'
Subject: Connecting Apache 2.0.47 to Tomcat 4.0.6


Hi All:



I have a question and hope someone can answer it.  I have a client that is
trying to install Apache 2.0.47 with Tomcat 4.0.6.  The application he is
trying to run comes with instructions on how to configure Apache 2.0.43 with
Tomcat 4.0.4 with mod_jk_1.2.  Do the same instructions apply to with the
Apache 2.0.47 with Tomcat 4.0.6?  I've been able to get him so far to the
point where he can access the application on the Tomcat internal HTTP on the
default port 8080.  However, when he connects with Apache on port 80, he
gets a mis-configuration error.



Here are the instructions as provided for the application for configuring
Apache 2.0.43 and Tomcat 4.0.4



*Start Configuration Instruction*



4.2.2 Configure the Apache HTTP Server for Teams

Add the following lines at the end of httpd.conf in /opt/apache/conf:

#

# Configure mod_jk

#

LoadModule jk_module /opt/apache/modules/mod_jk.so

JkWorkersFile /opt/tomcat/conf/jk/workers.properties

JkLogFile /opt/tomcat/logs/mod_jk.log

JkLogLevel error

Alias /teams /opt/tomcat/webapps/teams

JkMount /teams/*.do ajp13

JkMount /teams/*.jsp ajp13

Alias /teamsadmin /opt/tomcat/webapps/teamsadmin

JkMount /teamsadmin/*.do ajp13

JkMount /teamsadmin/*.jsp ajp13



4.2.3 Configure Tomcat for TEAMS



4.2.3.1 Set Up Environment Variables

* Set JAVA_HOME to the JDK or JRE installation directory.

* Set TOMCAT_HOME to the Tomcat installation directory, e.g., /opt/tomcat.



4.2.3.2 Modify the Tomcat Startup Script

1. Add the following configuration information near the top of the file

$TOMCAT_HOME/bin/catalina.sh right after the comment section. Note that

it must be added as one line. Also, when copying from text editors, ensure
that

there are no hard returns in the entry between JAVA_OPTS= and

DORBagentPort settings.



# Define JAVA_OPTS

JAVA_OPTS=-Xbootclasspath/p:/opt/teams/jars/vbjapp.jar:/

opt/teams/jars/vbjorb.jar:/opt/teams/jars/swingall.jar -Xss2m -Xmx128m

-Dfile.encoding=ISO8859_1 -Djava.compiler=NONE -DSERVLET=true

-DTEAMS_HOME=/opt/teams -DLOG_FILE=/opt/tomcat/logs/teams.log

-DTEAMS_DEBUG_LEVEL=6 -DORBagentPort=15000



2. Also in the $TOMCAT_HOME/bin/catalina.sh file, append the following jar

files to the second CLASSPATH setting:

a. If you are using JRE 1.3, add:

b. If you are using JDK 1.3 (see following example), add:

CLASSPATH=$CLASSPATH:/opt/teams/jars/tools.jar:$ORACLE_HOME/jdbc/lib/

classes12.zip

CLASSPATH=$CLASSPATH:$ORACLE_HOME/jdbc/lib/classes12.zip



4.2.3.3 Create AJP Connecter Workers File

Create a file /opt/tomcat/conf/jk/workers.properties with the following

content (note that the value of worker.ajp13.port is an example):

The AJP Connector Port (5044) must also be put into the server.xml file,

located in the$TOMCAT_HOME/conf directory, in the section called Define an

AJP 1.3 Connector.



# Setup for Solaris system

#

workers.tomcat_home=/opt/tomcat/

workers.java_home=/opt/jdk1.3.1

ps=/

worker.list=ajp13

# Definition for Ajp13 worker

#

worker.ajp13.port=5044

worker.ajp13.host=localhost

worker.ajp13.type=ajp13










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