Re: Error starting the web server

2009-11-17 Thread John McCleskey
Thanks to everyone who helped with the deployment of this project. I was
able to install a stand-alone Apache web server on my iSeries with java 1.5.
It was not as straight-forward as I would have liked, due mainly to the poor
iSeries how-to documentation and my ignorance, but it is running. - John

On Mon, Nov 16, 2009 at 9:17 AM, Neil Aggarwal n...@jammconsulting.comwrote:

 John:

  It appears that we have several JDK's loaded on our file
  system (up to jdk
  1.5). what apache configuration files need to be modified to
  point to the
  correct jdk? i've modified the workers.properties. any other
  locations I
  should modify?

 I choose a JDK by setting a JAVA_HOME
 environment variable in /etc/init.d/tomcat.

 Here is a sample:
 JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk.x86_64

Neil

 --
 Neil Aggarwal, (281)846-8957, 
 http://UnmeteredVPS.nethttp://unmeteredvps.net/
 Host your tomcat app on a CentOS VPS for only $25/month!
 Unmetered bandwidth, 7 day no risk trial, Google Checkout



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




-- 
Regards,

John
http://www.linkedin.com/in/johnmccleskey


RE: Error starting the web server

2009-11-17 Thread Caldarale, Charles R
 From: John McCleskey [mailto:jmccleske...@gmail.com]
 Subject: Re: Error starting the web server
 
 I was able to install a stand-alone Apache web server on 
 my iSeries with java 1.5.

The term Apache web server is rather ambiguous; did you mean httpd or Tomcat?

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



Re: Error starting the web server

2009-11-17 Thread John McCleskey
Sorry, Tomcat.

On Tue, Nov 17, 2009 at 11:51 AM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: John McCleskey [mailto:jmccleske...@gmail.com]
  Subject: Re: Error starting the web server
 
  I was able to install a stand-alone Apache web server on
  my iSeries with java 1.5.

 The term Apache web server is rather ambiguous; did you mean httpd or
 Tomcat?

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




-- 
Regards,

John
http://www.linkedin.com/in/johnmccleskey


Error starting the web server

2009-11-16 Thread John McCleskey
I'm recieving the following errors when starting my Tomcat server. I'm
attempting to deploy a web application using a .WAR file and have configured
the server to run servlets. Any help would be greatly appreciated.


*[jk_jni_worker.c (1028)]: Fail- could not initialize Tomcat *

*[jk_worker.c (220)]: wc_create_worker init failed for inprocess *
*[jk_worker.c (297)]: build_worker_map failed to create workerinprocess *

-- 
Regards,

John
http://www.linkedin.com/in/johnmccleskey


Re: Error starting the web server

2009-11-16 Thread Pid

On 16/11/2009 14:00, John McCleskey wrote:

I'm recieving the following errors when starting my Tomcat server. I'm
attempting to deploy a web application using a .WAR file and have configured
the server to run servlets. Any help would be greatly appreciated.


*[jk_jni_worker.c (1028)]: Fail-  could not initialize Tomcat *

*[jk_worker.c (220)]: wc_create_worker init failed for inprocess *
*[jk_worker.c (297)]: build_worker_map failed to create workerinprocess *



Some clues as to the HTTPD, Tomcat, mod_jk(presumably?), JVM, OS type 
and versions would be useful.


Your Tomcat server.xml, mod_jk.conf, workers.properties and other 
pertinent config files are also likely to be useful, as would any other 
log messages, e.g. catalina.out.



p

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



Re: Error starting the web server

2009-11-16 Thread André Warnier
Just substituting momentarily for Chuck and Pid while they warm up for 
the day :


John McCleskey wrote:

I'm recieving the following errors when starting my Tomcat server. I'm
attempting to deploy a web application using a .WAR file and have configured
the server to run servlets. 

Really ? How did you do that ?



*[jk_jni_worker.c (1028)]: Fail- could not initialize Tomcat *

