Filter problems

2003-02-08 Thread Manavendra Gupta
Hi,

I have a simple security filter for authentication used for a custom MVC
framework application. Everything works properly, however, if a large file
is uploaded (about 17MB), I get the error listed below. As you can see the
root cause is RTIFilter.java line 67. This line has the following code:

  next.doFilter(request, response);

Any idea why that NullPointerException exception would occur?

Thanks,
Manav.


java.lang.NullPointerException
at
com.bsil.rti.controller.FrontController.doProcess(FrontController.java:172)
at com.bsil.rti.controller.FrontController.doPost(FrontController.java:140)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at com.bsil.rti.filter.RTIFilter.doFilter(RTIFilter.java:67)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
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:2415)
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:170)
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.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
at java.lang.Thread.run(Thread.java:536)



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




compilation a prodject when tomcat is starting

2003-02-08 Thread Piotr Stanek
Hi,

I compile my prodject manualy,  remove soureces and everything is running OK. But the 
question is:

Is it possible to compile the whole prodject when tomcat is starting and remove 
prodject's source after compilation?

I use tomcat 4.1.18

Piotr




Re: Connecting PostgreSQL with JNDI

2003-02-08 Thread Sean Dockery
In your web application's Context, you need a ResourceLink to specify
that the global resource is accessible in a given context.  Look at the
example at the bottom of the page at...

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html#Resource
%20Links

--
Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

Tom Sheehan [EMAIL PROTECTED] wrote in message
00b701c2cf32$40331840$[EMAIL PROTECTED]">news:00b701c2cf32$40331840$[EMAIL PROTECTED]...
 Hello all,

 I've been trying to follow along with the JNDI-datasource examples and
seem
 to have gotten off track somewhere.  I would greatly appreciate your
having
 a look at this.  Google searches on this topic have helped, but I'm still
 lost.

 Running this dbtest.jsp doesn't generate anything in catalina.out or the
 localhost log.  Reloading the page generates some local host entries, but
 nothing that looks like an error to me.  The PostgreSQL log isn't
 complaining either.

 Thank you for considering the problem.

 Tom Sheehan




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




Re: How to avoid error-reports? -Want

2003-02-08 Thread Sean Dockery
What do you mean when you say, Tomcat creates an error report?  What
exactly do you see?

Morten Mortensen [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 Hi,

 Is it possible to avoid error reports?

 I have an application, where in some cases it is appropriate to return a
 HTTP reply code of 404, which of course can be done by setting -

   response.setStatus(HttpServletResponse.SC_NOT_FOUND);

 But then Tomcat creates an error-report and in this way MANIPULATES THE
HTTP
 REPLIES! I would wery much like to *avoid* this and have a *clean* reply
 returned!

 (Besides, I think it is a real bad habit to reveal the technology used on
 the server-side, because it is of no relevance for the user-agent -on the
 contrary, it can be harmful-...)

 How do I do this?

  -

 As far as I can tell, I can not use eror-page, because the scanario is
not
 specific for the reply-code 404, but for a range of codes. Surely, I do
 not want to specify all codes.

 What also might complicate things: The content-type request within the
HTTP
 request is not fixed to a single type.

  -

 I see, that the host-element has an attribute errorReportValveClass -
 Java class name of the error reporting valve which will be used by this
 Host. The responsability of this valve is to output error reports..

 How do I knock this out? Can I set it to the empty attribute like
 errorReportValveClass= or something?

 You are not going to say, I have to implement a valve myself? Now, THAT
 would be... lame.

  -

  ?

 Med venlig hilsen
   Morten Sabroe Mortensen
   mailto:[EMAIL PROTECTED]




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




Re: setting CATALINA_HOME

2003-02-08 Thread Bill Barker
Actually, the recommended way to go is to create
$CATALINA_HOME/bin/setenv.sh (or %CATALINA_HOME%\bin\setenv.bat on Windows).

In that file, you should set things like CATALINA_HOME,  and JAVA_HOME if
they are not already set at the O/S level.

Turner, John [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 Edit the startup files in CATALINA_HOME/bin, like startup.bat or
 catalina.bat.  Not sure which one would be best.

 John


 -Original Message-
 From: whlee [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 07, 2003 1:58 AM
 To: [EMAIL PROTECTED]
 Subject: setting CATALINA_HOME


 Dear Sir,

 Provided that i dun want to set environmental variable in my windows
system,

 but setting the environmental variable such as JAVA_HOME and CATALINA_HOME
 inside tomcat configuration, how can i achieve it?
 Also, if the value for the environmental variable is supposed an absolute
 path
 of certain foder, let say e:\tomcat2 , how can i set it in tomcat
 configuration file?

 Regards,
 Jason



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

 ---

 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003


 ---

 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003




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




Re: Tomcat does not access sub-directories.

2003-02-08 Thread Hans Deragon
Tim Moore wrote:

Is the Tomcat process running with the appropriate permissions to read
and execute the directory? ;-)



Permissions are fine.  Apache can access all the sub-directories, not Tomcat. 
 I run Tomcat as root (home project, so do not bother lecturing me. :)) so 
permissions should not be a problem.

Sigh.
Hans Deragon


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



Re: Tomcat does not access sub-directories.

2003-02-08 Thread Hans Deragon
Hans Deragon wrote:

Greetings.


  I am baffled.  I have setup the following context:

Context path= docBase=deragon debug=0/

  Now, I have the following directory:

  ..jakarta-tomcat/webapps/deragon/generic

  Tomcat renders any file under the deragon directory.  For instance,

  http://localhost:8080/index.html -
..jakarta-tomcat/webapps/deragon/index.html

  ...renders fine.  However, I cannot get 
http://localhost:8080/deragon/generic. It exist, but Tomcat reports the 
resource as being unavailable (404 error). Why is that?  What do I need 
to configure?  Another context?  Then why is this not the case with 
tomcat docs pages?  They go deap in sub-directories and Tomcat renders 
them well.  I do not understand why tomcat docs work fine with 
sub-directories, but not my deragon directory.  BTW, I am a newbie, so 
assume the most stupid mistake as a possibility.


Sincerely,
Hans Deragon


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


I believe I have found the issue.  Problems with symbolic links.  I need to 
reorganize my website.  Sorry about the query.

Sincerely,
Hans Deragon



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



Tomcat 4.1.18 and Sub Domain Name access

2003-02-08 Thread Etienne
Hi,

I made a migration from Tomcat 4.0.3 to Tomcat 4.1.18. With Tomcat 4.0.3
I never had problem with accessing sub domain name. I could load a page
using sub1.mydomaine.com or sub2.mydomaine.com. Now only mydomaine.com
works, the web page/servlet is never reach. Is there a sub-domain name
setting in Tomcat? I don't see where.


Regards, 

E.L.



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




Re: include .inc file extension problem

2003-02-08 Thread Tim Funk
Depending on the tomcat version, this might not be not needed. The 
exception occurs because unknown file extensions used by includes 
attempt to grab the ServletOutput stream. In a JSP page, a Writer is 
already being used. Therefore bad things happened.

A patch was put in to (4.1.11 and 4.0.6) to use a JSPWriter for unknown 
file extensions for includes to prevent this issue.

The bug report that caused the patch:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12771

The patch that was done:
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets/DefaultServlet.java.diff?r1=texttr1=1.57r2=texttr2=1.58diff_format=l


-Tim

Bill Barker wrote:
I agree in general.  In the mean time, you can work around it by declaring:
mime-mapping
  extensioninc/extension
  mime-typetext/plain/mime-type
/mime-mapping

in your web.xml file (or, even, in Tomcat's default web.xml file).

Austin King [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...


Hi Filip,


if it is a .inc file, don't you want to use the
static include (ie, before it gets compiled)


Good point, I meant to say, I didn't think tomcat
would be smart about file extensions, beyond resolving
jsp, servlets.

Using the include directive isn't an option in this
case as I was trying to include different foo.inc
files at runtime.

bar/foo.inc
baz/foo.inc

jsp:include page=%= barOrBaz %/

I didn't want to cloud the origional question with
this context, I just was curious why .inc is handled
differently than .txt when using jsp:include tag?

Thanks again for the insight,
Austin

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com






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




Using JasperReports with Tomcat's Xerces : NoClassDefFound exception

2003-02-08 Thread Arun Jayaprakash
Hello to all,

I am facing a strange problem while using JasperReports  Xerces with Tomcat v4.1.12. 
I found that xercesImpl.jar and xmlParserAPIs.jar were present in the common\endorsed 
folder and assumed that they would be loaded for use with my application. The 
application that I am developing, starts Tomcat before loading itself. Since the JSP 
pages compiled properly, I thought that the required classes were present in the 
classpath.

However when I execute a JasperReport function that reads from an xml file, a 
NoClassDefFound exception is thrown specifying that the class org.xml.sax.ErrorHandler 
is not found. Thinking that the version of Xerces that came with Tomcat is older than 
what JasperReports comes with, I replaced the jar files. Only to see my application 
not starting!!

I also tried adding the new jar files in the shared\lib folder - while having/removing 
the older jars in the common\endorsed folder, but it was of no use.

Can anybody tell me where I am going wrong. I tried looking through the archives but 
could not come up with anything similar (perhaps my search criteria was wrong!)

Regards,
Arun Jayaprakash.



DataSourceRealm, Exception performing authentication ?

2003-02-08 Thread Uros Kotnik
Here is the problem,

I defined DataSource in Server.xml in Context for my app like this :

Resource name=jdbc/TestDB auth=Container
type=javax.sql.DataSource/



and that connection is working OK from my test servlet like this :

  Context initCtx = new InitialContext();
  Context envCtx = (Context) initCtx.lookup(java:comp/env);
  DataSource ds = (DataSource)envCtx.lookup(jdbc/TestDB);

But when I define DataSourceRealm in Context for my app.

Realm className=org.apache.catalina.realm.DataSourceRealm debug=99

dataSourceName=jdbc/TestDB
userTable=ic_users userNameCol=login_name userCredCol=password
userRoleTable=ic_groups roleNameCol=group_name/

I tried diverse combinations of DS name like :
java:comp/env/jdbc/TestDB

But I always get an exception from
org.apache.catalina.realm.DataSourceRealm :

2003-02-08 15:35:06 DataSourceRealm[/testapp]: Exception performing
authentication
javax.naming.NameNotFoundException: Name jdbc is not bound in this
Context
at
org.apache.naming.NamingContext.lookup(NamingContext.java:811)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at
org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:463)
at
org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.j
ava:315)
at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAut
henticator.java:263)
.
.

