restart tomcat everytime I make change to servlet -- after experiment

2003-09-03 Thread Clive Luk
OK. seems i am asking a hard question here. But I did some experiment
myself. just to give out more hints to the list to help solving my problem
and I am hoping someone maybe able to help. I am sure someone in the world
will have the same problem  and been solved.

here is what i have done. after no luck with my virtual host setting. i am
trying going through tomcat directly via port 8080

* I created a directory under {$tomcat_home}/webapps/ call mytest
* I copied the WEB-INF to the default place {$tomcat_home}/webapps/mytest
* under that i have
drwxr-xr-x2 root root 4096 Sep  3 16:20 classes
-rw-r--r--1 root root  998 Sep  3 16:20 web.xml
* under classes i have
-rw-r--r--1 root root  870 Sep  3 16:39 HelloWorld.class


in {$tomcat_home}/conf/server.xml

i added that
Context path=/mytest docBase=mytest debug=0
 reloadable=true crossContext=true
  Logger className=org.apache.catalina.logger.FileLogger
 prefix=localhost_mytest_log. suffix=.txt
  timestamp=true/
/Context

then I can access the HelloWorld servlet by
http://localhost:8080/mytest/HelloWorld
If i made changes on HelloWorld.java, recompile and replace the old
HelloWorld.class with the new one.

I still can see tomcat knows i am making changes

WebappClassLoader:   Resource '/WEB-INF/classes/HelloWorld.class' was
modified; Date is now: Wed Sep 03 16:39:54 EST 2003 Was: Wed Sep 03 16:26:11
EST 2003

but after I refresh the http://localhost:8080/mytest/HelloWorld I still get
the bunch of java errors.

first reload saying HTTP Status 500
type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception SNIP java errors

second reload saying HTTP Status 503 - Servlet HelloWorld is currently
unavailable
type Status report
message Servlet HelloWorld is currently unavailable
description The requested service (Servlet HelloWorld is currently
unavailable) is not currently available.


Then, since I can see mytest under the tomcat manager. I can reload it.
but still the same java errors happened. I had to stop and start mytest
in order to see the changes. But I don't want to do this STOP START ACTION
again and again after every single change of the servlet.

I thought the reloadable=true will handle that.

I don't really want to blame on a bug of tomcat. But would that be possible.
OR has anyone in the world has done what I want to do without using any
tools like the tomcat manager? I am greatly appreciated for any help.
THANKS.

I am going to pull all my hair out... : (

Cheers,
Clive


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



RE: restart tomcat everytime I make change to servlet [solved]

2003-09-03 Thread Clive Luk
Hi all,

Thank you for all the replies. I have applied the hotfix last night. it
WORKS! thanks for all. that was just a bug. i can save my hair for next
time. : )

Cheers,
Clive

-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 11:46 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: restart tomcat everytime I make change to servlet