*[jk_worker.c (220)]: wc_create_worker init failed for inprocess *
*[jk_worker.c (297)]: build_worker_map failed to create workerinprocess *


Strange. That does not look like a Tomcat logfile, somehow.
Nor, so far, like a Tomcat problem.

Do you care to tell us what you are really doing, with which Tomcat,
which server in front (apparently), on which platform, and where you
found the above messages ?

This sounds very much like a voice from the (very) distant past, like in :
http://tomcat.apache.org/connectors-doc/generic_howto/workers.html
which says (in the Workers Types section) :
jni	DEPRECATED: This worker knows how to forward requests to in-process 
Tomcat workers using JNI.


I remember seeing that DEPRECATED mention as far back as.. say Tomcat 
4.1.  That was a long time ago.  I'm not sure that you will find anyone 
who still remembers what that thing was doing.



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



Re: Error starting the web server

2009-11-16 Thread John McCleskey
I'm running the web server on an iSeries v5r4 and the jdk is 1.3.

It appears that the jvm is throwing an exception:


java.lang.NoClassDefFoundError: org/xml/sax/helpers/DefaultHandler

java.lang.NoClassDefFoundError: org/apache/struts/legacy/GenericDataSource
Guessing my classpath must be incorrect.

On Mon, Nov 16, 2009 at 8:08 AM, Pid p...@pidster.com wrote:

 On 16/11/2009 14:00, John McCleskey wrote:

 I'm recieving the following errors when starting my Tomcat server. I'm
 attempting to deploy a web application using a .WAR file and have
 configured
 the server to run servlets. Any help would be greatly appreciated.


 *[jk_jni_worker.c (1028)]: Fail-  could not initialize Tomcat *

 *[jk_worker.c (220)]: wc_create_worker init failed for inprocess *
 *[jk_worker.c (297)]: build_worker_map failed to create workerinprocess *


 Some clues as to the HTTPD, Tomcat, mod_jk(presumably?), JVM, OS type and
 versions would be useful.

 Your Tomcat server.xml, mod_jk.conf, workers.properties and other pertinent
 config files are also likely to be useful, as would any other log messages,
 e.g. catalina.out.



 p

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




-- 
Regards,

John
http://www.linkedin.com/in/johnmccleskey


Re: Error starting the web server

2009-11-16 Thread John McCleskey
Sounds like I may be on a much earlier version of ASF Tomcat on my
production server (worked fine in test). How do I tell what version of
Tomcat I'm running on an iSeries?

On Mon, Nov 16, 2009 at 8:19 AM, André Warnier a...@ice-sa.com wrote:

 Just substituting momentarily for Chuck and Pid while they warm up for the
 day :


 John McCleskey wrote:

 I'm recieving the following errors when starting my Tomcat server. I'm
 attempting to deploy a web application using a .WAR file and have
 configured
 the server to run servlets.

 Really ? How did you do that ?


 *[jk_jni_worker.c (1028)]: Fail- could not initialize Tomcat *


 *[jk_worker.c (220)]: wc_create_worker init failed for inprocess *
 *[jk_worker.c (297)]: build_worker_map failed to create workerinprocess *

 Strange. That does not look like a Tomcat logfile, somehow.
 Nor, so far, like a Tomcat problem.

 Do you care to tell us what you are really doing, with which Tomcat,
 which server in front (apparently), on which platform, and where you
 found the above messages ?

 This sounds very much like a voice from the (very) distant past, like in :
 http://tomcat.apache.org/connectors-doc/generic_howto/workers.html
 which says (in the Workers Types section) :
 jni DEPRECATED: This worker knows how to forward requests to in-process
 Tomcat workers using JNI.

 I remember seeing that DEPRECATED mention as far back as.. say Tomcat 4.1.
  That was a long time ago.  I'm not sure that you will find anyone who still
 remembers what that thing was doing.



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