What could be the problem ?

Thanx.




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




How to set a custom error page? Seem easy? Not really

2003-02-08 Thread Vy Ho

The question seems obvious.  Read the fine manual right?  No.  I tried 
it.  You then say, just put ... in the web.xml page.  Yes, I did it.  It 
works for the global web.xml, but not for the application level web.xml. 
I must have done something wrong or the application level does not 
allow this override (which I cannot imagine to be true).  So what's your 
expert advise on this?


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



Re: How to configure Tomcat to follow symbolic links.

2003-02-08 Thread Vy Ho
I am not sure what you mean, but under Unix, I created a symbolic link 
for a directory and it works just like a real directory.  I haven't test 
with symbolic link for file.


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



Re: How to configure Tomcat to follow symbolic links.

2003-02-08 Thread Mike Johnson
hi,

just add allowLinks=true to your context config, like:

Context path=/dealernet docBase=dealernet debug=0
reloadable=true allowLinking=true /


On Sat, 2003-02-08 at 06:58, Hans Deragon wrote:
 Greetings.
 
 
Simple question:  How to configure Tomcat to follow symbolic links?  I have 
 Tomcat 4.1.18.
 
 
 Sincerely,
 Hans Deragon
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Mike Johnson [EMAIL PROTECTED]


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




Re: Connecting PostgreSQL with JNDI

2003-02-08 Thread Tom Sheehan
Thanks Sean,

You were right.  I did not have that covered.  And, now the document you
refer to makes much more sense to me.  However, after a tomcat restart,
hitting the .jsp still fails.  I'm fairly convinced I've messed up
server.xml.  I think I'll go back and build up server.xml from the
noexamples version, referring to what I have and a clean copy of
server.xml with examples.  If there are still problems, it should be more
clear what to ask about.

catalina.out reports:

java.sql.SQLException: Cannot load JDBC driver class 'null'
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
a:529)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource
.java:312)
at foo.DBTest.init(DBTest.java:34)
at org.apache.jsp.dbtest_jsp._jspService(dbtest_jsp.java:52)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