Did you apply the hotfix, that is specifically for class reloading
issues in 4.1.27 ?



 -Original Message-
 From: Clive Luk [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 02, 2003 9:13 PM
 To: [EMAIL PROTECTED]
 Subject: RE: restart tomcat everytime I make change to servlet



snip /


 Could that be a problem of I am using a binary of tomcat?

 i am using tomcat 4.1.27



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



Virtual host and mod_jk2 connector setup questions

2003-09-02 Thread Clive Luk
HI all,

I am only newbie to tomcat. I really need help on setting up tomcat 4.1.27
with mod_jk2 connector with a virtual host on apache 2.0.47. I have digged
through the mail-list and the jarkata doco page. still no help.

Here are my configuration files and the output of the catalina.out file.
When i get rid of the HOST section in the server.xml it doesn't come up
any error on the catalina.out file.

1. Am I on the right track of setting up virtual host on apache and tomcat?
2. Would that be a problem when I compile the connector and apache myself?

SPECs.

REDHAT 9.0
j2sdk1.4.2
jakarta-tomcat-4.1.27(binary)

apache2.0.47
(./configure --enable-so --enable-ssl --with-ssl=/usr/local/ssl --enable-vho
st-alias)

jakarta-tomcat-connectors-4.1.27-src
(./configure --with-apxs2=/usr/local/apache2/bin/apxs \
--with-tomcat41=/usr/local/tomcat\
--with-java-home=/usr/local/java \
--with-apache2-lib=/usr/local/apache2/lib \
--with-apr-lib=/usr/local/apache2/lib \
--with-jni)

THANKS in advance.

=catalina.out

Sep 2, 2003 2:31:24 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Sep 2, 2003 2:31:24 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Sep 2, 2003 2:31:30 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Sep 2, 2003 2:31:37 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.27
Sep 2, 2003 2:31:43 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 42 column 11: The content of element type
web-app must match
(icon?,display-name?,description?,distributable?,context-param*,filter*,fil
ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca
l-ref*).
org.xml.sax.SAXParseException: The content of element type web-app must
match
(icon?,display-name?,description?,distributable?,context-param*,filter*,fil
ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca
l-ref*).
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(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$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.ContextConfig.applicationConfig(ContextConfig.ja
va:282)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3568)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
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

RE: Virtual host and mod_jk2 connector setup questions

2003-09-02 Thread Clive Luk
Hi all tomcat guru,

After mess around. I found out what the problem was. it was the web.xml. all
the servlet tags has to place before the servlet-mapping tags. I assume
that the tags in web.xml has to be put in a certain order.

But another problem.

I can access all the *.jsp file with no problem with the virutal host i
setup (e.g. www.domain.com/test.jsp). But I can access to my test
servlet(e.g. www.domain.com/HelloWorld). it comes up page not found.

here is my web.xml under

/web/domain.com/htdocs/WEB-INF

here is my webapp directory structure

/web/domain.com/htdocs (have all the *.jsp files)
/web/domain.com/htdocs/WEB-INF
/web/domain.com/htdocs/WEB-INF/classes (all the *.classes)

web.xml sits under /web/domain.com/htdocs/WEB-INF

Could any one please let me know where did I do wrong?

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/dtd/web-app_2_3.dtd;

web-app
display-nameTest webapp/display-name
description
Test webapp
/description

servlet
servlet-nameHelloWorld/servlet-name
servlet-classHelloWorld/servlet-class
/servlet

servlet-mapping
servlet-nameHelloWorld/servlet-name
url-pattern/HelloWorld/url-pattern
/servlet-mapping
/web-app

Cheers,
Clive

-Original Message-
From: Clive Luk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 2:56 PM
To: Tomcat Users List
Subject: Virtual host and mod_jk2 connector setup questions


HI all,

I am only newbie to tomcat. I really need help on setting up tomcat 4.1.27
with mod_jk2 connector with a virtual host on apache 2.0.47. I have digged
through the mail-list and the jarkata doco page. still no help.

Here are my configuration files and the output of the catalina.out file.
When i get rid of the HOST section in the server.xml it doesn't come up
any error on the catalina.out file.

1. Am I on the right track of setting up virtual host on apache and tomcat?
2. Would that be a problem when I compile the connector and apache myself?

SPECs.

REDHAT 9.0
j2sdk1.4.2
jakarta-tomcat-4.1.27(binary)

apache2.0.47
(./configure --enable-so --enable-ssl --with-ssl=/usr/local/ssl --enable-vho
st-alias)

jakarta-tomcat-connectors-4.1.27-src
(./configure --with-apxs2=/usr/local/apache2/bin/apxs \
--with-tomcat41=/usr/local/tomcat\
--with-java-home=/usr/local/java \
--with-apache2-lib=/usr/local/apache2/lib \
--with-apr-lib=/usr/local/apache2/lib \
--with-jni)

THANKS in advance.

=catalina.out

Sep 2, 2003 2:31:24 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Sep 2, 2003 2:31:24 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Sep 2, 2003 2:31:30 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Sep 2, 2003 2:31:37 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.27
Sep 2, 2003 2:31:43 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 42 column 11: The content of element type
web-app must match
(icon?,display-name?,description?,distributable?,context-param*,filter*,fil
ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca
l-ref*).
org.xml.sax.SAXParseException: The content of element type web-app must
match
(icon?,display-name?,description?,distributable?,context-param*,filter*,fil
ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca
l-ref*).
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(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$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

restart tomcat everytime I make change to servlet

2003-09-02 Thread Clive Luk
Hi list,

I have come up another problem with making changes on servlet. Hope someone
can give me a hand on that. This is how I do it.

1. make changes to servlet1.java
2. javac servlet1.java
3. copy the servlet1.class to /whatever/WEB-INF/classes

The problem is I don't have any problem running tomcat. Until I overwrite an
old version of servlet with an new one. Everything seems gone wrong.

I will get HTTP status 500 to the servlet I changed.

If I reload the page again. I will get 503 Servlet servlet1 is currently
unavailable.

If I try other servlet that I didn't change I will get the same error.

Please help. Thanks in advance.

Cheers,
Clive


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



RE: restart tomcat everytime I make change to servlet

2003-09-02 Thread Clive Luk
(StandardWrapper.java:88
5)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:210)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:263)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:562)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
at java.lang.Thread.run(Thread.java:534)