-- 
Regards,

John
http://www.linkedin.com/in/johnmccleskey


Re: Error starting the web server

2009-11-16 Thread John McCleskey
Here is my httpd:

  *1* *   # Configuration originally created by Create HTTP Server wizard on
Fri Nov 13 16:08:48 CST 2009* *  2* *   LoadModule jk_module
/QSYS.LIB/QHTTPSVR.LIB/QZTCJK.SRVPGM* *  3* *   Listen 10.201.21.152:80* *
  4* *   DocumentRoot /www/webserver3/webapps/* *  5* *   Options -ExecCGI
-FollowSymLinks -SymLinksIfOwnerMatch -Includes -IncludesNoExec -Indexes
-MultiViews* *  6* *   LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\
\%{User-Agent}i\ combined* *  7* *   LogFormat %{Cookie}n \%r\ %t
cookie* *  8* *   LogFormat %{User-agent}i agent* *  9* *   LogFormat
%{Referer}i - %U referer* *  10* *   LogFormat %h %l %u %t \%r\ %s
%b common* *  11* *   CustomLog logs/access_log combined* *  12* *   LogMaint
logs/access_log 7 0* *  13* *   LogMaint logs/error_log 7 0* *  14* *
 HotBackup
Off* *  15* *   AccessFileName .htaccess* *  16* *   SetEnvIf User-Agent
Mozilla/2 nokeepalive* *  17* *   SetEnvIf User-Agent JDK/1\.0
force-response-1.0* *  18* *   SetEnvIf User-Agent Java/1\.0
force-response-1.0* *  19* *   SetEnvIf User-Agent RealPlayer 4\.0
force-response-1.0* *  20* *   SetEnvIf User-Agent MSIE 4\.0b2;
nokeepalive* *  21* *   SetEnvIf User-Agent MSIE 4\.0b2;
force-response-1.0* *  22* *   JkWorkersFile
/www/webserver3/conf/workers.properties* *  23* *   JkLogFile
/www/webserver3/logs/jk.log* *  24* *   JkLogLevel Error* *  25* *   JkMount
/servlet/* inprocess* *  26* *   JkMount /fp5250 inprocess* *  27* *   JkMount
/fp5250/* inprocess* *  28* *   DirectoryIndex index.html* *  29* *
Directory
/* *  30* *Order Deny,Allow* *  31* *Deny From all* *  32*
   */Directory* *  33* *   Directory /www/webserver3/htdocs* *
34* *
Order Allow,Deny* *  35* *Allow From all* *  36**/Directory*

On Mon, Nov 16, 2009 at 8:33 AM, John McCleskey jmccleske...@gmail.comwrote:

 Sounds like I may be on a much earlier version of ASF Tomcat on my
 production server (worked fine in test). How do I tell what version of
 Tomcat I'm running on an iSeries?


 On Mon, Nov 16, 2009 at 8:19 AM, André Warnier a...@ice-sa.com wrote:

 Just substituting momentarily for Chuck and Pid while they warm up for the
 day :


 John McCleskey wrote:

 I'm recieving the following errors when starting my Tomcat server. I'm
 attempting to deploy a web application using a .WAR file and have
 configured
 the server to run servlets.

 Really ? How did you do that ?


 *[jk_jni_worker.c (1028)]: Fail- could not initialize Tomcat *


 *[jk_worker.c (220)]: wc_create_worker init failed for inprocess *
 *[jk_worker.c (297)]: build_worker_map failed to create workerinprocess *

 Strange. That does not look like a Tomcat logfile, somehow.
 Nor, so far, like a Tomcat problem.

 Do you care to tell us what you are really doing, with which Tomcat,
 which server in front (apparently), on which platform, and where you
 found the above messages ?

 This sounds very much like a voice from the (very) distant past, like in :
 http://tomcat.apache.org/connectors-doc/generic_howto/workers.html
 which says (in the Workers Types section) :
 jni DEPRECATED: This worker knows how to forward requests to
 in-process Tomcat workers using JNI.

 I remember seeing that DEPRECATED mention as far back as.. say Tomcat 4.1.
  That was a long time ago.  I'm not sure that you will find anyone who still
 remembers what that thing was doing.



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




 --
  Regards,

 John
 http://www.linkedin.com/in/johnmccleskey