- Original Message -
From: Sean Dockery [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, February 08, 2003 3:14 AM
Subject: Re: Connecting PostgreSQL with JNDI


 In your web application's Context, you need a ResourceLink to specify
 that the global resource is accessible in a given context.  Look at the
 example at the bottom of the page at...


http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html#Resource
 %20Links

 --
 Sean Dockery
 [EMAIL PROTECTED]
 Certified Java Web Component Developer
 Certified Delphi Programmer
 SBD Consultants
 http://www.sbdconsultants.com

 Tom Sheehan [EMAIL PROTECTED] wrote in message
 00b701c2cf32$40331840$[EMAIL PROTECTED]">news:00b701c2cf32$40331840$[EMAIL PROTECTED]...
  Hello all,
 
  I've been trying to follow along with the JNDI-datasource examples and
 seem
  to have gotten off track somewhere.  I would greatly appreciate your
 having
  a look at this.  Google searches on this topic have helped, but I'm
still
  lost.
 
  Running this dbtest.jsp doesn't generate anything in catalina.out or the
  localhost log.  Reloading the page generates some local host entries,
but
  nothing that looks like an error to me.  The PostgreSQL log isn't
  complaining either.
 
  Thank you for considering the problem.
 
  Tom Sheehan




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




Help: JNI, mod_jk2 , Apache 2 not working

2003-02-08 Thread Rahul Bhargava
Keep getting the error  from mod_jk2 about Error connecting to tomcat 12

Using Apache 2.0.44 with Tomcat 4.1.18 on Win2K. Checked my config 1000 times 
everything looks
good. Is this a know issue ? Is there ant doc/reference on workers2.properties ? 

Attached are my config files.

[Sat Feb 08 00:14:04 2003] [notice] Parent: Created child process 3316
Apache.exe: Could not determine the server's fully qualified domain name, using
192.168.1.2 for ServerName
[Sat Feb 08 00:14:04 2003] [error] shm.init(): No file
[Sat Feb 08 00:14:04 2003] [notice] Child 3316: Child process is running
[Sat Feb 08 00:14:04 2003] [notice] jk2_init() Found child 3316 in scoreboard sl
ot 0
[Sat Feb 08 00:14:04 2003] [notice] vm.init(): Jni lib: C:\Program Files\Java\j2
re1.4.1_01\bin\client\jvm.dll
[Sat Feb 08 00:14:04 2003] [notice] vm.open2() done
[Sat Feb 08 00:14:04 2003] [notice] jni.validate() class= org/apache/jk/apr/Tomc
atStarter
[Sat Feb 08 00:14:04 2003] [notice] Loaded org/apache/jk/apr/TomcatStarter
[Sat Feb 08 00:14:05 2003] [notice] jni.init() setting stdout=C:/servers/Apache2
/logs/stdout.log...
[Sat Feb 08 00:14:05 2003] [notice] jni.init() setting stderr=C:/servers/Apache2
/logs/stderr.log...
[Sat Feb 08 00:14:05 2003] [notice] jni.init() ARG start
[Sat Feb 08 00:14:05 2003] [notice] jni.init() calling main()...
[Sat Feb 08 00:14:05 2003] [notice] jni.validate() class= org/apache/jk/apr/Tomc
atStarter
[Sat Feb 08 00:14:05 2003] [notice] Loaded org/apache/jk/apr/TomcatStarter
[Sat Feb 08 00:14:05 2003] [notice] jni.init() disabling the non init hook worker
[Sat Feb 08 00:14:05 2003] [error] shm.init(): No file
[Sat Feb 08 00:14:05 2003] [notice] workerEnv.init() ok C:/servers/Apache2/conf/
workers2.properties
[Sat Feb 08 00:14:06 2003] [error] mod_jk child init 1 0
[Sat Feb 08 00:14:06 2003] [notice] Child 3316: Acquired the start mutex.
[Sat Feb 08 00:14:06 2003] [notice] Child 3316: Starting 250 worker threads.
[Sat Feb 08 00:14:45 2003] [error] workerEnv.init() create slot epStat.0 failed
[Sat Feb 08 00:14:45 2003] [error] lb.service() worker failed 12 for ajp13:j
ni
[Sat Feb 08 00:14:45 2003] [error] lb.service() unrecoverable error...
[Sat Feb 08 00:14:45 2003] [notice] vm.detach() ok
[Sat Feb 08 00:14:45 2003] [error] mod_jk.handler() Error connecting to tomcat 1
2
[Sat Feb 08 00:14:47 2003] [notice] lb.getWorker() All workers in error state, u
se the one with oldest error
[Sat Feb 08 00:14:47 2003] [error] workerEnv.init() create slot epStat.0 failed
[Sat Feb 08 00:14:47 2003] [error] lb.service() worker failed 12 for ajp13:j
ni
[Sat Feb 08 00:14:47 2003] [error] lb.service() unrecoverable error...
[Sat Feb 08 00:14:47 2003] [notice] vm.detach() ok
[Sat Feb 08 00:14:47 2003] [error] mod_jk.handler() Error connecting to tomcat 1
2
__




Help: JNI, mod_jk2 , Apache 2 not working

2003-02-08 Thread Rahul Bhargava





Re-posting with the relevant files 
attached.

Keep getting the error from 
mod_jk2 about Error connecting to tomcat 12. 

Using Apache 2.0.44 with Tomcat 
4.1.18 on Win2K. Checked my config 1000 times everything looks
good. Is this a know issue ? Is there 
ant doc/reference on workers2.properties ? 

Attached are my config 
files.

[Sat Feb 08 00:14:04 2003] [notice] 
Parent: Created child process 3316Apache.exe: Could not determine the 
server's fully qualified domain name, using192.168.1.2 for 
ServerName[Sat Feb 08 00:14:04 2003] [error] shm.init(): No file[Sat Feb 
08 00:14:04 2003] [notice] Child 3316: Child process is running[Sat Feb 08 
00:14:04 2003] [notice] jk2_init() Found child 3316 in scoreboard slot 
0[Sat Feb 08 00:14:04 2003] [notice] vm.init(): Jni lib: C:\Program 
Files\Java\j2re1.4.1_01\bin\client\jvm.dll[Sat Feb 08 00:14:04 2003] 
[notice] vm.open2() done[Sat Feb 08 00:14:04 2003] [notice] jni.validate() 
class= org/apache/jk/apr/TomcatStarter[Sat Feb 08 00:14:04 2003] 
[notice] Loaded org/apache/jk/apr/TomcatStarter[Sat Feb 08 00:14:05 2003] 
[notice] jni.init() setting 
stdout=C:/servers/Apache2/logs/stdout.log...[Sat Feb 08 00:14:05 2003] 
[notice] jni.init() setting 
stderr=C:/servers/Apache2/logs/stderr.log...[Sat Feb 08 00:14:05 2003] 
[notice] jni.init() ARG start[Sat Feb 08 00:14:05 2003] [notice] jni.init() 
calling main()...[Sat Feb 08 00:14:05 2003] [notice] jni.validate() class= 
org/apache/jk/apr/TomcatStarter[Sat Feb 08 00:14:05 2003] [notice] 
Loaded org/apache/jk/apr/TomcatStarter[Sat Feb 08 00:14:05 2003] [notice] 
jni.init() disabling the non init hook worker
[Sat Feb 08 00:14:05 2003] [error] 
shm.init(): No file[Sat Feb 08 00:14:05 2003] [notice] workerEnv.init() ok 
C:/servers/Apache2/conf/workers2.properties[Sat Feb 08 00:14:06 2003] 
[error] mod_jk child init 1 0[Sat Feb 08 00:14:06 2003] [notice] Child 3316: 
Acquired the start mutex.[Sat Feb 08 00:14:06 2003] [notice] Child 3316: 
Starting 250 worker threads.[Sat Feb 08 00:14:45 2003] [error] 
workerEnv.init() create slot epStat.0 failed[Sat Feb 08 00:14:45 2003] 
[error] lb.service() worker failed 12 for ajp13:jni[Sat Feb 08 
00:14:45 2003] [error] lb.service() unrecoverable error...[Sat Feb 08 
00:14:45 2003] [notice] vm.detach() ok[Sat Feb 08 00:14:45 2003] [error] 
mod_jk.handler() Error connecting to tomcat 12[Sat Feb 08 00:14:47 
2003] [notice] lb.getWorker() All workers in error state, use the one with 
oldest error[Sat Feb 08 00:14:47 2003] [error] workerEnv.init() create slot 
epStat.0 failed[Sat Feb 08 00:14:47 2003] [error] lb.service() worker failed 
12 for ajp13:jni[Sat Feb 08 00:14:47 2003] [error] lb.service() 
unrecoverable error...[Sat Feb 08 00:14:47 2003] [notice] vm.detach() 
ok[Sat Feb 08 00:14:47 2003] [error] mod_jk.handler() Error 
connecting to tomcat 12
__
_Rahul 
Bhargava
Server port=8006 shutdown=SHUTDOWN debug=99
  !-- Global JNDI resources --
  GlobalNamingResources

!-- 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
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

  !-- A Service is a collection of one or more Connectors that share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Tomcat-Standalone

!-- A Connector represents an endpoint by which requests are received
 and responses are returned.  Each Connector passes requests on to the
 associated Container (normally an Engine) for processing.

 By default, a non-SSL HTTP/1.1 Connector is established on port 5003.
 You can also enable an SSL HTTP/1.1 Connector on port 8443 by
 following the instructions below and uncommenting the second Connector
 entry.  SSL support requires the following steps (see the SSL Config
 HOWTO in the Tomcat 4.0 documentation bundle for more detailed
 instructions):
 * Download and install JSSE 1.0.2 or later, and put the JAR files
   into $JAVA_HOME/jre/lib/ext.
 * Execute:
 %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
 $JAVA_HOME/bin/keytool 

form based auth problem when disallowing cookies

2003-02-08 Thread mech
Hi,

I'm using Tomcat 4.1.18 with a form based auth method. 
My login.jsp is in a directory context/login/ and for that directory
I've also set a security contraint which switches to https for logon
(and stays in https, of course)

I have no problem when I use cookies, but I see a bit strange behaviour
if I don't use cookies:

1. Surf around the webapp. sessionid is generated and attached to url
via url rewriting
2. Click login link and load login.jsp. Simultaniously switching to
https.
3. Still same sessionid in the url as before. login form screen prompts
4. I use correct username/password to login. I see no error, but the
sessionid got changed in the url and the login form is prompted again
and i'm not yet in!
5. If I login again, I keep the new sessionid and can continue as
normal and finally login is sucessful.


Step 4 is different to what I have with cookies. I don't need to login
twice. And the sessionid that is in the cookie also stays the same
before and after.


So actually my previous session also gets destroyed after logon and I
couldn't take my session beans (for example a shopping cart) into https
while using url rewriting for session tracking. If I use cookies, that's
possible.

Any ideas what I do wrong, is this a bug (if yes, in my webapp or
Tomcat) or is it a wanted security thing that you can't grab someone's
session id from the url, for example to manipulate the session from a
second http browser window after a https logon was done in another
window?!

Thx
Michael




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




Re: Filter problems

2003-02-08 Thread Craig R. McClanahan


On Sat, 8 Feb 2003, Manavendra Gupta wrote:

 Date: Sat, 8 Feb 2003 14:12:38 -0800
 From: Manavendra Gupta [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Filter problems

 Hi,

 I have a simple security filter for authentication used for a custom MVC
 framework application. Everything works properly, however, if a large file
 is uploaded (about 17MB), I get the error listed below. As you can see the
 root cause is RTIFilter.java line 67. This line has the following code:

   next.doFilter(request, response);

 Any idea why that NullPointerException exception would occur?


If the next variable were null when this statement was executed, you'd
get an NPE.  But, according to your stack trace, that is *not* where the
NPE actually happened -- it's at line 172 of FrontController, in the
doProcess() method.

 Thanks,
 Manav.


Craig


 
 java.lang.NullPointerException
 at
 com.bsil.rti.controller.FrontController.doProcess(FrontController.java:172)
 at com.bsil.rti.controller.FrontController.doPost(FrontController.java:140)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 FilterChain.java:247)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.java:193)
 at com.bsil.rti.filter.RTIFilter.doFilter(RTIFilter.java:67)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 FilterChain.java:213)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.java:193)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
 va:260)
 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:2415)
 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:170)
 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.coyote.http11.Http11Processor.process(Http11Processor.java:432)
 at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
 ction(Http11Protocol.java:386)
 at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
 a:530)
 at java.lang.Thread.run(Thread.java:536)



 -
 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: Tomcat 4.1.18 and Sub Domain Name access