Cheers,
Clive

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 10:22 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: restart tomcat everytime I make change to servlet


you will need to restart the context I believe,

but if you truly want this functionality, put your servlet code in a JSP

Filip

- Original Message -
From: Clive Luk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 5:13 PM
Subject: restart tomcat everytime I make change to servlet


Hi list,

I have come up another problem with making changes on servlet. Hope someone
can give me a hand on that. This is how I do it.

1. make changes to servlet1.java
2. javac servlet1.java
3. copy the servlet1.class to /whatever/WEB-INF/classes

The problem is I don't have any problem running tomcat. Until I overwrite an
old version of servlet with an new one. Everything seems gone wrong.

I will get HTTP status 500 to the servlet I changed.

If I reload the page again. I will get 503 Servlet servlet1 is currently
unavailable.

If I try other servlet that I didn't change I will get the same error.

Please help. Thanks in advance.

Cheers,
Clive


-
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: Any contractors from HK, S.E.Asia or India in this forum ?

2003-09-02 Thread Clive Luk
I am from HK but i am working in australia... but i am still after help
i can be a hk team if you don't mind...

Cheers,
Clive

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 9:37 AM
To: Tomcat Users List
Subject: Re: Any contractors from HK, S.E.Asia or India in this forum ?


Beacuse I'm trying t put together a dedicated team in HK

Santos Jha wrote:

 dude/dudess
 Why are u asking this question. Yes I am from SE Asia
 .so?

 [EMAIL PROTECTED] wrote:

 C'mon
 There are 7+ million people in HK, x-number of multi-nationals from
 y-number of industry sectors.
 I can't believe no HK person is contributing to or listening in on this
 forum.
 Don't be shy.
 
 [EMAIL PROTECTED] wrote:
 
 
 Hiya, all.
 Any contractors in this forum specializing in java applet/servlet, a2s,
 jndi in an apache2/tc4 environment and are from HK/China, S.E.Asia or
 India ? Got a website?
 TIA :-)
 

  
 -
 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: restart tomcat everytime I make change to servlet

2003-09-02 Thread Clive Luk
Filip,

But the servlet is sitting in one of the virtual host i setup. I can't see
my virtual host setting in my tomcat manager. I only see the default setting
in the manager. is there any other way?

Cheers,
Clive

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 11:38 AM
To: [EMAIL PROTECTED]
Subject: Re: restart tomcat everytime I make change to servlet