-- 
Regards,

John
http://www.linkedin.com/in/johnmccleskey


Re: Error starting the web server

2009-11-16 Thread David Smith

 jdk is 1.3
Ouch!  You really should consider an upgrade.  What version of tomcat do
you have ... it hasn't been recommended that anyone set classpath since
tomcat 3 days.  And then it was a nightmare trying to engineer
classpaths so all the apps and tomcat were happy.  More details would be
great.

--David

John McCleskey wrote:
 I'm running the web server on an iSeries v5r4 and the jdk is 1.3.

 It appears that the jvm is throwing an exception:


 java.lang.NoClassDefFoundError: org/xml/sax/helpers/DefaultHandler

 java.lang.NoClassDefFoundError: org/apache/struts/legacy/GenericDataSource
 Guessing my classpath must be incorrect.

 On Mon, Nov 16, 2009 at 8:08 AM, Pid p...@pidster.com wrote:

   
 On 16/11/2009 14:00, John McCleskey wrote:

 
 I'm recieving the following errors when starting my Tomcat server. I'm
 attempting to deploy a web application using a .WAR file and have
 configured
 the server to run servlets. Any help would be greatly appreciated.


 *[jk_jni_worker.c (1028)]: Fail-  could not initialize Tomcat *

 *[jk_worker.c (220)]: wc_create_worker init failed for inprocess *
 *[jk_worker.c (297)]: build_worker_map failed to create workerinprocess *


   
 Some clues as to the HTTPD, Tomcat, mod_jk(presumably?), JVM, OS type and
 versions would be useful.

 Your Tomcat server.xml, mod_jk.conf, workers.properties and other pertinent
 config files are also likely to be useful, as would any other log messages,
 e.g. catalina.out.



 

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



RE: Error starting the web server

2009-11-16 Thread Caldarale, Charles R
 From: John McCleskey [mailto:jmccleske...@gmail.com]
 Subject: Re: Error starting the web server
 
 I'm running the web server on an iSeries v5r4 and the jdk is 1.3.

JDK 1.3 hasn't been supported in a long, long time.  Given André's assessment, 
the Tomcat version and connector you're using also have not been supported for 
ages.

 How do I tell what version of Tomcat I'm running on an iSeries?

Supported levels of Tomcat have a version.sh script that will display that 
information.

You may well be on your own here, unless you want to upgrade to reasonable 
versions of the JVM and Tomcat.

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



Re: Error starting the web server

2009-11-16 Thread John McCleskey
I'm running Apache 5.5 with a jdk 1.4 on my windows test server and
everything works fine, so it appears these two may be the issue. Let me chat
with our sys admin to determine when an upgrade can be completed. Thanks for
your help.

On Mon, Nov 16, 2009 at 8:39 AM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: John McCleskey [mailto:jmccleske...@gmail.com]
  Subject: Re: Error starting the web server
 
  I'm running the web server on an iSeries v5r4 and the jdk is 1.3.

 JDK 1.3 hasn't been supported in a long, long time.  Given André's
 assessment, the Tomcat version and connector you're using also have not been
 supported for ages.

  How do I tell what version of Tomcat I'm running on an iSeries?

 Supported levels of Tomcat have a version.sh script that will display that
 information.

 You may well be on your own here, unless you want to upgrade to reasonable
 versions of the JVM and Tomcat.

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




-- 
Regards,

John
http://www.linkedin.com/in/johnmccleskey


Re: Error starting the web server