2003-02-08 Thread Etienne
Hi, 

Sorry for the last email, the problem is elsewhere.

E.L.


-Original Message-
From: Etienne [mailto:[EMAIL PROTECTED]] 
Sent: February 8, 2003 8:28 AM
To: 'Tomcat Users List'
Subject: Tomcat 4.1.18 and Sub Domain Name access

Hi,

I made a migration from Tomcat 4.0.3 to Tomcat 4.1.18. With Tomcat 4.0.3
I never had problem with accessing sub domain name. I could load a page
using sub1.mydomaine.com or sub2.mydomaine.com. Now only mydomaine.com
works, the web page/servlet is never reach. Is there a sub-domain name
setting in Tomcat? I don't see where.


Regards, 

E.L.



-
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: JNI, mod_jk2 , Apache 2 not working

2003-02-08 Thread jcubic
I just got Apache 2.0.44 and Tomat 4.1 working with a little twist. I think
we are trying to accomplish the same thing. I think server.xml is not the
culprit. jk2.properties and worker2.properties are. Also web.xml in Tomcat
home as well as the webapp could affect servlet and jps execution. What do
your jk2.properties and worker2.propeties look like?

My problem is that I cannot get Tomcat fired up properly from Apache without
first running Tomcat manually. I keep on getting 'HTTP Status 503 - Servlet
invoker is currently unavailable' error if I don't run Tomcat first. Of
course this would defeat the purpose of using Tomcat as worker from Apache.

My other problem is that I cannot get org/apache/jk/apr/TomcatStarter
started properly unless I specify whole bunch of jar files using classpath
in [vm:] directory. It looks like jvm that Apache runs have trouble with
class path in my environment. But I don't know how to set it. I am
interested in knowing how you get TomcatStarter working.

Other than those 2 problems, my Apache can serve up html, jsp, as well as
servlet in my webapp fine.

Jimmy
Redmond, Washington


[jcubic]  -Original Message-
From: Rahul Bhargava [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 08, 2003 8:59 AM
To: [EMAIL PROTECTED]
Subject: Help: JNI, mod_jk2 , Apache 2 not working


  Re-posting with the relevant files attached.

  Keep getting the error  from mod_jk2 about Error connecting to tomcat
12.

  Using Apache 2.0.44 with Tomcat 4.1.18 on Win2K. Checked my config 1000
times everything looks
  good. Is this a know issue ? Is there ant doc/reference on
workers2.properties ?

  Attached are my config files.

  [Sat Feb 08 00:14:04 2003] [notice] Parent: Created child process 3316
  Apache.exe: Could not determine the server's fully qualified domain name,
using
  192.168.1.2 for ServerName
  [Sat Feb 08 00:14:04 2003] [error] shm.init(): No file
  [Sat Feb 08 00:14:04 2003] [notice] Child 3316: Child process is running
  [Sat Feb 08 00:14:04 2003] [notice] jk2_init() Found child 3316 in
scoreboard sl
  ot 0
  [Sat Feb 08 00:14:04 2003] [notice] vm.init(): Jni lib: C:\Program
Files\Java\j2
  re1.4.1_01\bin\client\jvm.dll
  [Sat Feb 08 00:14:04 2003] [notice] vm.open2() done
  [Sat Feb 08 00:14:04 2003] [notice] jni.validate() class=
org/apache/jk/apr/Tomc
  atStarter
  [Sat Feb 08 00:14:04 2003] [notice] Loaded org/apache/jk/apr/TomcatStarter
  [Sat Feb 08 00:14:05 2003] [notice] jni.init() setting
stdout=C:/servers/Apache2
  /logs/stdout.log...
  [Sat Feb 08 00:14:05 2003] [notice] jni.init() setting
stderr=C:/servers/Apache2
  /logs/stderr.log...
  [Sat Feb 08 00:14:05 2003] [notice] jni.init() ARG start
  [Sat Feb 08 00:14:05 2003] [notice] jni.init() calling main()...
  [Sat Feb 08 00:14:05 2003] [notice] jni.validate() class=
org/apache/jk/apr/Tomc
  atStarter
  [Sat Feb 08 00:14:05 2003] [notice] Loaded org/apache/jk/apr/TomcatStarter
  [Sat Feb 08 00:14:05 2003] [notice] jni.init() disabling the non init hook
worker
  [Sat Feb 08 00:14:05 2003] [error] shm.init(): No file
  [Sat Feb 08 00:14:05 2003] [notice] workerEnv.init() ok
C:/servers/Apache2/conf/
  workers2.properties
  [Sat Feb 08 00:14:06 2003] [error] mod_jk child init 1 0
  [Sat Feb 08 00:14:06 2003] [notice] Child 3316: Acquired the start mutex.
  [Sat Feb 08 00:14:06 2003] [notice] Child 3316: Starting 250 worker
threads.
  [Sat Feb 08 00:14:45 2003] [error] workerEnv.init() create slot epStat.0
failed
  [Sat Feb 08 00:14:45 2003] [error] lb.service() worker failed 12 for
ajp13:j
  ni
  [Sat Feb 08 00:14:45 2003] [error] lb.service() unrecoverable error...
  [Sat Feb 08 00:14:45 2003] [notice] vm.detach() ok
  [Sat Feb 08 00:14:45 2003] [error] mod_jk.handler() Error connecting to
tomcat 1
  2
  [Sat Feb 08 00:14:47 2003] [notice] lb.getWorker() All workers in error
state, u
  se the one with oldest error
  [Sat Feb 08 00:14:47 2003] [error] workerEnv.init() create slot epStat.0
failed
  [Sat Feb 08 00:14:47 2003] [error] lb.service() worker failed 12 for
ajp13:j
  ni
  [Sat Feb 08 00:14:47 2003] [error] lb.service() unrecoverable error...
  [Sat Feb 08 00:14:47 2003] [notice] vm.detach() ok
  [Sat Feb 08 00:14:47 2003] [error] mod_jk.handler() Error connecting to
tomcat 1
  2
  __

  _
  Rahul Bhargava



Re: DataSourceRealm, Exception performing authentication ?

2003-02-08 Thread Sean Dockery
Did you declare the Realm after your Resource or before it?


--
Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

Uros Kotnik [EMAIL PROTECTED] wrote in message
017501c2cf7f$9684b170$[EMAIL PROTECTED]">news:017501c2cf7f$9684b170$[EMAIL PROTECTED]...
 Here is the problem,

 I defined DataSource in Server.xml in Context for my app like this :

 Resource name=jdbc/TestDB auth=Container
 type=javax.sql.DataSource/
 
 

 and that connection is working OK from my test servlet like this :

   Context initCtx = new InitialContext();
   Context envCtx = (Context) initCtx.lookup(java:comp/env);
   DataSource ds = (DataSource)envCtx.lookup(jdbc/TestDB);

 But when I define DataSourceRealm in Context for my app.

 Realm className=org.apache.catalina.realm.DataSourceRealm debug=99

 dataSourceName=jdbc/TestDB
 userTable=ic_users userNameCol=login_name userCredCol=password
 userRoleTable=ic_groups roleNameCol=group_name/

 I tried diverse combinations of DS name like :
 java:comp/env/jdbc/TestDB

 But I always get an exception from
 org.apache.catalina.realm.DataSourceRealm :

 2003-02-08 15:35:06 DataSourceRealm[/testapp]: Exception performing
 authentication
 javax.naming.NameNotFoundException: Name jdbc is not bound in this
 Context
 at
 org.apache.naming.NamingContext.lookup(NamingContext.java:811)
 at
 org.apache.naming.NamingContext.lookup(NamingContext.java:194)
 at
 org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:463)
 at
 org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.j
 ava:315)
 at
 org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAut
 henticator.java:263)
 .
 .

 What could be the problem ?

 Thanx.






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