using ANT or the admin webapp will let you do that.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html
- Original Message -
From: Clive Luk [EMAIL PROTECTED]
To: Filip Hanik [EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 5:24 PM
Subject: RE: restart tomcat everytime I make change to servlet


Hi Filip,

Thanks for the reply. How do I restart the context without restarting
tomcat? does that mean if i make any changes to servlet i will have to
restart something? sorry i am only new in tomcat.

Cheers,
Clive

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 10:22 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: restart tomcat everytime I make change to servlet


you will need to restart the context I believe,

but if you truly want this functionality, put your servlet code in a JSP

Filip

- Original Message -
From: Clive Luk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 5:13 PM
Subject: restart tomcat everytime I make change to servlet


Hi list,

I have come up another problem with making changes on servlet. Hope someone
can give me a hand on that. This is how I do it.

1. make changes to servlet1.java
2. javac servlet1.java
3. copy the servlet1.class to /whatever/WEB-INF/classes

The problem is I don't have any problem running tomcat. Until I overwrite an
old version of servlet with an new one. Everything seems gone wrong.

I will get HTTP status 500 to the servlet I changed.

If I reload the page again. I will get 503 Servlet servlet1 is currently
unavailable.

If I try other servlet that I didn't change I will get the same error.

Please help. Thanks in advance.

Cheers,
Clive


-
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: restart tomcat everytime I make change to servlet

2003-09-02 Thread Clive Luk
Thanks for your quick reply,

I have search around on the web. some people said you only put the
reloadable=true in the Context tag that' will solve the problem. But i
still have no luck.

The follwoing is my virtual host setting in server.xml. But I still got the
error. if you look at my previous post for the logs. Thanks again.

Could that be a problem of I am using a binary of tomcat?

i am using tomcat 4.1.27

Host name=catch.mine.nu debug=1 appBase=/web/domain/htdocs
   unpackWARs=true autoDeploy=true

 Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=domain_com. suffix=.log
 timestamp=true/

 Context path= docBase= debug=0 reloadable=true

 Logger className=org.apache.catalina.logger.FileLogger
 prefix=domain. suffix=.log timestamp=true /

 Resource name=mail/Session auth=Container
   type=javax.mail.Session/
 ResourceParams name=mail/Session
 parameter
 namemail.smtp.host/name
 valuelocalhost/value
 /parameter
 /ResourceParams

 /Context
/Host

Cheers,
Clive

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 12:03 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: restart tomcat everytime I make change to servlet


hmm, maybe this

http://raibledesigns.com/wiki/Wiki.jsp?page=TomcatAntTasks

Filip
- Original Message -
From: Clive Luk [EMAIL PROTECTED]
To: Filip Hanik [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 6:55 PM
Subject: RE: restart tomcat everytime I make change to servlet


Filip,

But the servlet is sitting in one of the virtual host i setup. I can't see
my virtual host setting in my tomcat manager. I only see the default setting
in the manager. is there any other way?

Cheers,
Clive

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 11:38 AM
To: [EMAIL PROTECTED]
Subject: Re: restart tomcat everytime I make change to servlet


using ANT or the admin webapp will let you do that.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html
- Original Message -
From: Clive Luk [EMAIL PROTECTED]
To: Filip Hanik [EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 5:24 PM
Subject: RE: restart tomcat everytime I make change to servlet


Hi Filip,

Thanks for the reply. How do I restart the context without restarting
tomcat? does that mean if i make any changes to servlet i will have to
restart something? sorry i am only new in tomcat.

Cheers,
Clive

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 10:22 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: restart tomcat everytime I make change to servlet


you will need to restart the context I believe,

but if you truly want this functionality, put your servlet code in a JSP

Filip

- Original Message -
From: Clive Luk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 5:13 PM
Subject: restart tomcat everytime I make change to servlet


Hi list,

I have come up another problem with making changes on servlet. Hope someone
can give me a hand on that. This is how I do it.

1. make changes to servlet1.java
2. javac servlet1.java
3. copy the servlet1.class to /whatever/WEB-INF/classes

The problem is I don't have any problem running tomcat. Until I overwrite an
old version of servlet with an new one. Everything seems gone wrong.

I will get HTTP status 500 to the servlet I changed.

If I reload the page again. I will get 503 Servlet servlet1 is currently
unavailable.

If I try other servlet that I didn't change I will get the same error.

Please help. Thanks in advance.

Cheers,
Clive


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



restart tomcat after making changes

2003-09-01 Thread Clive Luk
Hi list,

I am newbie in Tomcat. I just setup a tomcat on a RH9 not long ago. But I
have problem when I made changes on the .class file(after compile) under
/blah/WEB-INF/classes/ I have to restart TOMCAT or i will get the
following error message or saying JDBCChinese not found.

I had a look at the pervious post. i added the reloadable=true in the
server.xml. but still no help. Could anybody please help.

I have to run the shutdown.sh and startup.sh scripts everytime i made
changes

if you need more information please let me know. thanks in advance

Cheers,
Clive

==error message===


type Exception report

message

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

exception

javax.servlet.ServletException: Wrapper cannot find servlet class
JDBCChinese or a class it depends on
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:89
1)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:210)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:263)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:562)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
at java.lang.Thread.run(Thread.java:534)