2009-11-16 Thread John McCleskey
It appears that we have several JDK's loaded on our file system (up to jdk
1.5). what apache configuration files need to be modified to point to the
correct jdk? i've modified the workers.properties. any other locations I
should modify?


worker.list=inprocess

worker.inprocess.type=jni

worker.inprocess.cmd_line=-config

worker.inprocess.cmd_line=/www/webserver3/conf/server.xml

worker.inprocess.sysprops=java.version=1.5

worker.inprocess.sysprops=tomcat.home=/www/webserver3

worker.inprocess.sysprops=os400.dir.create.auth=X

worker.inprocess.sysprops=os400.file.create.auth=*NONE

worker.inprocess.stdout=/www/webserver3/logs/jvmstdout.txt

worker.inprocess.stderr=/www/webserver3/logs/jvmstderr.txt

worker.inprocess.class_path=/QIBM/ProdData/HTTPA/java/lib/webserver.jar

worker.inprocess.cmd_line=/www/webserver3/conf/server.xml

worker.inprocess.sysprops=java.version=1.5

worker.inprocess.sysprops=tomcat.home=/www/webserver3

worker.inprocess.sysprops=os400.dir.create.auth=X

worker.inprocess.sysprops=os400.file.create.auth=*NONE

worker.inprocess.stdout=/www/webserver3/logs/jvmstdout.txt

worker.inprocess.stderr=/www/webserver3/logs/jvmstderr.txt

worker.inprocess.class_path=/QIBM/ProdData/HTTPA/java/lib/webserver.jar

worker.inprocess.class_path=/QIBM/ProdData/HTTPA/java/lib/servlet.jar

worker.inprocess.class_path=/QIBM/ProdData/HTTPA/java/lib/parser.jar

worker.inprocess.class_path=/QIBM/ProdData/HTTPA/java/lib/jaxp.jar

worker.inprocess.class_path=/QIBM/ProdData/HTTPA/java/lib/jasper.jar

worker.inprocess.class_path=/QIBM/ProdData/java400/jdk15/lib/tools.jar


On Mon, Nov 16, 2009 at 8:48 AM, John McCleskey jmccleske...@gmail.comwrote:

 I'm running Apache 5.5 with a jdk 1.4 on my windows test server and
 everything works fine, so it appears these two may be the issue. Let me chat
 with our sys admin to determine when an upgrade can be completed. Thanks for
 your help.

 On Mon, Nov 16, 2009 at 8:39 AM, Caldarale, Charles R 
 chuck.caldar...@unisys.com wrote:

  From: John McCleskey [mailto:jmccleske...@gmail.com]
  Subject: Re: Error starting the web server
 
  I'm running the web server on an iSeries v5r4 and the jdk is 1.3.

 JDK 1.3 hasn't been supported in a long, long time.  Given André's
 assessment, the Tomcat version and connector you're using also have not been
 supported for ages.

  How do I tell what version of Tomcat I'm running on an iSeries?

 Supported levels of Tomcat have a version.sh script that will display that
 information.

 You may well be on your own here, unless you want to upgrade to reasonable
 versions of the JVM and Tomcat.

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




  --
 Regards,

 John
 http://www.linkedin.com/in/johnmccleskey





-- 
Regards,

John
http://www.linkedin.com/in/johnmccleskey


RE: Error starting the web server

2009-11-16 Thread Neil Aggarwal
John:

 It appears that we have several JDK's loaded on our file 
 system (up to jdk
 1.5). what apache configuration files need to be modified to 
 point to the
 correct jdk? i've modified the workers.properties. any other 
 locations I
 should modify?

I choose a JDK by setting a JAVA_HOME
environment variable in /etc/init.d/tomcat.

Here is a sample:
JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk.x86_64

Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
Host your tomcat app on a CentOS VPS for only $25/month!
Unmetered bandwidth, 7 day no risk trial, Google Checkout 
 


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