Re: Shutdown problems with malformed reply from SOCKS server

2003-02-08 Thread Hugh Field-Richards
Jeff

I have just come to the same conclusion myself after much
fiddling with the system and a complete disk backup and
restore onto a clean disk :-( It is definitely the SOCKS proxy
setting. Many thanks for the confirmation of this.

Hugh


On Thursday, January 30, 2003, at 06:53  pm, Jeff Self wrote:



Hugh,
I've run into the same problem here. Yesterday afternoon, I could run 
my
jsp at home but at work with my work's network settings, it wouldn' 
run.
I was getting the malformed socket error as well. I realized that I had
configured my proxy settings to include settings for SOCKS. I removed
the setting and now my jsp's are working with my work network settings.
So see if you have SOCKS configured in your proxy settings.

--
Jeff Self
Information Technology Analyst
City of Newport News
Personnel Department Suite 200
700 Town Center Drive
Newport News, VA 23606
757-926-1810


-
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: How to configure Tomcat to follow symbolic links.

2003-02-08 Thread Hans Deragon
Mike Johnson wrote:

hi,

just add allowLinks=true to your context config, like:

Context path=/dealernet docBase=dealernet debug=0
reloadable=true allowLinking=true /


Tried, but does not work.  I have the following:

lrwxrwxrwx1 root root9 Feb  8 10:33 aaa - graphics/
drwxr-xr-x5 root root 4096 Feb  8 09:30 graphics/

Yet, http://localhost:8080/graphics/ works, but http://localhost:8080/aaa/ 
does not (404 error, resource unavailable).  The context used is:

Context path= docBase=deragon debug=0 allowLinking=true/

Where deragon contains both the aaa link and graphics directory.  Tomcat 
4.1.18 being used.


Sincerely,
Hans Deragon



On Sat, 2003-02-08 at 06:58, Hans Deragon wrote:


Greetings.


  Simple question:  How to configure Tomcat to follow symbolic links?  I have 
Tomcat 4.1.18.


Sincerely,
Hans Deragon


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




Accessing Singleton

2003-02-08 Thread Joe
Hi,

What would be the best way to access a singleton
running in the JVM that runs Tomcat?

What I have is this:

The classes in question are singleton because they
take a huge amount of time to start up but little to
call methods.

Tomcat contains one webapp, that has those singletons
running (among others) so each request (SOAP) doesn't
have to wait ages for a new instance of that class to
be created.

I need to be able to access the running singleton from
the console on the same machine as tomcat is running.
IE tomcat is running, I open up the console and run
bat file which calls a class which loads the singleton
and calls a few methods on it.

However, calling java MyMaintainanceClass will create
a new JVM wont it? Therefore it will not call the
singleton running in tomcat. What would be the best
way to approach this problem?

Thanks,
Joe



__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




deploying simple servlet

2003-02-08 Thread colin diggensworth

Hi, I am running Tomcat version 4.1 with JDK1.3.1 onWin98. I can run all the Tomcat 
examples servlets no problem. I am trying to run a simple servlet. I do the following: 

(1)Write a simple Servlet called HelloWorld 

(2)I compile the servlet and put it in under webapps/Root/Web-Inf/classes. 

(3)I start Tomcat. My understanding is that Tomcat finds any new servlet classes 
automatically - I could be wrong here. 

(4) I type the following URL in my Web browser 
http://localhost:8080/servlet/HelloWorld I get the http 404 resource not found error 
message. 

I would like to know 

(1) Is there anything else I have to do so that Tomcat knows that there is a new 
Servlet - update some .xml file or something 

(2) Is there anyway I can make check to see what Servlets Tomcat has loaded? 

(3) Is there anything else I have to do to make sure the webbrowser can see the 
servlet? 

Remember I can access all example servlet without a problem so I am confident my 
references to JDK etc. which Tomcat must have are all okay. Many Thanks CD



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


mod_jk2 AGAIN

2003-02-08 Thread Frank Liu

http://www.pubbitch.org/jboss/mod_jk2.html talks about mod_jk2
and apache2, tomcat4.0.4 I have several questions:
1) Can I skip step 5-7 in that document if I use tomcat 4.1.18?
   Or do I still need to compile the jtc.jar and replace several
   tomcat jars as described in step 6.
2) uri mapping is defined in workers2.properties as described in step 12.
   If I have VirtualHost in apache, and want the uri mapping ONLY for
   one of the virtualhost, the method in step 12 apparently won't work.
   How to do that?

Thanks!


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




RH 8.0 Tomcat 4.1.18 and Apache 2.0.43

2003-02-08 Thread Tom Holmes Jr.
I got Apache 2.0.43 and Tomcat 4.1.18 working with jk2 on my Windows 2K
Advanced Server, and I got all the virtual hosts working.  I am now trying
to get SSI (server-side includes) to work though I followed all the
directions, but that is a minor issue for me right now.

I also have RH Linux 8.0 and it works great (I am a Linux newbie).   RH 8.0
already has Apache 2.0 installed, but I am not sure which version it is,
though I could find out.  It looks like the HTML files reside in
/var/www/html although thr server itself lives under /etc/httpd and not in
/usr/local/apache2

Now I installed tomcat 4.1.18 and with the startup script it works fine by
itself, and all the examples work.  I copied over my config files for
Apache2 and Tomcat and I just had this one question.

On my Windows 2000 box, Apache runs as an NT Service and the Jk2 properties
file is setup to run in-process ... hence all I have to do is restart
Apache2 with the Apache monitor and Tomcat starts as well running in the
background.

So, should I do this in Linux?  Should I run Tomcat first and then run
Apache afterwards?  If you can help me, or lead me to a helpful How-To or
web-site or web-page, please let me know.

Thanks.

 Tom


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




Re: How to configure Tomcat to follow symbolic links.

2003-02-08 Thread Sean Dockery
I believe that there is more to this than that.

allowLinking is a property of org.apache.naming.resources.FileDirContext,
not org.apache.catalina.core.StandardContext.  FileDirContext is the default
class for a Resources declaration--of which Context must be the parent.

So, you would start with this...

Context path=/dealernet docBase=dealernet ... 

  Resources className=org.apache.naming.resources.FileDirContext
caseSensitive=true
allowLinking=true
docBase=dealernet/ !-- if declared like this, does it allow
symlinking everywhere? --

/Context

and from there... I'm not sure.  (I've never done this before--I'm just
trying to figure it out based on what I've read and materials that can be
found on the Jakarta web site.)

--
Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

Hans Deragon [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Mike Johnson wrote:
  hi,
 
  just add allowLinks=true to your context config, like:
 
  Context path=/dealernet docBase=dealernet debug=0
  reloadable=true allowLinking=true /

 Tried, but does not work.  I have the following:

 lrwxrwxrwx1 root root9 Feb  8 10:33 aaa - graphics/
 drwxr-xr-x5 root root 4096 Feb  8 09:30 graphics/

 Yet, http://localhost:8080/graphics/ works, but http://localhost:8080/aaa/
 does not (404 error, resource unavailable).  The context used is:

 Context path= docBase=deragon debug=0 allowLinking=true/

 Where deragon contains both the aaa link and graphics directory.  Tomcat
 4.1.18 being used.


 Sincerely,
 Hans Deragon

 
 
  On Sat, 2003-02-08 at 06:58, Hans Deragon wrote:
 
 Greetings.
 
 
Simple question:  How to configure Tomcat to follow symbolic links?
I have
 Tomcat 4.1.18.
 
 
 Sincerely,
 Hans Deragon
 
 
 -
 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]