root cause

java.lang.ClassNotFoundException: JDBCChinese
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1444)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1289)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:88
5)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:210)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at

RE: mod_jk2.so w/redhat9

2003-08-14 Thread Clive Luk
Hi Steve,

That's how i build my mod_jk2.so

i used jakarta-tomcat-connectors-4.1.26-src

you may want to do a goole search and look for
jakarta-tomcat-connectors-4.1.26-src

but i aslos complied apache2 from source using httpd-2.0.47.

chmod +x buildconf.sh
./buildconf.sh
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat41=/usr/lo
cal/jakarta-tomcat-4.1.26 --with-jave-home=/usr/local/j2sdk1.4.2
make

Cheers,
Clive

-Original Message-
From: Steve Madonna [mailto:[EMAIL PROTECTED]
Sent: Friday, 15 August 2003 3:20 PM
To: [EMAIL PROTECTED]
Subject: mod_jk2.so w/redhat9


Has anyone out there built a mod_jk2.so file for the latest RH9
httpd-2.0.40-21.3? or know where I could get one? I did a a few google
searches and looked through the archive for this list, but I can't find any
info. I'm pretty surprised, actually. I figured someone would have built one
by now? Thanks in advance for any info!

-Steve



-
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: mod_jk2.so w/redhat9

2003-08-14 Thread Clive Luk
it just build a DSO file but you need to configure apache yourself have a
look at the jakarta tomcat website. it tells your how to configure apache to
talk to tomcat

Cheers,
Clive

-Original Message-
From: Steve Madonna [mailto:[EMAIL PROTECTED]
Sent: Friday, 15 August 2003 3:33 PM
To: Tomcat Users List
Subject: RE: mod_jk2.so w/redhat9


does that build the connector directly into apache?


-Original Message-
From: Clive Luk [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 14, 2003 10:27 PM
To: Tomcat Users List
Subject: RE: mod_jk2.so w/redhat9


Hi Steve,

That's how i build my mod_jk2.so

i used jakarta-tomcat-connectors-4.1.26-src

you may want to do a goole search and look for
jakarta-tomcat-connectors-4.1.26-src

but i aslos complied apache2 from source using httpd-2.0.47.

chmod +x buildconf.sh
./buildconf.sh
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat41=/usr/lo
cal/jakarta-tomcat-4.1.26 --with-jave-home=/usr/local/j2sdk1.4.2
make

Cheers,
Clive

-Original Message-
From: Steve Madonna [mailto:[EMAIL PROTECTED]
Sent: Friday, 15 August 2003 3:20 PM
To: [EMAIL PROTECTED]
Subject: mod_jk2.so w/redhat9


Has anyone out there built a mod_jk2.so file for the latest RH9
httpd-2.0.40-21.3? or know where I could get one? I did a a few google
searches and looked through the archive for this list, but I can't find any
info. I'm pretty surprised, actually. I figured someone would have built one
by now? Thanks in advance for any info!

-Steve



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



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



RE: Problem building Tomcat Connector mod_jk2.so

2003-07-31 Thread Clive Luk
Hi Jorgen, John and Patrick,

Thanks for all your advice. I have tried all the suggestioin given. But
still no luck. I even try to re-compile apache. still the same. I have also,
remove the rpm automake, autoconf and compile and install from source. still
the same.

But one the I found is the could be a problem of something else. When I
re-compile apache. I found that it doesn't create any .so file at all under
$APACHE_HOME/modules. Could anyone tell me why I can't create any of those
.so file? Am I missing something? Thanks in advance.

Cheers,
Clive

-Original Message-
From: Jørgen Nørgaard [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 30 July 2003 7:59 PM
To: Tomcat Users List
Subject: RE: Problem building Tomcat Connector mod_jk2.so


Hi Clive,

my best idea is to try building the mod_jk2 the way I did, using
jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz:

after unpacking:
cd jk/native2/
./configure --with-apxs2=/usr/sbin/apxs2-prefork
make jk2-build-apxs

that left me the mod_jk2.so in the secret .libs directory.

Might work for you also.

How far do yo get this way?

I am on SuSE 8.1 java 1.4.1 apache2.0.46 and tomcat 4.1.24 though I
suppose that should not matter too much.

Hi Jorgen,

i have been searching all the location. but still couldn't find it. I am
using the apxs that is from apache2.0.47. i didn't use the redhat version
of
apache2. So i don't know what it is happening. the box is built freshly.
any
IDEA? this is what i use to build apache2

$
./configure --enable-ssl --with-ssl=/usr/local/ssl --enable-module=so --ena
b
le-module=vhost_alias --enable-module=proxy --enable-module=rewrite --enabl
e
-shared=proxy

I have already spent a whole day trying to build mod_jk2.so. just can't get
through. HELP!

Cheers,
Clive

-Original Message-
From: Jørgen Nørgaard [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 30 July 2003 7:33 PM
To: Tomcat Users List
Subject: Re: Problem building Tomcat Connector mod_jk2.so


Hello,


Building the connectors are a bit of a struggle, the documentation is
inconsistent and (very) sparse. Which is a pitty because
apache/tomcat are great (and tomcat 3 was so easy to build connectors
for).



That said, I managed to build a mod_jk2 connector using configure in
cd jk/native2/ like:
./configure --with-apxs2=/usr/sbin/apxs2-prefork

select the proper apxs2 for your mpm model.


A bit of searching located the module in some hidden location:
jk/native2/server/apache2/.libs/mod_jk2.so


Could this be the same for you btw?



At 19:16 +1000 30/07/03, Clive Luk wrote:
Hi all,

I am new to the list. Has anybody had problem building mod_jk2.so. I have
no
error message on building mod_jk2.so. But after i finished the following
steps. I counldn't find and *.so file.

I am useing RedHat 9
I have installed:

openssl-0.9.7b
libtool-1.5
httpd-2.0.47
j2sdk-1_4_2-linux-i586.bin
jakarta-tomcat-4.1.26

automake, autoconf, libtool are under /usr/bin

_steps I used to build mod_jk2.so_

#./buildconf.sh
#./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat41=/usr
/
l
ocal/tomcat --with-java-home=/usr/local/java
#make
__

__after make command__
#ls ../build/jk2/apache2/*.so
ls: ../build/jk2/apache2/*.so: No such file or directory
__

I can only see *.lo and *.o and

../build/jk2/apache2/mod_jk2.a
../build/jk2/apache2/mod_jk2.la
../build/jk2/apache2/mod_jk2.lo
../build/jk2/apache2/mod_jk2.o

but not mod_jk2.so

PLEASE HELP. I have tried so may different version...

Cheers,
Clive


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


--
/jørgen nørgaard
SmartTV A/S
[EMAIL PROTECTED]
Phone: +45 3332 5770
http://smarttv.dk/

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


--
/jørgen nørgaard
SmartTV A/S
[EMAIL PROTECTED]
Phone: +45 3332 5770
http://smarttv.dk/

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



Problem building Tomcat Connector mod_jk2.so

2003-07-30 Thread Clive Luk
Hi all,

I am new to the list. Has anybody had problem building mod_jk2.so. I have no
error message on building mod_jk2.so. But after i finished the following
steps. I counldn't find and *.so file.

I am useing RedHat 9
I have installed:

openssl-0.9.7b
libtool-1.5
httpd-2.0.47
j2sdk-1_4_2-linux-i586.bin
jakarta-tomcat-4.1.26

automake, autoconf, libtool are under /usr/bin

_steps I used to build mod_jk2.so_

#./buildconf.sh
#./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat41=/usr/l
ocal/tomcat --with-java-home=/usr/local/java
#make
__

__after make command__
#ls ../build/jk2/apache2/*.so
ls: ../build/jk2/apache2/*.so: No such file or directory
__

I can only see *.lo and *.o and

../build/jk2/apache2/mod_jk2.a
../build/jk2/apache2/mod_jk2.la
../build/jk2/apache2/mod_jk2.lo
../build/jk2/apache2/mod_jk2.o

but not mod_jk2.so

PLEASE HELP. I have tried so may different version...

Cheers,
Clive


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



Problem building Tomcat Connector mod_jk2.so PART 2

2003-07-30 Thread Clive Luk
Sorry for the second post.

I am trying to build from jakarta-tomcat-connectors-4.1.26-src.tar.gz.
Please let me know if you need more information.

apache2 works fine on port 80.
Tomcat works fine on port 8080.

Cheers,
Clive

-Original Message-
From: Clive Luk [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 30 July 2003 7:16 PM
To: [EMAIL PROTECTED]
Subject: Problem building Tomcat Connector mod_jk2.so


Hi all,

I am new to the list. Has anybody had problem building mod_jk2.so. I have no
error message on building mod_jk2.so. But after i finished the following
steps. I counldn't find and *.so file.

I am useing RedHat 9
I have installed:

openssl-0.9.7b
libtool-1.5
httpd-2.0.47
j2sdk-1_4_2-linux-i586.bin
jakarta-tomcat-4.1.26

automake, autoconf, libtool are under /usr/bin

_steps I used to build mod_jk2.so_

#./buildconf.sh
#./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat41=/usr/l
ocal/tomcat --with-java-home=/usr/local/java
#make
__

__after make command__
#ls ../build/jk2/apache2/*.so
ls: ../build/jk2/apache2/*.so: No such file or directory
__

I can only see *.lo and *.o and

../build/jk2/apache2/mod_jk2.a
../build/jk2/apache2/mod_jk2.la
../build/jk2/apache2/mod_jk2.lo
../build/jk2/apache2/mod_jk2.o

but not mod_jk2.so

PLEASE HELP. I have tried so may different version...

Cheers,
Clive


-
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 building Tomcat Connector mod_jk2.so

2003-07-30 Thread Clive Luk
Hi Jorgen,

i have been searching all the location. but still couldn't find it. I am
using the apxs that is from apache2.0.47. i didn't use the redhat version of
apache2. So i don't know what it is happening. the box is built freshly. any
IDEA? this is what i use to build apache2

$
./configure --enable-ssl --with-ssl=/usr/local/ssl --enable-module=so --enab
le-module=vhost_alias --enable-module=proxy --enable-module=rewrite --enable
-shared=proxy

I have already spent a whole day trying to build mod_jk2.so. just can't get
through. HELP!

Cheers,
Clive

-Original Message-
From: Jørgen Nørgaard [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 30 July 2003 7:33 PM
To: Tomcat Users List
Subject: Re: Problem building Tomcat Connector mod_jk2.so


Hello,


Building the connectors are a bit of a struggle, the documentation is
inconsistent and (very) sparse. Which is a pitty because
apache/tomcat are great (and tomcat 3 was so easy to build connectors
for).



That said, I managed to build a mod_jk2 connector using configure in
cd jk/native2/ like:
./configure --with-apxs2=/usr/sbin/apxs2-prefork

select the proper apxs2 for your mpm model.


A bit of searching located the module in some hidden location:
jk/native2/server/apache2/.libs/mod_jk2.so


Could this be the same for you btw?



At 19:16 +1000 30/07/03, Clive Luk wrote:
Hi all,

I am new to the list. Has anybody had problem building mod_jk2.so. I have
no
error message on building mod_jk2.so. But after i finished the following
steps. I counldn't find and *.so file.

I am useing RedHat 9
I have installed:

openssl-0.9.7b
libtool-1.5
httpd-2.0.47
j2sdk-1_4_2-linux-i586.bin
jakarta-tomcat-4.1.26

automake, autoconf, libtool are under /usr/bin

_steps I used to build mod_jk2.so_

#./buildconf.sh
#./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat41=/usr/
l
ocal/tomcat --with-java-home=/usr/local/java
#make
__

__after make command__
#ls ../build/jk2/apache2/*.so
ls: ../build/jk2/apache2/*.so: No such file or directory
__

I can only see *.lo and *.o and

../build/jk2/apache2/mod_jk2.a
../build/jk2/apache2/mod_jk2.la
../build/jk2/apache2/mod_jk2.lo
../build/jk2/apache2/mod_jk2.o

but not mod_jk2.so

PLEASE HELP. I have tried so may different version...

Cheers,
Clive


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


--
/jørgen nørgaard
SmartTV A/S
[EMAIL PROTECTED]
Phone: +45 3332 5770
http://smarttv.dk/

-
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 building Tomcat Connector mod_jk2.so

2003-07-30 Thread Clive Luk
It may be silly. I just want to complie the latest connector the binary
available for download is not the latest though.

Cheers,
Clive

-Original Message-
From: Collins, Jim [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 30 July 2003 7:50 PM
To: 'Tomcat Users List'
Subject: RE: Problem building Tomcat Connector mod_jk2.so


This may be a silly question but can't you just download a binary.

-Original Message-
From: Clive Luk [mailto:[EMAIL PROTECTED]
Sent: 30 July 2003 10:41
To: Tomcat Users List
Subject: RE: Problem building Tomcat Connector mod_jk2.so


Hi Jorgen,

i have been searching all the location. but still couldn't find it. I am
using the apxs that is from apache2.0.47. i didn't use the redhat version of
apache2. So i don't know what it is happening. the box is built freshly. any
IDEA? this is what i use to build apache2

$
./configure --enable-ssl --with-ssl=/usr/local/ssl --enable-module=so --enab
le-module=vhost_alias --enable-module=proxy --enable-module=rewrite --enable
-shared=proxy

I have already spent a whole day trying to build mod_jk2.so. just can't get
through. HELP!

Cheers,
Clive

-Original Message-
From: Jørgen Nørgaard [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 30 July 2003 7:33 PM
To: Tomcat Users List
Subject: Re: Problem building Tomcat Connector mod_jk2.so


Hello,


Building the connectors are a bit of a struggle, the documentation is
inconsistent and (very) sparse. Which is a pitty because
apache/tomcat are great (and tomcat 3 was so easy to build connectors
for).



That said, I managed to build a mod_jk2 connector using configure in
cd jk/native2/ like:
./configure --with-apxs2=/usr/sbin/apxs2-prefork

select the proper apxs2 for your mpm model.


A bit of searching located the module in some hidden location:
jk/native2/server/apache2/.libs/mod_jk2.so


Could this be the same for you btw?



At 19:16 +1000 30/07/03, Clive Luk wrote:
Hi all,

I am new to the list. Has anybody had problem building mod_jk2.so. I have
no
error message on building mod_jk2.so. But after i finished the following
steps. I counldn't find and *.so file.

I am useing RedHat 9
I have installed:

openssl-0.9.7b
libtool-1.5
httpd-2.0.47
j2sdk-1_4_2-linux-i586.bin
jakarta-tomcat-4.1.26

automake, autoconf, libtool are under /usr/bin

_steps I used to build mod_jk2.so_

#./buildconf.sh
#./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat41=/usr/
l
ocal/tomcat --with-java-home=/usr/local/java
#make
__

__after make command__
#ls ../build/jk2/apache2/*.so
ls: ../build/jk2/apache2/*.so: No such file or directory
__

I can only see *.lo and *.o and

../build/jk2/apache2/mod_jk2.a
../build/jk2/apache2/mod_jk2.la
../build/jk2/apache2/mod_jk2.lo
../build/jk2/apache2/mod_jk2.o

but not mod_jk2.so

PLEASE HELP. I have tried so may different version...

Cheers,
Clive


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


--
/jørgen nørgaard
SmartTV A/S
[EMAIL PROTECTED]
Phone: +45 3332 5770
http://smarttv.dk/

-
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 READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.



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




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