DEPLOY Command

2003-02-08 Thread Alberto Magalhaes
Hi,
why when i try to make:
http://127.0.0.1:8080/manager/deploy?path=/examples,
it gives an error:

FAIL - Unknown command /deploy

Thanks
AAM




Re: Accessing Java Classes

2003-02-08 Thread Steve Burrus
Hi Brian, or Bio Jazz. Ya, I am wondering about the very same thing that you are now 
agonizing about! Re. putting your classes that you need to execute a jsp/servlet in 
the Tomcat container  is a long-time problem of mine! I am still trying to learn the 
fine art of packaging up classes, lemme tell you.


Re: mod_jk2 AGAIN

2003-02-08 Thread Lajos
Frank -

On Question 1, yes, you can skip those steps with 4.1.18. Don't know 
about # 2, though.

Lajos


Frank Liu wrote:
http://www.pubbitch.org/jboss/mod_jk2.html talks about mod_jk2
and apache2, tomcat4.0.4 I have several questions:
1) Can I skip step 5-7 in that document if I use tomcat 4.1.18?
   Or do I still need to compile the jtc.jar and replace several
   tomcat jars as described in step 6.
2) uri mapping is defined in workers2.properties as described in step 12.
   If I have VirtualHost in apache, and want the uri mapping ONLY for
   one of the virtualhost, the method in step 12 apparently won't work.
   How to do that?

Thanks!


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





--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)

   _  _
  / \ /
 /___\  /
/ \   /

 http://www.galatea.com -- powered by AzSSL


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




Re: Tomcat exploding 1.4.1 JVM

2003-02-08 Thread Jacob Kjome

I haven't seen that one, but I did get this one once.  Can't reproduce it, 
though

Running under Win2k SP3 on a 2ghz AMD Athalon wth 512m RAM

Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D5A19BB
Function=JVM_FindSignal+0x3C19B
Library=C:\j2sdk1.4.1_01\jre\bin\server\jvm.dll

Current Java thread:
at java.util.Calendar.internalSet(Calendar.java:965)
at 
java.util.GregorianCalendar.computeFields(GregorianCalendar.java:1341)
at java.util.Calendar.setTimeInMillis(Calendar.java:927)
at java.util.Date.getField(Date.java:1150)
- locked 042A0A08 (a java.util.GregorianCalendar)
at java.util.Date.getMinutes(Date.java:768)
at java.sql.Timestamp.toString(Timestamp.java:248)
at org.apache.catalina.logger.FileLogger.log(FileLogger.java:276)
at 
org.apache.catalina.core.ApplicationContext.internalLog(ApplicationContext.java:828)
at 
org.apache.catalina.core.ApplicationContext.log(ApplicationContext.java:820)
at 
org.apache.catalina.core.ApplicationContextFacade.log(ApplicationContextFacade.java:200)
at 
org.enhydra.xml.xmlc.servlet.ServletXMLCLogger.logDebug(ServletXMLCLogger.java:159)
at 
org.enhydra.xml.xmlc.deferredparsing.DocumentLoaderImpl.checkCacheEntry(DocumentLoaderImpl.java:185)
at 
org.enhydra.xml.xmlc.deferredparsing.DocumentLoaderImpl.getDocument(DocumentLoaderImpl.java:219)
at xmlc.demo.WelcomeHTML.buildDocument(WelcomeHTML.java:104)
at xmlc.demo.WelcomeHTML.init(WelcomeHTML.java:84)
at xmlc.demo.WelcomeHTML.init(WelcomeHTML.java:96)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at 
org.enhydra.xml.xmlc.deferredparsing.XMLCDeferredParsingFactory.createObject(XMLCDeferredParsingFactory.java:131)
at 
org.enhydra.xml.xmlc.deferredparsing.XMLCDeferredParsingFactory.doCreate(XMLCDeferredParsingFactory.java:153)
at 
org.enhydra.xml.xmlc.deferredparsing.XMLCDeferredParsingFactory.doCreate(XMLCDeferredParsingFactory.java:170)
at org.enhydra.xml.xmlc.XMLCStdFactory.create(XMLCStdFactory.java:121)
at xmlc.demo.ReloadTest.service(ReloadTest.java:25)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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:2415)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 

trouble to run servlet

2003-02-08 Thread Jianping Zhu
I have redhat 7.3 with apach tomcat running on it
I put HelloServlet on following directoy:
usr/local/jwsdp-1_0_01/server/webapps/admin/WEB-INF/classes/HelloServlet.class

Then i try http://mango.ctegd.uga.edu/servlet/HelloServlet; to invoke the
servlet. but failed 
in error_log i got:
[Sat Feb  8 22:19:07 2003] [error] [client 128.193.47.116] File does not
exist: /var/www/mango.ctegd.uga.edu/html/servlet/HelloServlet


Why? how can i fix this problem?

Thanks


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




Apache vhost + Tomcat sharing the same document root

2003-02-08 Thread c.davies

Hi,

I had a problem with getting Apache and Tomcat to share the same document root
cleanly, with Apache serving requests that were outside Tomcat's perview (e.g.
static pages, PHP).

Essentially, I have a system with Apache2 doing name based vhosting, with a tree
that looks something like this:

DocumentRoot - /www
Customer1 DocumentRoot - /www/cust1
Customer2 DocumentRoot - /www/cust2
...


and I wanted each customer to be able to place a JSP page anywhere in their
portion of the tree and have Apache pass the request to Tomcat. I only wanted a
single instance of Tomcat running at one time.

My question is, is this possible to do with mod_jk?

My current solution is to use mod_webapp, which I hacked up to be a little more
selective, so I have for each vhost an entry like this in httpd.conf:

VirtualHost *
DocumentRoot /www/custX
ServerName foo.bar.baz:80
...
WebAppDeploy custX warpConnection /
/VirtualHost

But have mod_webapp return(DECLINED) if the request uri doesn't end in .jsp.
Is this the best way to do it, and if so should I formalize it into a patch
against the latest mod_webapp, with a new configuration directive?

Sorry for the rambling nature of my question, and thanks in advance,
C.Davies




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




War files / codeBase and security permissions (v4.0.4)

2003-02-08 Thread Kenneth J Baker

I'm deploying a war file with unpackWARs=false.  I am trying to grant
permissions to this war in 04webapps.policy.

Here is what I've tried...

Given the examples this is what I would expect to work but doesn't:
grant codeBase file:${catalina.home}/webapps/iface.war!/- {
permission java.security.AllPermission;
};


This doesn't work (but works if unpackWARs=true):
grant codeBase file:${catalina.home}/webapps/iface/- {
permission java.security.AllPermission;
};


This works because this is where tomcat extracts the war to (with unpackWARs set to 
false)
grant codeBase file:${catalina.home}/work/Standalone/localhost/iface/- {
permission java.security.AllPermission;
};


What is the correct way to specify permissions to give to a war file?

Thanks,
Ken


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




Re: Apache vhost + Tomcat sharing the same document root

2003-02-08 Thread Lajos
Hi C. Davies -

I can't help you with mod_webapp, which I avoid like the plague, but it 
would certainly work with mod_jk. Each Apache VirtualHost block should 
contain a JkMount something like this:

JkMount /*.jsp ajp13

which means that any page ending in *.jsp will be passed to Tomcat. 
Then, in Tomcat, you can have one Host tag, with its docBase pointing 
to /www, and two Contexts - cust1 and cust2.


Regards,

Lajos


[EMAIL PROTECTED] wrote:
Hi,

I had a problem with getting Apache and Tomcat to share the same document root
cleanly, with Apache serving requests that were outside Tomcat's perview (e.g.
static pages, PHP).

Essentially, I have a system with Apache2 doing name based vhosting, with a tree
that looks something like this:

DocumentRoot - /www
Customer1 DocumentRoot - /www/cust1
Customer2 DocumentRoot - /www/cust2
...


and I wanted each customer to be able to place a JSP page anywhere in their
portion of the tree and have Apache pass the request to Tomcat. I only wanted a
single instance of Tomcat running at one time.

My question is, is this possible to do with mod_jk?

My current solution is to use mod_webapp, which I hacked up to be a little more
selective, so I have for each vhost an entry like this in httpd.conf:

VirtualHost *
DocumentRoot /www/custX
ServerName foo.bar.baz:80
...
WebAppDeploy custX warpConnection /
/VirtualHost

But have mod_webapp return(DECLINED) if the request uri doesn't end in .jsp.
Is this the best way to do it, and if so should I formalize it into a patch
against the latest mod_webapp, with a new configuration directive?

Sorry for the rambling nature of my question, and thanks in advance,
C.Davies




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





--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)

   _  _
  / \ /
 /___\  /
/ \   /

 http://www.galatea.com -- powered by AzSSL


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




mod_jk2 and apache13

2003-02-08 Thread liug
mod_jk2 (tomcat 4.1.18) seems to compile fine with apache13,
but only mod_jk2.so is generated. There is no libjkjni.so.
Is that a problem? Is libjkjni.so really needed? The mod_jk2
works fine without it in my test.

BTW, what is this jni thing in the jk2 connector? I understand
we already have TCP/IP Socket and Unix domain Socket. is jni
a third connection type? What's the benefit?

Thanks!




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




Re: DEPLOY Command

2003-02-08 Thread Jacob Kjome

2 things..

1.  the deploy command uses the HTTP PUT method.  No browser out there 
supports this.  You need to use the Catalina Ant tasks to run 
deploy.  What you want is install.

2. Tomcat-4.1.19 had the manager app retooled.  In the process, the servlet 
mapping for the deploy command was not added to the web.xml.  To enable it, 
add the mapping.  I reported the a bug on this and it has been 
fixed.  Versions of Tomcat later than 4.1.19 will have the fix applied.

Jake

At 10:48 PM 2/8/2003 +, you wrote:
Hi,
why when i try to make:
http://127.0.0.1:8080/manager/deploy?path=/examples,
it gives an error:

FAIL - Unknown command /deploy

Thanks
AAM



Re: Apache vhost + Tomcat sharing the same document root

2003-02-08 Thread Chris Davies

Hi,

Sadly this doesn't appear to work.
Both domains get redirected to Tomcat's docBase (in this case /www) and you get
a 404.

Am I formatting the Context tags wrong? Can you give me an example of how they
are supposed to look?

Thanks,
C.Davies

Quoting Lajos [EMAIL PROTECTED]:

 Hi C. Davies -
 
 I can't help you with mod_webapp, which I avoid like the plague, but it 
 would certainly work with mod_jk. Each Apache VirtualHost block should
 
 contain a JkMount something like this:
 
 JkMount /*.jsp ajp13
 
 which means that any page ending in *.jsp will be passed to Tomcat. 
 Then, in Tomcat, you can have one Host tag, with its docBase pointing 
 to /www, and two Contexts - cust1 and cust2.
 
 
 Regards,
 
 Lajos
 




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




Re: Apache vhost + Tomcat sharing the same document root

2003-02-08 Thread Lajos
Hi Chris -

Oops - I realize my mistake. I was thinking something entirely 
different. You should have two Host blocks, one for each vhost, one 
with appBase of /www/cust1 and one with appBase of /www/cust2. Sorry for 
leading you the wrong way.

If that still doesn't work, email me your server.xml and httpd.conf offline.

Regards,


Lajos


Chris Davies wrote:
Hi,

Sadly this doesn't appear to work.
Both domains get redirected to Tomcat's docBase (in this case /www) and you get
a 404.

Am I formatting the Context tags wrong? Can you give me an example of how they
are supposed to look?

Thanks,
C.Davies

Quoting Lajos [EMAIL PROTECTED]:



Hi C. Davies -

I can't help you with mod_webapp, which I avoid like the plague, but it 
would certainly work with mod_jk. Each Apache VirtualHost block should

contain a JkMount something like this:

JkMount /*.jsp ajp13

which means that any page ending in *.jsp will be passed to Tomcat. 
Then, in Tomcat, you can have one Host tag, with its docBase pointing 
to /www, and two Contexts - cust1 and cust2.


Regards,

Lajos






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





--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)

   _  _
  / \ /
 /___\  /
/ \   /

 http://www.galatea.com -- powered by AzSSL


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




Need help w. another jsp!

2003-02-08 Thread Steve Burrus

Hello all, I am having yet more trouble with executing a jsp in the right way! The jsp 
in question this time is a calendar.jsp, which as the name of it suggests, displays 
a calendar. I placed/put it into the right folder, the 
C:\jakarta-tomcat\webapps\ROOT\WEB-INF\classes, but alas, when I go to compiling it in 
DOS, all that I seem to get for my efforts is this:

C:\jakarta-tomcat-4.1.18\webapps\ROOT\WEB-INF\classesjavac calendar.jsp
javac: invalid flag: calendar.jsp
Usage: javac options source files
where possible options include:
  -gGenerate all debugging info
  -g:none   Generate no debugging info
  -g:{lines,vars,source}Generate only some debugging info
  -nowarn   Generate no warnings
  -verbose  Output messages about what the compiler is doing
  -deprecation  Output source locations where deprecated APIs are us
ed
  -classpath path Specify where to find user class files
  -sourcepath pathSpecify where to find input source files
  -bootclasspath path Override location of bootstrap class files
  -extdirs dirs   Override location of installed extensions
  -d directorySpecify where to place generated class files
  -encoding encoding  Specify character encoding used by source files
  -source release Provide source compatibility with specified release
  -target release Generate class files for specific VM version
  -help Print a synopsis of standard options

FYI: I had just gotten thru with editing my System applet in the env. variables 
section for the classpath specifying the lib folder, but that didn't seem to help! Can 
someone please help me? Thank you



RE: Help: JNI, mod_jk2 , Apache 2 not working

2003-02-08 Thread Robo code

Hi Jimmy,

I have solved some of the problems you are facing. I can get Apache
to startTomcat via JNI cleanly. The TomcatStarter problem was solved
by putting $TOMCAT/bin/tomcat-jni.jar on the path. I have couple
of startup servlets which were correctly loaded. I use Cactus so had
to put the log4j*.jar on $TOMCAT/server/lib, once I did that all
my startup servlets came up fine.

But when I hit Apache with a request meant for a Tomcat hosted JSP/Servlet, 
I get the error below. I tried Apache 2.0.43 since the
pre-built mod_jk2.dll on Tomcat site was compiled with 2.0.43 and I
get the same error. Attached are the jk2 and worker2 files.

Note standalone Tomcat works fine with the web.xml etc. So the culprit
must be worker2 or jk2 properties file. Can't seem to find any docs
on the syntax of these two files. Can you send your files. Mine
are attached.

No matter what I do, always the same msg in Apache errors.log. Close
to giving up on jk2 and planning on trying jk or mod_webapps. It
seems most people are not running Apache2+TC4 in-process. I would hate
to loose performance by going out of process, but if none of the JNI
modes work that I guess will be the last resort

[rahul@PC653933 ~/1Apache2/logs]$ tail -f error.log
[Sat Feb 08 22:33:14 2003] [notice] Parent: Created child process 3380
[Sat Feb 08 22:33:14 2003] [error] shm.init(): No file
[Sat Feb 08 22:33:14 2003] [notice] Child 3380: Child process is running
[Sat Feb 08 22:33:17 2003] [error] shm.init(): No file
[Sat Feb 08 22:33:17 2003] [error] mod_jk child init 1 0
[Sat Feb 08 22:33:17 2003] [notice] Child 3380: Acquired the start mutex.
[Sat Feb 08 22:33:17 2003] [notice] Child 3380: Starting 250 worker threads.
0 [Thread-1] INFO modeler.Registry  - Loading registry information
30 [Thread-1] INFO modeler.Registry  - Creating new Registry instance
812 [Thread-1] INFO modeler.Registry  - Creating MBeanServer
[Sat Feb 08 22:34:33 2003] [error] workerEnv.init() create slot epStat.0 
failed
[Sat Feb 08 22:34:34 2003] [error] lb.service() worker failed 12 for 
ajp13:j
ni
[Sat Feb 08 22:34:34 2003] [error] lb.service() unrecoverable error...
[Sat Feb 08 22:34:34 2003] [error] mod_jk.handler() Error connecting to 
tomcat 1
2

Thanks,
Rahul.

From: jcubic [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: Help: JNI, mod_jk2 , Apache 2 not working
Date: Sat, 8 Feb 2003 10:59:23 -0800

I just got Apache 2.0.44 and Tomat 4.1 working with a little twist. I think
we are trying to accomplish the same thing. I think server.xml is not the
culprit. jk2.properties and worker2.properties are. Also web.xml in Tomcat
home as well as the webapp could affect servlet and jps execution. What do
your jk2.properties and worker2.propeties look like?

My problem is that I cannot get Tomcat fired up properly from Apache 
without
first running Tomcat manually. I keep on getting 'HTTP Status 503 - Servlet
invoker is currently unavailable' error if I don't run Tomcat first. Of
course this would defeat the purpose of using Tomcat as worker from Apache.

My other problem is that I cannot get org/apache/jk/apr/TomcatStarter
started properly unless I specify whole bunch of jar files using classpath
in [vm:] directory. It looks like jvm that Apache runs have trouble with
class path in my environment. But I don't know how to set it. I am
interested in knowing how you get TomcatStarter working.

Other than those 2 problems, my Apache can serve up html, jsp, as well as
servlet in my webapp fine.

Jimmy
Redmond, Washington


[jcubic]  -Original Message-
From: Rahul Bhargava [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 08, 2003 8:59 AM
To: [EMAIL PROTECTED]
Subject: Help: JNI, mod_jk2 , Apache 2 not working


  Re-posting with the relevant files attached.

  Keep getting the error  from mod_jk2 about Error connecting to tomcat
12.

  Using Apache 2.0.44 with Tomcat 4.1.18 on Win2K. Checked my config 1000
times everything looks
  good. Is this a know issue ? Is there ant doc/reference on
workers2.properties ?

  Attached are my config files.

  [Sat Feb 08 00:14:04 2003] [notice] Parent: Created child process 3316
  Apache.exe: Could not determine the server's fully qualified domain 
name,
using
  192.168.1.2 for ServerName
  [Sat Feb 08 00:14:04 2003] [error] shm.init(): No file
  [Sat Feb 08 00:14:04 2003] [notice] Child 3316: Child process is running
  [Sat Feb 08 00:14:04 2003] [notice] jk2_init() Found child 3316 in
scoreboard sl
  ot 0
  [Sat Feb 08 00:14:04 2003] [notice] vm.init(): Jni lib: C:\Program
Files\Java\j2
  re1.4.1_01\bin\client\jvm.dll
  [Sat Feb 08 00:14:04 2003] [notice] vm.open2() done
  [Sat Feb 08 00:14:04 2003] [notice] jni.validate() class=
org/apache/jk/apr/Tomc
  atStarter
  [Sat Feb 08 00:14:04 2003] [notice] Loaded 
org/apache/jk/apr/TomcatStarter
  [Sat Feb 08 00:14:05 2003] [notice] jni.init() setting
stdout=C:/servers/Apache2
  /logs/stdout.log...
  [Sat Feb 08 

_strncpy already defined - compiling jk2 isapi with VS7/ i.e. win isapi_redirector2.dll

2003-02-08 Thread Mark Clarke
Hi all,

I am trying to compile jk2 isapi dll with VS7.0. I downloaded and built
apache2 to get the apr.h header files and some libraries that jk2
requires from apache.

When I compile jk2 I get an error message that _strncpy is already
defined in  e.g.

MSVCRTD.lib(MSVCR70D.dll) : error LNK2005: _strncpy already defined in
LIBCMTD.lib(strncpy.obj)

I then removed the MSVCRTD.lib from the library list of the linker. The
conflict error messages go away but I get the following warning message.

***
isapi warning LNK4217: locally defined symbol _strncpy imported in
function _regerror
***

And the following error message (this is also present even in
MSVCRTD.dll is in the link list)

***
isapi error LNK2019: unresolved external symbol __imp__RegCloseKey@4
referenced in function _read_registry_init_data
***


What library/dll am I missing? Any help will be appreciated.

Regards
Mark


=
Mark Clarke - Exotic Pets
E-Mail:  [EMAIL PROTECTED]
WWW: www.ExoticPets.co.za
=


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




RE: _strncpy already defined - compiling jk2 isapi with VS7/ i.e. win isapi_redirector2.dll

2003-02-08 Thread Mark Clarke
OK solved it.

I needed to have the sdk library Advapi32.lib in the link library list
;)

=
Mark Clarke - Exotic Pets
E-Mail:  [EMAIL PROTECTED]
WWW: www.ExoticPets.co.za
=


 -Original Message-
 From: Mark Clarke [mailto:[EMAIL PROTECTED]] 
 Sent: 09 February 2003 09:00
 To: [EMAIL PROTECTED]
 Subject: _strncpy already defined - compiling jk2 isapi with 
 VS7/ i.e. win isapi_redirector2.dll
 
 
 Hi all,
 
 I am trying to compile jk2 isapi dll with VS7.0. I downloaded 
 and built apache2 to get the apr.h header files and some 
 libraries that jk2 requires from apache.
 
 When I compile jk2 I get an error message that _strncpy is 
 already defined in  e.g.
 
 MSVCRTD.lib(MSVCR70D.dll) : error LNK2005: _strncpy already defined in
 LIBCMTD.lib(strncpy.obj)
 
 I then removed the MSVCRTD.lib from the library list of the 
 linker. The conflict error messages go away but I get the 
 following warning message.
 
 ***
 isapi warning LNK4217: locally defined symbol _strncpy 
 imported in function _regerror
 ***
 
 And the following error message (this is also present even in 
 MSVCRTD.dll is in the link list)
 
 ***
 isapi error LNK2019: unresolved external symbol 
 __imp__RegCloseKey@4 referenced in function _read_registry_init_data
 ***
 
 
 What library/dll am I missing? Any help will be appreciated.
 
 Regards
 Mark
 
 
 =
 Mark Clarke - Exotic Pets
 E-Mail:  [EMAIL PROTECTED]
 WWW: www.ExoticPets.co.za
 =
 
 
 -
 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]




Tomcat complains: java.security.NoSuchProviderException: no such provider: BC

2003-02-08 Thread Mark Liu
I run Tomcat 4.1.18 on my Win2K box.

Because my project will use bouncycastle cryptographic
bundle (known as BC version 1.18), I have this package
properly installed on my system.  If you don't believe
it, look at the following output:

C:\Javajava ListCryptoProviders
SUN version 1.2
SunJSSE version 1.4
SunRsaSign version 1.0
SunJCE version 1.4
SunJGSS version 1.0
BC version 1.18

C:\Java

You see, BC version 1.18 is nicely shown there.

It is the output from the following short code:

/* This class lists the cryptographic
 * providers available on current system.
 */

import java.security.*;

class ListCryptoProviders
{  public static void main(String []args)
   {  Provider [] providers = Security.getProviders();
  for(int i=0; iproviders.length; i++)
  { System.out.println(providers[i]);
  }
}
}

However, the Servlet I write which uses the BC bundle
does not work with Tomcat.

When I try to invoke that servlet from the browser,
the Tomcat console says:

java.security.NoSuchProviderException: no such
provider: BC

It's weird!

I have put the BC bundle jar file under both
JDK_HOME\jre\lib\ext and Program
Files\Java\j2re1.4.0\lib\ext.

Needless to say that I have also added the following
line

security.provider.6=org.bouncycastle.jce.provider.BouncyCastleProvider

in file java.security in its due paths (one under
JDK_HOME\jre\lib\security and one under C:\Program
Files\Java\j2re1.4.0\lib\security).

I even copied the BC bundle jar file to C:\Program
Files\Apache Group\Tomcat 4.1\common\lib, but Tomcat
still keeps complaining:

java.security.NoSuchProviderException: no such
provider: BC

I have no clue how I should handle this.

Any idea please?

Mark




__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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