Re: question about session behavior

2003-01-08 Thread Mr. Cristian Romanescu
Hi, David.
There is one detail, Tomcat uses so called (I think) persistent 
sessions. Meaning...
If you close Tomcat, it creates a file 
($CATALINA_HOME/work/Standalone/yourwebapp/SESSIONS.ser) where present 
sessions are serialized.
Also when you restart Tomcat, that file is deleted. So basically when 
you close Tomcat your sessions aren't really destroyed, but saved for 
latter restart.

Hope this help.

Regards,
Cristian.

David Boyer wrote:

When I shut down Tomcat, shouldn't HttpSessionListener.sessionDestroyed() be called for each existing session?

When users authenticate to my application, I store their username and encrypted password in a database where it's associated with their session. When the session is destroyed, I have a session listener delete the database row associated with that session. However, when I shut down Tomcat I end up with orphaned rows in the database.

Is there a way to have HttpSessionListener.sessionDestroyed() called for each session when shutting down Tomcat?

TIA!


 




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




Archives! (was Re: SV: tomcat 4.1.12 just stopped working, help !)

2003-01-08 Thread Joel Rees
 Hmm, I just got enlisted on this mailinglist so I don$B%((Bt have yesterdays mail 
(Bfrom it. Is there an archive from yesterday, or maybe you could mail me the thread ?
(B
(B(Ouch. That's a long line.)
(B
(BArchives:
(B
(Bhttp://jakarta.apache.org/site/mail.html
(B
(BAnd after you read the policies on this page, there's a link at the
(Bbottom of the page that takes you to a page with, among other things,
(Bseveral archive services listed on it. You really should have seen this
(Bpage when you signed up, by the way.
(B
(BI like marc, for no particular reason:
(B
(Bhttp://marc.theaimsgroup.com/(general list)
(Bhttp://marc.theaimsgroup.com/?l=tomcat-userr=1w=2   (tomcat-user)
(B
(B-- 
(BJoel Rees [EMAIL PROTECTED]
(B
(B
(B--
(BTo unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
(BFor additional commands, e-mail: mailto:[EMAIL PROTECTED]



Re: limiting access by IP address

2003-01-08 Thread Joel Rees
 You can do the
 same things with Valves and Filters for free.

Stupid question, but what exactly is the point of limiting access by IP
address? (IP addresses being spoofable, and all, ...)

-- 
Joel Rees [EMAIL PROTECTED]


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




setting up classpath for tomcat running as windows NT service

2003-01-08 Thread Manavendra Gupta
Hi,

How to setup classpath for tomcat 4.x running as windows NT service? Apparently, when 
started, tomcat.exe does not read from catalina.bat (or so i think).

Regards,
Manav.


RewriteRules and Standalone Tomcat

2003-01-08 Thread neal
What exaclty is a RewriteRule and how is it used with Standalone Tomcat? Do
I define my RewriteRules somewhere in server.xml or web.xml?

A couple of months ago, Noel told me how I could get Tomcat to show the
content of the default welcome page without redirecting (http 302) to the
file, using a RewriteRule.  I took notes from that email and set it aside
only to realize when I returned ... that I have no idea what to do with this
info!  And of course no info is available (that I could find) online or in
the Tomcat manual explaining this.  :(

Could someone please explain how this RewriteRule would be integrated into
Tomcat:

  RewriteRule  ^/$  /index.html   [L]

Thanks!
Neal


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




Need help isolating severe Tomcat v4.1.18 bug

2003-01-08 Thread Kristján Bjarni Guðmundsson
Specs and variables:
Windows NT 4 SP 6
Tomcat v4.1.18
JDK v1.4.1_01
CATALINA_OPTS=-Xms128M -Xmx1024M

At random intervals I get this error on console, it seems
that the socket for port 80 is closed and the server stops responding
What steps can I take to get more information about why this error is 
occuring?

SEVERE: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=80] 
ignored
exception: java.net.SocketException: socket closed
java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
at java.net.ServerSocket.implAccept(ServerSocket.java:439)
at java.net.ServerSocket.accept(ServerSocket.java:410)
at 
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(De
faultServerSocketFactory.java:107)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoi
nt.java:341)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:497)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:530)
at java.lang.Thread.run(Thread.java:536)
8.1.2003 03:36:47 org.apache.tomcat.util.log.CommonLogHandler log
SEVERE: Endpoint null shutdown due to exception: java.net.SocketException: 
Opera
tion now in progress: create
java.net.SocketException: Operation now in progress: create
at java.net.ServerSocket.createImpl(ServerSocket.java:245)
at java.net.ServerSocket.getImpl(ServerSocket.java:203)
at java.net.ServerSocket.bind(ServerSocket.java:309)
at java.net.ServerSocket.init(ServerSocket.java:183)
at java.net.ServerSocket.init(ServerSocket.java:139)
at 
org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(De
faultServerSocketFactory.java:96)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoi
nt.java:389)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:497)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:530)
at java.lang.Thread.run(Thread.java:536)
8.1.2003 03:36:47 org.apache.tomcat.util.log.CommonLogHandler log
SEVERE: Caught exception trying to unlock accept.
java.net.SocketException: Operation now in progress: create
at java.net.Socket.createImpl(Socket.java:313)
at java.net.Socket.init(Socket.java:286)
at java.net.Socket.init(Socket.java:119)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.stopEndpoint(PoolTcpEndpoi
nt.java:309)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoi
nt.java:400)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:497)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:530)
at java.lang.Thread.run(Thread.java:536)
8.1.2003 03:36:47 org.apache.tomcat.util.log.CommonLogHandler log
SEVERE: Caught exception trying to close socket.
java.lang.NullPointerException
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.stopEndpoint(PoolTcpEndpoi
nt.java:321)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoi
nt.java:400)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:497)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:530)
at java.lang.Thread.run(Thread.java:536)



Re: Tomcat 4.1.18 Admin Page

2003-01-08 Thread Peter Lee
Does anyone know the usage of the rolename provider Any special meaning to 
that?

user username=user password=sec roles=admin,manager,provider/



On 3 Jan 2003 at 10:58, Jeanfrancois Arcand wrote:

 If you click on the link you just provided, read in the middle of the 
 page :-), you will read :
 
 NOTE: For security reasons, using the administration webapp is 
 restricted to users with role admin. The manager webapp is restricted 
 to users with role manager. Users are defined in 
 |$CATALINA_HOME/conf/tomcat-users.xml|.
 
 So open tomcat-user.xml and define something like that:
 
   user username=karthikeyan password=always_read_the_doc 
 roles=admin/
 
 ;-)
 
 -- Jeanfrancois
 
 karthikeyan.balasubramanian wrote:
 
 Hi,
 
   How do i manage the admin section that comes along with tomcat.  I can see the 
page when i type
 
   http://localhost:8080
 
   It is password protected, by defualt i cant access it seems.  How do i set new 
password and what are the things that can be achieved through this interface.
 
   Have a great day.
 
 Karthikeyan B.
 
   
 
 



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




Tomcat 4.1 problems after startup

2003-01-08 Thread Frank . Zimper
Hi,

My Tomcat 4.1.12 installation on Windows 2000 SP 3 works fine except for 
one thing: After the bootup of the machine the Tomcat service is running 
but doesn't serve any requests. The browser simply says: Sending request 
to 192.168.0.1 

After I stop and restart the service, everything is fine.

Does someone have an idea?


Thanks,
Frank


These are the records from the stderr.log file:

Created catalinaLoader in: C:\Programme\Apache Group\Tomcat
4.1\server\lib
07.01.2003 16:27:08 org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
07.01.2003 16:27:12 org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
07.01.2003 16:27:14 org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
07.01.2003 16:27:22 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
07.01.2003 16:27:23 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 80
07.01.2003 16:30:04 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
07.01.2003 16:30:04 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on tcp port 8009
07.01.2003 16:30:05 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=188/235  config=C:\Programme\Apache
Group\Tomcat 4.1\conf\jk2.properties
07.01.2003 16:30:05 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 80
07.01.2003 16:44:23 org.apache.tomcat.util.log.CommonLogHandler log
INFO: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080]
ignored exception: java.net.SocketException: socket closed
java.net.SocketException: socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at 
java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
 at 
java.net.ServerSocket.implAccept(ServerSocket.java:439)
 at java.net.ServerSocket.accept(ServerSocket.java:410)
 at 
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:107)
 at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:335)
 at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:483)
 at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
 at java.lang.Thread.run(Thread.java:536)
07.01.2003 16:45:06 org.apache.tomcat.util.log.CommonLogHandler log
INFO: Endpoint ServerSocket[addr=/192.168.0.1,port=0,localport=80]
ignored exception: java.net.SocketException: socket closed
java.net.SocketException: socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at 
java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
 at 
java.net.ServerSocket.implAccept(ServerSocket.java:439)
 at java.net.ServerSocket.accept(ServerSocket.java:410)
 at 
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:107)
 at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:335)
 at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:483)
 at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
 at java.lang.Thread.run(Thread.java:536)


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




RE: TOMCAT listening on 80 Thanks John-Turner/Jan-Michael/seemanto/Donie/Anyone....

2003-01-08 Thread Vivek Singh
Hi,
   Thanks John, Everything works perfect now. ;-) I am
almost done with the integration of tomcat and apache. I was planning to
configure mod_ssl with tomcat. 
   SO here are few of my queries.
1. Is apache ssl default for redhat, how different is it from mod_ssl. 
2. Do I need to make changes in server.xml or the httpd.conf

 If you have some pointers for this let me know.

Regards
Vivek

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 07, 2003 6:31 PM
To: 'Tomcat Users List'
Subject: RE: TOMCAT listening on 80 Thanks
John-Turner/Jan-Michael/seemanto/Donie/Anyone


In server.xml, comment out the CoyoteConnector on port 8080, and restart
Tomcat.  Be careful editing server.xml. ;)

If you're feeling ambitious, you could always try disabling that
connector
in the admin app on port 80 now that you have the connector working, but
I've never done it that way.

John


 -Original Message-
 From: Vivek Singh [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 07, 2003 6:52 AM
 To: 'Tomcat Users List'
 Subject: TOMCAT listening on 80 Thanks
 John-Turner/Jan-Michael/seemanto/Donie/Anyone
 
 
 BINGO!!!
 
IT is working at last at port 80. All services still running.
  Reason; screwed up server.xml.
  Gotta watch those tags next time. 
 
  But I still have tomcat running at 8080. How do I stop 
 it at 8080?
 
 
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, January 07, 2003 4:49 PM
 To: ''Tomcat Users List' '
 Subject: RE: RE: TOMCAT Not listening on 80
 John-Turner/Jan-Michael/seemanto/Donie/Anyone
 
  
 Yeah, your server.xml file is screwed up, which is why you aren't
 getting
 anything in mod_jk.conf, which is why Apache doesn't have any JK
 directives,
 which is why Apache doesn't understand what to do with JSP and servlet
 URLs.
 
 Fix your server.xml, sounds like you have a tag out of place 
 or you have
 a
 tag terminated incorrectly.  If everything is fixed, you WILL 
 ALWAYS get
 content in mod_jk.conf.  If you don't, if mod_jk.conf is 
 empty, there is
 something seriously wrong on the Tomcat side in server.xml.
 
 You can always just add the JK directives to httpd.conf 
 directly, there
 is a
 link to a mod_jk.conf file on my site that has what you need 
 or will at
 least provide a guideline.
 
 John
 
 -Original Message-
 From: Vivek Singh
 To: 'Tomcat Users List'; [EMAIL PROTECTED]
 Sent: 1/7/03 4:35 AM
 Subject: RE: RE: TOMCAT Not listening on 80
 John-Turner/Jan-Michael/seemanto/Donie/Anyone
 
 Hi ,
I just noticed that when I try opening the server 
 XML file I
 get this error. 
 
 End tag 'Host' does not match the start tag 'Engine'. Line 
 388, Position
 9 
  
 
   /Host
 ^
 
Any feedback!!
 
  Regards
 ~Vivek
 
 -Original Message-
 From: Vivek Singh [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, January 07, 2003 2:56 PM
 To: 'Tomcat Users List'
 Subject: RE: RE: TOMCAT Not listening on 80
 John-Turner/Jan-Michael/seemanto/Donie/Anyone
 
 
 Hi Guys,
 
   Here is what is happening now with very precise 
 info. I think
 I was dealing at a very high level so far. . I am running 
 apache 1.3.19
 + tomcat 4.1.18 and modjk 1.2.1 
 I have given the URL down from where I got the entire .so module,no
 building was done just a copy from Jakarta web site to the 
 apache module
 directory.
 
 Now this is the picture on the linux server.
 
 http://192.168.132.34 is a test page from apache. 
 http://192.168.132.34/bugzilla is a perl-CGI application 
 sitting on port
 80. 
 http://192.168.132.34:8080 tomcat's page
 http://192.168.132.34:8080/examples/jsp/index.html shows me 
 JSP samples.
 
 They execute very well
 
 http://192.168.132.34:8080/examples/servlets/index.html shows me
 servelets they execute very well.
 
 
 PAGE NOT FOUND ERRORS for 
 http://192.168.132.34/examples/jsp/index.html
 http://192.168.132.34/examples/servlets/index.htm;
 
 
 Pl. Look for-
    comments.
 
   I am attaching all the configs file as mentioned by Jan/John. The
 mod_jk.conf file is always empty after I deleted the contents,since I
 assumed that it would be autogenrated. But it never did.
 
  I edited the contents of server.xml and insered 
 workers.properties from
 John's website, Just retyping the URL again..
 
 http://www.johnturner.com/howto/apache2-tomcat4110-jk-howto.html
 
 Thanks Again.
 
   Hope to hear a LOT!!
~Vivek
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, January 06, 2003 9:44 PM
 To: Tomcat Users List
 Subject: Re: RE: TOMCAT Not listening on 80
 
 Hi there,
 Hi vivek,
 
 John Turner's suggestion is right on. Try setting it up on a 
 development box first. This will save you and your colleagues 
 a lot of 
 headaches later on. Besides it is good practice. But here are some 
 pointers.

RE: setting up classpath for tomcat running as windows NT service

2003-01-08 Thread Turner, John

Tomcat sets it's own classpath...it ignores environment variables except
JAVA_HOME, CATALINA_HOME, and CATALINA_BASE.

If your Tomcat installation or webapp has a problem finding particular
classes, or you suspect that it does, you might want to check the
ClassLoader HOWTO for information on exactly how Tomcat finds classes:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

John


-Original Message-
From: Manavendra Gupta [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 08, 2003 5:29 PM
To: Tomcat Users List
Subject: setting up classpath for tomcat running as windows NT service


Hi,

How to setup classpath for tomcat 4.x running as windows NT service?
Apparently, when started, tomcat.exe does not read from catalina.bat (or
so i think).

Regards,
Manav.

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002
 

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




Transport-guarantee problem with 4.1.18

2003-01-08 Thread Peter Lee
I asked this earlier, but I still got problems with it. I upgraded to 4.1.18, but I 
got 
some problems with security constraints.

I have applied a security constraint on a particular url pattern. Only
certain users with a special rolename can access that link. The data 
transportation is also secure, therefore I put in a  transport-guarantee in web.xml

user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint

It used to work but now the page does not load with v4.1.18. 
I got a blank page instead of a login page.
Is SSL implemented differently v4.1.18 that prevents my application
from working like before?
I think it has to do with rolenames. I put in the needed role in tomcat-user.xml 
already. Did I miss something?

Is there any documentation on tomcat v4.1.18 SSL security stuff?


Here is my security constraint in web.xml:

  !-- Secure form 
URLs of the form 
http://localhost/Prefix/mypage
   require SSL and are redirected to
https://localhost/Prefix/mypage --

  security-constraint
web-resource-collection
  web-resource-nameSSLspecial/web-resource-name
  url-pattern/protectedpage/*/url-pattern
/web-resource-collection
auth-constraint
  role-namespecialrole/role-name
/auth-constraint
user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
  /security-constraint


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




Problems with installation on win2k advanced server (Java exceptions thrown)

2003-01-08 Thread Tammer Salem
Hi,
I just installed Tomcat 4.1.18 on win2k advanced server (and running J2SDK 1.4). I 
keep on getting a Java exception when I use (http://localhost:8080/).
I've included the error below.
Does anyone have any idea how to solve this?



type Exception report

message 

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

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file



at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
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.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 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.processConnection(Http11Protocol.java:386)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
at java.lang.Thread.run(Thread.java:536)





Solaris Authentication

2003-01-08 Thread Khadbai, Abdul (ANTS)
 Hi
 
 Is there any way that tomcat can hook into the solaris user names and
 passwords rather than creating a new database with
 passwords and usernames i.e in a way which weblogic can use NT
 authentication ?
 
 Please let me know.
 
 Many Thanks
 
 Abdul Khadbai
 
 





***
This communication (including any attachments) contains confidential information.  If 
you are not the intended recipient and you have received this communication in error, 
you should destroy it without copying, disclosing or otherwise using its contents.  
Please notify the sender immediately of the error.

Internet communications are not necessarily secure and may be intercepted or changed 
after they are sent.  Abbey National Treasury Services plc does not accept liability 
for any loss you may suffer as a result of interception or any liability for such 
changes.  If you wish to confirm the origin or content of this communication, please 
contact the sender by using an alternative means of communication.

This communication does not create or modify any contract and, unless otherwise 
stated, is not intended to be contractually binding.

Abbey National Treasury Services plc. Registered Office:  Abbey National House, 2 
Triton Square, Regents Place, London NW1 3AN.  Registered in England under Company 
Registration Number: 2338548.  Regulated by the Financial Services Authority (FSA).
***


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




Need to start standalone application

2003-01-08 Thread Prakash Venkatesh
Hi,

I need to start an standalone JAVA application, while
starting my web application from Tomcat.

How to achieve this using Tomcat 3.2 and Tomcat 4.0?  

Any comments on these will be appreciated.

Regards,
Prakash

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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




Re: JSP help

2003-01-08 Thread Herc

/examples is just another aplication  is the default application in the 
server. There must be specified your application name.

__
Do you want a free e-mail for life ? Get it at http://www.personal.ro/


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




Apache-Tomcat combination, Best Practices

2003-01-08 Thread Honey George
Hi,
  First of all I assume I am posting to the correct
mailing list, ignore this otherwise.

I am trying to configure Apache Server  Tomcat for
running my JSPs  static pages. Can anybody give me
the best way of doing this. Where should I place my
static HTML files  where should I place my JSP pages.
Also how do I redirect all the JSP requests to the
Tomcat. I basically want all my static pages to be
processed by Apache server  the JSP pages by tomcat.

I am Using Apache2,tomcat-4.1.18  mod_jk2 connector.


George



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

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




Error instantiating servlet class org.apache.jasper.servlet.JspServletjavax.servlet.ServletException

2003-01-08 Thread sgv -
Hi,
  I am using tomcat-4.0.3 that is bundled along with
Jbuilder7 on WindowsNT. When I try to run a jsp in my
application, the following error is generated

StandardWrapper[:default]: Loading container servlet
defaultStandardWrapper[:invoker]: Loading container
servlet invokerStandardWrapper[:jsp]: Marking servlet
jsp as unavailableStandardContext[]: Servlet  threw
load() exception: javax.servlet.ServletException:
Error instantiating servlet class
org.apache.jasper.servlet.JspServletjavax.servlet.ServletException:
Error instantiating servlet class
org.apache.jasper.servlet.JspServletat
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:893)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java,
Compiled Code)  at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java,
Compiled Code)  at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java,
Compiled Code)  at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java,
Compiled Code)  at
org.apache.catalina.core.StandardServer.start(StandardServer.java,
Compiled Code)  at
org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)   at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java,
Compiled Code)StandardWrapper[:debugjsp]: Marking
servlet debugjsp as unavailableStandardContext[]:
Servlet  threw load() exception:
javax.servlet.ServletException: Error instantiating
servlet class
org.apache.jasper.servlet.JspServletjavax.servlet.ServletException:
Error instantiating servlet class
org.apache.jasper.servlet.JspServletat
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:893)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java,
Compiled Code)  at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java,
Compiled Code)  at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java,
Compiled Code)  at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java,
Compiled Code)  at
org.apache.catalina.core.StandardServer.start(StandardServer.java,
Compiled Code)  at
org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)   at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java,
Compiled Code)HttpConnector[8080] Starting background
threadStandardWrapperValve[debugjsp]: Servlet debugjsp
is currently unavailable


I would appreciate any suggestions for this problem. I
did look into the classpath in my environment
variables for servlet.jar conflict. 
I am not sure where to find the log files to check
further information about this error.

Thanks in advance.
sgv


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

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




CORBA initialization error with Tomcat 4.1

2003-01-08 Thread Xu, David
Hi, there,

I use a Bea Tuxedo CORBA client and the CORBA client object within a servlet
has been working fine with Tomcat 3. Now with Tomcat 4.1.18, the servelet
start up with errors:

Exception err=org.omg.CORBA.IMP_LIMIT:   vmcid: 0x0  minor code: 0
completed: No


Has anyone has a clue? or doing the same?


Regards,
David

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




Newbie - question about .so files

2003-01-08 Thread todd runstein
I'm trying to run some examples of JSPs that utilize
Domino server.  I've followed all the examples and I'm
now stuck with an UnsatisfiedLinkError: no lsxbe in
java.library.path

I believe lsxbe is referring to liblsxbe.so which is
in a directory that is included in my PATH variable. 
I'm not sure that the problem is with my Tomcat
config, but it sure seems like Tomcat can find this
.so file.  How do I get Tomcat to see it, or how can I
confirm that it's not a Tomcat issue?

I'm using jdk1.4.0 with Tomcat 4.0.6 on a Red Hat 7.3
machine.  The Domino version is 6.0 and is on the same
machine as Tomcat.

Thanks in advance!

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

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




RE: Need RPM package for tomcat

2003-01-08 Thread Turner, John

Try /archives.

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/archives/

John


-Original Message-
From: James Schumacher [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 07, 2003 11:05 PM
To: [EMAIL PROTECTED]
Subject: Need RPM package for tomcat


Hi,

New to the list. Tried the FAQ and INFO but mailer said they were empty so 
please excuse if this is a duplicate. 

Need a recent (4.1.12) or later copy of tomcat to install in RPM format. 
Planned to install 4.1.16 but didn't get around to it. Now replaced by
4.1.18 
but no RPM packages that I can see. Are there any planned?

Suggestion: keep the older release around at least long enough until all the

various formats can be generated for the latest release. 

My source for packages is 
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/ if there is a 
better place, please let me know. 

thanks,
jim s

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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002
 

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




RE: TOMCAT listening on 80 Thanks John-Turner/Jan-Michael/seemanto/Donie/Anyone....

2003-01-08 Thread Turner, John

I've never done it, but from reading this list:

- you need to setup SSL on Apache, not Tomcat, if the two are
integrated...communications between the two via JK and JK2 are NOT over SSL,
even if the communication between Apache and the client browser uses SSL.
Make sure the SSL connector on 8443 in server.xml by default is disabled
along with the connector on 8080.

- I think that there are issues with Apache SSL configuration and using the
auto-generation ApacheConfig feature of mod_jk, in that ApacheConfig
generates Apache VirtualHost containers using hostnames, and SSL
configuration in httpd.conf needs IP addresses, which means you have to do
the SSL part by hand

I've only setup SSL for Tomcat alone and Apache alone, never when the two
are integrated.  In any case, I would start going through the process of
setting up SSL on Apache, and just post back here under a new thread if you
have problems.  I'm sure someone who has done it will reply with
suggestions, and who knows, maybe we will get a new HOWTO out of it. :)

John


-Original Message-
From: Vivek Singh [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 08, 2003 5:25 AM
To: 'Tomcat Users List'
Subject: RE: TOMCAT listening on 80 Thanks
John-Turner/Jan-Michael/seemanto/Donie/Anyone


Hi,
   Thanks John, Everything works perfect now. ;-) I am almost
done with the integration of tomcat and apache. I was planning to configure
mod_ssl with tomcat. 
   SO here are few of my queries.
1. Is apache ssl default for redhat, how different is it from mod_ssl. 
2. Do I need to make changes in server.xml or the httpd.conf

 If you have some pointers for this let me know.

Regards
Vivek

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 07, 2003 6:31 PM
To: 'Tomcat Users List'
Subject: RE: TOMCAT listening on 80 Thanks
John-Turner/Jan-Michael/seemanto/Donie/Anyone


In server.xml, comment out the CoyoteConnector on port 8080, and restart
Tomcat.  Be careful editing server.xml. ;)

If you're feeling ambitious, you could always try disabling that connector
in the admin app on port 80 now that you have the connector working, but
I've never done it that way.

John


 -Original Message-
 From: Vivek Singh [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 07, 2003 6:52 AM
 To: 'Tomcat Users List'
 Subject: TOMCAT listening on 80 Thanks 
 John-Turner/Jan-Michael/seemanto/Donie/Anyone
 
 
 BINGO!!!
 
IT is working at last at port 80. All services still running.  
 Reason; screwed up server.xml.  Gotta watch those tags next time.
 
  But I still have tomcat running at 8080. How do I stop
 it at 8080?
 
 
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 07, 2003 4:49 PM
 To: ''Tomcat Users List' '
 Subject: RE: RE: TOMCAT Not listening on 80
 John-Turner/Jan-Michael/seemanto/Donie/Anyone
 
  
 Yeah, your server.xml file is screwed up, which is why you aren't 
 getting anything in mod_jk.conf, which is why Apache doesn't have any 
 JK directives,
 which is why Apache doesn't understand what to do with JSP and servlet
 URLs.
 
 Fix your server.xml, sounds like you have a tag out of place
 or you have
 a
 tag terminated incorrectly.  If everything is fixed, you WILL 
 ALWAYS get
 content in mod_jk.conf.  If you don't, if mod_jk.conf is 
 empty, there is
 something seriously wrong on the Tomcat side in server.xml.
 
 You can always just add the JK directives to httpd.conf
 directly, there
 is a
 link to a mod_jk.conf file on my site that has what you need 
 or will at
 least provide a guideline.
 
 John
 
 -Original Message-
 From: Vivek Singh
 To: 'Tomcat Users List'; [EMAIL PROTECTED]
 Sent: 1/7/03 4:35 AM
 Subject: RE: RE: TOMCAT Not listening on 80 
 John-Turner/Jan-Michael/seemanto/Donie/Anyone
 
 Hi ,
I just noticed that when I try opening the server
 XML file I
 get this error. 
 
 End tag 'Host' does not match the start tag 'Engine'. Line
 388, Position
 9 
  
 
   /Host
 ^
 
Any feedback!!
 
  Regards
 ~Vivek
 
 -Original Message-
 From: Vivek Singh [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 07, 2003 2:56 PM
 To: 'Tomcat Users List'
 Subject: RE: RE: TOMCAT Not listening on 80
 John-Turner/Jan-Michael/seemanto/Donie/Anyone
 
 
 Hi Guys,
 
   Here is what is happening now with very precise
 info. I think
 I was dealing at a very high level so far. . I am running 
 apache 1.3.19
 + tomcat 4.1.18 and modjk 1.2.1
 I have given the URL down from where I got the entire .so module,no 
 building was done just a copy from Jakarta web site to the apache 
 module directory.
 
 Now this is the picture on the linux server.
 
 http://192.168.132.34 is a test page from apache.
 http://192.168.132.34/bugzilla is a perl-CGI application 
 sitting on port
 80. 
 http://192.168.132.34:8080 tomcat's page
 

Re: Problems with installation on win2k advanced server (Java exceptionsthrown)

2003-01-08 Thread Mr. Cristian Romanescu
Hi!

I remember we had the same problem on the web server where using Tomcat 
4.0.3 with JDK 1.3.1, so the resolution was to upgrade both Tomcat  JDK
since on the test server (Tomcat 4.1.12 + JDK 1.4.1_01 worked 
perfectly). From what I could see you are using latest version of 
Tomcat, maybe try upgrading JDK (I don't think will resolve, but it's an 
idea)

Did you tried to request other pages (not index.jsp) and see if they 
compile...?
Also you could try another version of Tomcat, I think...

Hope this helps...

Cristian.


Tammer Salem wrote:

Hi,
I just installed Tomcat 4.1.18 on win2k advanced server (and running J2SDK 1.4). I keep on getting a Java exception when I use (http://localhost:8080/).
I've included the error below.
Does anyone have any idea how to solve this?



type Exception report

message 

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

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
   [javac] Compiling 1 source file



	at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
	at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
	at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
	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.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 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.processConnection(Http11Protocol.java:386)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
	at java.lang.Thread.run(Thread.java:536)



 




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




RE: Problems with installation on win2k advanced server (Java exceptions thrown)

2003-01-08 Thread Ghershony, Arie
is any one using Axis and Tomcat.  I have dificulties running a web service.


Thanks
Eric

-Original Message-
From: Mr. Cristian Romanescu [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 4:09 PM
To: Tomcat Users List
Subject: Re: Problems with installation on win2k advanced server (Java
exceptions thrown)


Hi!

I remember we had the same problem on the web server where using Tomcat 
4.0.3 with JDK 1.3.1, so the resolution was to upgrade both Tomcat  JDK
since on the test server (Tomcat 4.1.12 + JDK 1.4.1_01 worked 
perfectly). From what I could see you are using latest version of 
Tomcat, maybe try upgrading JDK (I don't think will resolve, but it's an 
idea)

Did you tried to request other pages (not index.jsp) and see if they 
compile...?
Also you could try another version of Tomcat, I think...

Hope this helps...

Cristian.


Tammer Salem wrote:

Hi,
I just installed Tomcat 4.1.18 on win2k advanced server (and running J2SDK
1.4). I keep on getting a Java exception when I use
(http://localhost:8080/).
I've included the error below.
Does anyone have any idea how to solve this?



type Exception report

message 

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

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file



   at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:130)
   at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2
93)
   at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
   at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
74)
   at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
84)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
   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
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 

Problem with invalidating a session

2003-01-08 Thread Ralph Einfeldt

I have following little jsp:

htmlheadtitle/title/headbody
%

  // Stripped down to the bare minimum. In the real life
  // this is intended to happen only on specific conditions
  session.invalidate();
  session = request.getSession(true);

  // Now there is a new session
  session.putValue(Test, Test);

%jsp:useBean
   id=testbean
   class=java.lang.String
   scope=session
/
Some Content (Only reached with Scope != session)
/body/html

The useBean with scope session fails as the pageContext
holds a reference to the invalidated session.
That causes tomcat to throw a IllegalStateException:
getAttribute: Session already invalidated

Although I quite understand why this happens, I couldn't find
in the 1.2 Spec anything that denies this kind of usage.

Is the spec just not precise enough or am I to blind to see it ?

Has anybody a solution to work around this problem beside using 
a response.redirect() directly after invalidating the session?

BTW: Please don't shout 'Do not use scriptlets in jsps', the
code has to run in a jsp engine that doesn't support taglibs 
and filters. 



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




Re: limiting access by IP address

2003-01-08 Thread Rasputin
* Joel Rees [EMAIL PROTECTED] [0146 08:46]:
  You can do the
  same things with Valves and Filters for free.
 
 Stupid question, but what exactly is the point of limiting access by IP
 address? (IP addresses being spoofable, and all, ...)

Well, yeah, but if you assume your network is intact
(not necessarily secure), then  it's worth having.

In practice, IPs are fairly hard to spoof without breaking routing.

-- 
Rasputin :: Jack of All Trades - Master of Nuns

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




Simultanous access to Ajp13 connector by more than one apache?

2003-01-08 Thread Steinar Bang
Platform: Intel PIII, debian testing/unstable (sarge)
  Blackdown JDK 1.3.1 (j2sdk 1.3.1.0b-2),
  tomcat4 4.1.16-1,
  apache 1.3.26-1.1, apache-ssl 1.3.26+1.48-2

Is it possible to access an Ajp13 connector in tomcat 4.1.x at the
same time, by more than one apache web server?

The reason I'm asking is that debian package apache without SSL and
apache with SSL as separate daemon processes.

I'm seeing some strange behaviour right now (sometimes it's possible
to connect to the Ajp13 connector on port 8009, sometimes it's not.
Sometimes it works, sometimes it doesn't), and I was wondering if this
was caused by two separate clients attempting to access the Ajp13
connector simultanously?

All info appreciated!

Thanx!


- Steinar


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




RE: Simultanous access to Ajp13 connector by more than one apache?

2003-01-08 Thread Turner, John

Does the behavior go away if you setup a second Ajp13Connector on another
port, say 8019?

John


 -Original Message-
 From: Steinar Bang [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 08, 2003 7:51 AM
 To: [EMAIL PROTECTED]
 Subject: Simultanous access to Ajp13 connector by more than 
 one apache?
 
 
 Platform: Intel PIII, debian testing/unstable (sarge)
 Blackdown JDK 1.3.1 (j2sdk 1.3.1.0b-2),
 tomcat4 4.1.16-1,
 apache 1.3.26-1.1, apache-ssl 1.3.26+1.48-2
 
 Is it possible to access an Ajp13 connector in tomcat 4.1.x at the
 same time, by more than one apache web server?
 
 The reason I'm asking is that debian package apache without SSL and
 apache with SSL as separate daemon processes.
 
 I'm seeing some strange behaviour right now (sometimes it's possible
 to connect to the Ajp13 connector on port 8009, sometimes it's not.
 Sometimes it works, sometimes it doesn't), and I was wondering if this
 was caused by two separate clients attempting to access the Ajp13
 connector simultanously?
 
 All info appreciated!
 
 Thanx!
 
 
 - Steinar
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




Resource - Cannot load JDBC driver class 'null'

2003-01-08 Thread afterz
Hello,
I created a DataSource(jdbc/SAA) through Tomcat
 Administration and put into my web.xml:

resource-ref
descriptionDownload example/description
res-ref-namejdbc/SAA/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref

But when I try to use it I get the following error:

java.lang.Exception: java.sql.SQLException: Cannot load
 JDBC driver class 'null'

Tomcat changed by itself the server.xml with many things
 like:

Context
 className=org.apache.catalina.core.StandardContext
 cachingAllowed=true
 charsetMapperClass=org.apache.catalina.util.CharsetMapper
 cookies=true crossContext=false debug=0
 docBase=D:\java\jakarta-tomcat-4.1.12\webapps\sampleFilters
 mapperClass=org.apache.catalina.core.StandardContextMapper
 path=/sampleFilters privileged=false
 reloadable=false swallowOutput=false useNaming=true
 wrapperClass=org.apache.catalina.core.StandardWrapper
Resource auth=Container description=Download example
 name=jdbc/SAA scope=Shareable
 type=javax.sql.DataSource/
/Context

I searched other lists and found out that many people had
 this problem, but I found no soulution.
Could somebody help me?

Thanks.
Ricardo Costa.

Don't E-Mail, ZipMail! http://www.zipmail.com/

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




Re: Problem with invalidating a session

2003-01-08 Thread Tim Funk
From the Servlet 2.3 Spec. (Some info snipped for brevity)

HttpSerlvetRequest.getSession(boolean)
Returns the current HttpSession associated with this request or, if if 
there is no current session and create is true, returns a new session. 
Parameters:
codetrue/code - to create a new session for this request if 
necessary; false to return null if there’s no current session
Returns: the HttpSession associated with this request or null if create 
is false and the request has no valid session

HttpSession.setAttribute(String, Object)
Throws: IllegalStateException - if this method is called on an 
invalidated session


Your code invalidates the session. getSession(true) is returning a 
reference to session you just the invalidated. There is no way to 
retrieve a new session. This behavior is correct for 
getSession(boolean) since a HttpSession is already been bound to the 
request. Since you invalidated it, the session becomes worthless. At 
that point, issuing a sendRedirect needs to be done to issue a new 
browser request to obtain a new session.

My main point is getSession(true) must return a HttpSession. There is 
nothing in the spec that states if a session becomes invalidated during 
the life of a request, that getSession(true) must return a new session.

-Tim

Ralph Einfeldt wrote:
I have following little jsp:

htmlheadtitle/title/headbody
%

  // Stripped down to the bare minimum. In the real life
  // this is intended to happen only on specific conditions
  session.invalidate();
  session = request.getSession(true);

  // Now there is a new session
  session.putValue(Test, Test);

%jsp:useBean
   id=testbean
   class=java.lang.String
   scope=session
/
Some Content (Only reached with Scope != session)
/body/html

The useBean with scope session fails as the pageContext
holds a reference to the invalidated session.
That causes tomcat to throw a IllegalStateException:
getAttribute: Session already invalidated

Although I quite understand why this happens, I couldn't find
in the 1.2 Spec anything that denies this kind of usage.

Is the spec just not precise enough or am I to blind to see it ?

Has anybody a solution to work around this problem beside using 
a response.redirect() directly after invalidating the session?

BTW: Please don't shout 'Do not use scriptlets in jsps', the
code has to run in a jsp engine that doesn't support taglibs 
and filters. 



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





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




Special SSL Request

2003-01-08 Thread Trickel, EE Erik (3946)

Has anyone configured Apache to only use triple DES for the
symmetric cipher under SSL?  Is this a code change where I simply disable
all the other algs. in the source code or can I make some kind of
configuration change?  My last question, how do I test this, once I have
made the configuration/code change?

Any help is greatly appreciated.

Thank you,
Erik

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




RE: Problem with invalidating a session

2003-01-08 Thread Ralph Einfeldt
See below:

 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 08, 2003 2:14 PM
 To: Tomcat Users List
 Subject: Re: Problem with invalidating a session

 Your code invalidates the session. getSession(true) is returning a 
 reference to session you just the invalidated.

No it's a new session. (getId() returns a different value)

If that would be the problem the exception would already be
thrown in 'session.putValue(Test, Test)', but it is thrown
in PageContextImpl.getAttribute() (which part of the generated 
code for use bean) if the scope of the bean is session.

The real problem is, that pageContext has still a reference
the the invalidated session.

 My main point is getSession(true) must return a HttpSession. There is 
 nothing in the spec that states if a session becomes invalidated 
 during the life of a request, that getSession(true) must return a 
 new session.

Here you have a point. I have read this in an older spec:

HttpSession getSession(boolean create)

 Gets the current valid session associated with this request...

Note the additional word 'valid'. This lead me to the conclusion
it would create a session after the current session is invalidated.
As two implementations (tomcat and gnujsp) behave in that way I 
didn't look in the current servlet spec to verify that.

So to be realy spec compliant I have to omit that solution :{.

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




RE: Special SSL Request

2003-01-08 Thread Ralph Einfeldt
Have a look at

http://httpd.apache.org/docs-2.0/mod/mod_ssl.html#sslciphersuite

(Although this is for apache 2.0 it applies also to apache 1.3)

 -Original Message-
 From: Trickel, EE Erik (3946) [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 08, 2003 2:37 PM
 To: '[EMAIL PROTECTED]'
 Subject: Special SSL Request
 
   Has anyone configured Apache to only use triple DES for the
 symmetric cipher under SSL?  Is this a code change where I 
 simply disable all the other algs. in the source code or can I 
 make some kind of
 configuration change?  My last question, how do I test this, 
 once I have made the configuration/code change?
 

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




Part #2, building mod_jk errors... Need help

2003-01-08 Thread Jean-Luc BEAUDET
Hi John and Denise !

Well, thanks a lot for yur answers.

I did what john adviced in the Building JK Connector, except that my gcc
is 3.2.

I entered ./buildconf.sh -- no errors.
I then added ./configure \
--with-apxs=/usr/local/Apache-1.3.26/bin/apxs \
--with-apr=./apr-0.9.1

The ./configure contains some errors in config.log but i'm not hard
enough in compiling to well understand them.
The gcc i have comes from Sunfreeware site and is compiled with
/usr/ccs/bin/ld and /usr/ccs/bin/as. The paths are bind
to gcc and i think that autoconf keep those values make the
./configure... even if i declare a PATH=/usr/sbin:/usr/bin:/usr/local/bin

The last error message issue from make cmd is:
../..
gcc -shared  mod_jk.lo ../common/jk_ajp12_worker.lo
../common/jk_connect.lo ../common/jk_msg_buff.lo ../common/jk_util.lo
../common/jk_ajp13.lo ../common/jk_pool.lo ../common/jk_worker.lo
../common/jk_ajp13_worker.lo ../common/jk_lb_worker.lo
../common/jk_sockbuf.lo ../common/jk_map.lo
../common/jk_uri_worker_map.lo ../common/jk_ajp14.lo
../common/jk_ajp14_worker.lo ../common/jk_md5.lo
../common/jk_ajp_common.lo ../common/jk_context.lo  -lc  -Wl,-soname
-Wl,mod_jk.so.0 -o .libs/mod_jk.so.0.0.0
ld: warning: option -o appears more than once, first setting taken
ld: fatal: file mod_jk.so.0: open failed: No such file or directory
ld: fatal: File processing errors. No output written to
.libs/mod_jk.so.0.0.0
collect2: ld returned 1 exit status
make[1]: *** [mod_jk.la] Error 1
make[1]: Leaving directory
`/usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/native/apache-1.3'
make: *** [all-recursive] Error 1
petrus:/usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/native #

Does it makes sense to someone ?

Can yu help ?

I'm a bit stuck, yu know...

Regards.

Jean-Luc :O)


Turner, John wrote:

Also, you might want to check my Solaris HOWTO at
http://www.johnturner.com/howto

There are other GNU tools you need to have besides gcc in order to do the
build, there is a list of them on my site and you can get them in Sun
package format from http://www.sunfreeware.com

Also, I had problems with gcc 3.something, when I dropped back to gcc 
2.95.3
the problems went away.  I don't remember exactly what the problems were.

John


-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 10:09 AM
To: 'Tomcat Users List'
Subject: RE: building mod_jk errors...


Might help the list to know where it fails?  : ) What is the
error message
it gives?

Denise


-Original Message-
From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 9:54 AM
To: tomcat-user
Subject: building mod_jk errors...


  Hi All !

Runnin' SOLARIS 8
gcc 3.2
Perl 5.8.0
Apache 1.3.26
Tomcat 4.1.18
Java 1.4.1_01-b01

I download the connectors sources from jakarta site.

I tried hard to compile the mod_jk connector by the way

./configure --with-apxs=/usr/local/Apache-1.3.26/bin/apxs

but the make always fails...

I'm looking for someone who had the same problems with around
the same
configuration.

Any help or clues really appreciated.

Regards.

Jean-Luc :O)







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

--
To unsubscribe, e-mail:

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

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




This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.53.  Invocation command line was

  $ ./configure --with-apxs=/usr/local/Apache-1.3.26/bin/apxs --with-apr=./apr 
--with-ld=/usr/local/bin/ld

## - ##
## Platform. ##
## - ##

hostname = petrus.fr.kodak.com
uname -m = sun4u
uname -r = 5.8
uname -s = SunOS
uname -v = Generic_108528-15

/usr/bin/uname -p = sparc
/bin/uname -X = System = SunOS
Node = petrus.fr.kodak.com
Release = 5.8
KernelID = Generic_108528-15
Machine = sun4u
BusType = unknown
Serial = unknown
Users = unknown
OEM# = 0
Origin# = 1
NumCPU = 1

/bin/arch  = sun4
/usr/bin/arch -k   = sun4u
/usr/convex/getsysinfo = unknown
hostinfo   = unknown
/bin/machine   = unknown
/usr/bin/oslevel   = unknown
/bin/universe  = unknown

PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/local/bin
PATH: /usr/ccs/bin


## --- ##
## Core tests. ##
## --- ##

configure:1416: checking for a BSD-compatible install
configure:1470: result: scripts/build/unix/install-sh -c
configure:1481: checking whether build environment is sane
configure:1524: result: yes
configure:1557: checking for gawk
configure:1573: found /usr/local/bin/gawk
configure:1583: result: gawk
configure:1593: checking whether make sets ${MAKE}
configure:1613: result: yes
configure:1833: checking build system type

Repost: Double Login

2003-01-08 Thread Nathan McMinn
Hi all,

Some of you had been kind enough to assist with this issue I posted
previously.  I had thought it was fixed, but it has appeared again.  Any
ideas?


I recently switched a web application from a memory realm to a JDBC realm
for authentication.  After making the switch, the web app now requires that
users log in twice.  The app is running with SSL, and using Basic
authentication.  The Login.jsp page listed in the XML below as the welcome
file simply sets up session objects, etc.  The first login occurs before the
Login.jsp page will load.  Once all of the session setup is complete, the
Login.jsp page forwards the user to the application's main menu.  It is at
this point that the system asks for another login.  Has anyone seen this
behavior before? I've already searched Google, JGuru, etc etc.  This is the
current web.xml for the application having the problem.  Any help would be
greatly appreciated.

Thanks..
Nathan McMinn

web-app

mime-mapping
  extensionjs/extension
  mime-typetext/javascript/mime-type
/mime-mapping

  welcome-file-list
welcome-fileLogin.jsp/welcome-file
  /welcome-file-list

security-constraint
  display-nameWWEX Security Constraint/display-name
  web-resource-collection
 web-resource-nameDELETED/web-resource-name
 !-- Define the context-relative URL(s) to be protected --
 url-pattern/*/url-pattern
  /web-resource-collection
  auth-constraint
 !-- Anyone with one of the listed roles may access this area --
 role-nameuser/role-name
  /auth-constraint
  user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
/security-constraint

login-config
  auth-methodBASIC/auth-method
  realm-nameDELETED/realm-name
/login-config

/web-app



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




RE: Need to start standalone application

2003-01-08 Thread Ricardo_Bosch
look into rmi activation or creating your editing the startup.sh script.

-Original Message-
From: Prakash Venkatesh [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 5:21 AM
To: [EMAIL PROTECTED]
Subject: Need to start standalone application


Hi,

I need to start an standalone JAVA application, while
starting my web application from Tomcat.

How to achieve this using Tomcat 3.2 and Tomcat 4.0?  

Any comments on these will be appreciated.

Regards,
Prakash

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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

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




RE: Part #2, building mod_jk errors... Need help

2003-01-08 Thread Turner, John

I've never used --with-apr.  Other than that, I don't really have a
solution or suggestion.

John


 -Original Message-
 From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 08, 2003 9:06 AM
 To: Tomcat Users List
 Subject: Part #2, building mod_jk errors... Need help
 
 
 Hi John and Denise !
 
 Well, thanks a lot for yur answers.
 
 I did what john adviced in the Building JK Connector, except 
 that my gcc
 is 3.2.
 
 I entered ./buildconf.sh -- no errors.
 I then added ./configure \
 --with-apxs=/usr/local/Apache-1.3.26/bin/apxs \
 --with-apr=./apr-0.9.1
 
 The ./configure contains some errors in config.log but i'm not hard
 enough in compiling to well understand them.
 The gcc i have comes from Sunfreeware site and is compiled with
 /usr/ccs/bin/ld and /usr/ccs/bin/as. The paths are bind
 to gcc and i think that autoconf keep those values make the
 ./configure... even if i declare a 
 PATH=/usr/sbin:/usr/bin:/usr/local/bin
 
 The last error message issue from make cmd is:
 ../..
 gcc -shared  mod_jk.lo ../common/jk_ajp12_worker.lo
 ../common/jk_connect.lo ../common/jk_msg_buff.lo ../common/jk_util.lo
 ../common/jk_ajp13.lo ../common/jk_pool.lo ../common/jk_worker.lo
 ../common/jk_ajp13_worker.lo ../common/jk_lb_worker.lo
 ../common/jk_sockbuf.lo ../common/jk_map.lo
 ../common/jk_uri_worker_map.lo ../common/jk_ajp14.lo
 ../common/jk_ajp14_worker.lo ../common/jk_md5.lo
 ../common/jk_ajp_common.lo ../common/jk_context.lo  -lc  -Wl,-soname
 -Wl,mod_jk.so.0 -o .libs/mod_jk.so.0.0.0
 ld: warning: option -o appears more than once, first setting taken
 ld: fatal: file mod_jk.so.0: open failed: No such file or directory
 ld: fatal: File processing errors. No output written to
 .libs/mod_jk.so.0.0.0
 collect2: ld returned 1 exit status
 make[1]: *** [mod_jk.la] Error 1
 make[1]: Leaving directory
 `/usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/native
 /apache-1.3'
 make: *** [all-recursive] Error 1
 petrus:/usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/native #
 
 Does it makes sense to someone ?
 
 Can yu help ?
 
 I'm a bit stuck, yu know...
 
 Regards.
 
 Jean-Luc :O)
 
 
 Turner, John wrote:
 
  Also, you might want to check my Solaris HOWTO at
  http://www.johnturner.com/howto
  
  There are other GNU tools you need to have besides gcc in 
 order to do the
  build, there is a list of them on my site and you can get 
 them in Sun
  package format from http://www.sunfreeware.com
  
  Also, I had problems with gcc 3.something, when I dropped 
 back to gcc 
 2.95.3
  the problems went away.  I don't remember exactly what the 
 problems were.
  
  John
  
  
  -Original Message-
  From: Denise Mangano [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, January 07, 2003 10:09 AM
  To: 'Tomcat Users List'
  Subject: RE: building mod_jk errors...
  
  
  Might help the list to know where it fails?  : ) What is the
  error message
  it gives?
  
  Denise
  
  
  -Original Message-
  From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, January 07, 2003 9:54 AM
  To: tomcat-user
  Subject: building mod_jk errors...
  
  
Hi All !
  
  Runnin' SOLARIS 8
  gcc 3.2
  Perl 5.8.0
  Apache 1.3.26
  Tomcat 4.1.18
  Java 1.4.1_01-b01
  
  I download the connectors sources from jakarta site.
  
  I tried hard to compile the mod_jk connector by the way
  
  ./configure --with-apxs=/usr/local/Apache-1.3.26/bin/apxs
  
  but the make always fails...
  
  I'm looking for someone who had the same problems with around
  the same
  configuration.
  
  Any help or clues really appreciated.
  
  Regards.
  
  Jean-Luc :O)
  
  
  
  
  
  
  
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  --
  To unsubscribe, e-mail:
  
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  --
  To unsubscribe, e-mail: 
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
  
  
 
 
 

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




RE: Repost: Double Login

2003-01-08 Thread Troy J. Kelley
Are you using cookies or URL re-writing for session identifier?

Are you doing anything funky with domain names or other such trickery
which would cause your cookie to not be available upon doing the
forward?

-Troy

-Original Message-
From: Nathan McMinn [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 08, 2003 9:07 AM
To: [EMAIL PROTECTED]
Subject: Repost: Double Login

Hi all,

Some of you had been kind enough to assist with this issue I posted
previously.  I had thought it was fixed, but it has appeared again.  Any
ideas?


I recently switched a web application from a memory realm to a JDBC
realm
for authentication.  After making the switch, the web app now requires
that
users log in twice.  The app is running with SSL, and using Basic
authentication.  The Login.jsp page listed in the XML below as the
welcome
file simply sets up session objects, etc.  The first login occurs before
the
Login.jsp page will load.  Once all of the session setup is complete,
the
Login.jsp page forwards the user to the application's main menu.  It is
at
this point that the system asks for another login.  Has anyone seen this
behavior before? I've already searched Google, JGuru, etc etc.  This is
the
current web.xml for the application having the problem.  Any help would
be
greatly appreciated.

Thanks..
Nathan McMinn

web-app

mime-mapping
  extensionjs/extension
  mime-typetext/javascript/mime-type
/mime-mapping

  welcome-file-list
welcome-fileLogin.jsp/welcome-file
  /welcome-file-list

security-constraint
  display-nameWWEX Security Constraint/display-name
  web-resource-collection
 web-resource-nameDELETED/web-resource-name
 !-- Define the context-relative URL(s) to be protected --
 url-pattern/*/url-pattern
  /web-resource-collection
  auth-constraint
 !-- Anyone with one of the listed roles may access this area
--
 role-nameuser/role-name
  /auth-constraint
  user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
/security-constraint

login-config
  auth-methodBASIC/auth-method
  realm-nameDELETED/realm-name
/login-config

/web-app



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



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




Re: Repost: Double Login

2003-01-08 Thread Nathan McMinn
Nope, it is just HTTP BASIC authentication, running over SSL.  And there is
no magic url or domain trickery going on.  The really unusual part is that
with a memory realm, I didn't have this problem.  It only popped up after
switching to a JDBC Realm.

- Original Message -
From: Troy J. Kelley [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, January 08, 2003 8:23 AM
Subject: RE: Repost: Double Login


 Are you using cookies or URL re-writing for session identifier?

 Are you doing anything funky with domain names or other such trickery
 which would cause your cookie to not be available upon doing the
 forward?

 -Troy

 -Original Message-
 From: Nathan McMinn [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 08, 2003 9:07 AM
 To: [EMAIL PROTECTED]
 Subject: Repost: Double Login

 Hi all,

 Some of you had been kind enough to assist with this issue I posted
 previously.  I had thought it was fixed, but it has appeared again.  Any
 ideas?


 I recently switched a web application from a memory realm to a JDBC
 realm
 for authentication.  After making the switch, the web app now requires
 that
 users log in twice.  The app is running with SSL, and using Basic
 authentication.  The Login.jsp page listed in the XML below as the
 welcome
 file simply sets up session objects, etc.  The first login occurs before
 the
 Login.jsp page will load.  Once all of the session setup is complete,
 the
 Login.jsp page forwards the user to the application's main menu.  It is
 at
 this point that the system asks for another login.  Has anyone seen this
 behavior before? I've already searched Google, JGuru, etc etc.  This is
 the
 current web.xml for the application having the problem.  Any help would
 be
 greatly appreciated.

 Thanks..
 Nathan McMinn

 web-app

 mime-mapping
   extensionjs/extension
   mime-typetext/javascript/mime-type
 /mime-mapping

   welcome-file-list
 welcome-fileLogin.jsp/welcome-file
   /welcome-file-list

 security-constraint
   display-nameWWEX Security Constraint/display-name
   web-resource-collection
  web-resource-nameDELETED/web-resource-name
  !-- Define the context-relative URL(s) to be protected --
  url-pattern/*/url-pattern
   /web-resource-collection
   auth-constraint
  !-- Anyone with one of the listed roles may access this area
 --
  role-nameuser/role-name
   /auth-constraint
   user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
   /user-data-constraint
 /security-constraint

 login-config
   auth-methodBASIC/auth-method
   realm-nameDELETED/realm-name
 /login-config

 /web-app



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



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




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




website for Jk2 and virtual hosts

2003-01-08 Thread Kemp Randy-W18971
Is there any websites, besides the Tomcat site, for a how to on building and
using the JK2 connector?
Is there any websites, besides the Tomcat site, for a how to on building and
using the JK2 connector WITH virtual hosts?
Anyone care to share any example configuration test files, such as workers.
properties, etc?


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




RE: HP-UX 10.20 + Oracle

2003-01-08 Thread John Clark



Hi I am offsite today, so not sure if this will work, anyway.

I have tried setting LD_LIBRARY_PATH but it still does not work.

I suspect that I have conflicting versions or classes, so my questions
are:

1. Where should I get classes12 or classes111 from for HPUX 10.2 and
Oracle 8.0.4
   (the ones I am using are copied from Linux)
2. I have seen mentioned that an associated DLL is required, which one?
and where
   should it go?


Thanks once again

John





Make sure you have the LD_LIBRARY_PATH environment variable set to
$ORACLE_HOME/lib (I think  :-\ )  At least you have to on Linux.

-Original Message-
From: John Clark [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 1:13 PM
To: 'Tomcat Users List'
Subject: RE: HP-UX 10.20 + Oracle


Mark:
I tried changing to classes111.jar, but now get this error:

java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path

Also I should point out that I am using Oracle 8.0.4 on HP.

Thanks for the suggestions though


-Original Message-
From: p niemandt [mailto:[EMAIL PROTECTED]] 
Sent: 07 January 2003 18:25
To: Tomcat Users List
Subject: RE: HP-UX 10.20 + Oracle

As far as I know you should use ojdbc14.jar for Oracle9: Though previous
ones should work, the ojdbc14.jar is recommended / needed for Oracle9.

{The classnames are different between classes12.jar and the new
ojdbc14.jar}



On Tue, 2003-01-07 at 17:57, Wagoner, Mark wrote:
 I think classes12.jar is for JDK 1.2.  You want classes111.jar (if you
can
 find it).
 
 -Original Message-
 From: John Clark [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 07, 2003 12:54 PM
 To: 'Tomcat Users List'
 Subject: HP-UX 10.20 + Oracle
 
 
 Hi there,
 
 The story so far: I have an intranet application that currently runs
on a
 Linux server (with Oracle 9i - built-in Apache) and W2000 server (with
 Tomcat 4.x connecting to Oracle 8). It is written in JSP and Java, and
works
 fine.
 
 I now want to use HP-UX 10.20 as a server, so I got the only available
JDK
 from HP which is version 1.1.8 and this has forced me to use Tomcat
3.3.1.
 This is all running now (thanks for the help) and I am now testing the
 application.
 
 I have put in the Oracle classes12.jar and
DriverManager.registerDriver
 seems fine, but DriverManager.getConnection gives the following error
(only
 partial list):
 
 java.lang.ClassNotFoundException: java.util.Map
  at org.apache.tomcat.util.compat.SimpleClassLoader.loadClass(Compiled
Code)
  at java.lang.ClassLoader.loadClassInternal(Compiled Code)
  at

oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:
358)
  at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
  at java.sql.DriverManager.getConnection(DriverManager.java:83)
  at java.sql.DriverManager.getConnection(DriverManager.java:126)
  at
estimating._final.loginvalidate_1._jspService(loginvalidate_1.java:123)
 
 Anyone got any ideas?
 
 Many thanks as usual.
 
 John
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 




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




RE: HP-UX 10.20 + Oracle

2003-01-08 Thread Wagoner, Mark
Your best bet would be the Oracle web site (otn.oracle.com).  The only thing
that uses DLLs is Windows, so that won't apply to HP-UX or Linux.

-Original Message-
From: John Clark [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 8:03 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: HP-UX 10.20 + Oracle





Hi I am offsite today, so not sure if this will work, anyway.

I have tried setting LD_LIBRARY_PATH but it still does not work.

I suspect that I have conflicting versions or classes, so my questions
are:

1. Where should I get classes12 or classes111 from for HPUX 10.2 and
Oracle 8.0.4
   (the ones I am using are copied from Linux)
2. I have seen mentioned that an associated DLL is required, which one?
and where
   should it go?


Thanks once again

John





Make sure you have the LD_LIBRARY_PATH environment variable set to
$ORACLE_HOME/lib (I think  :-\ )  At least you have to on Linux.

-Original Message-
From: John Clark [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 1:13 PM
To: 'Tomcat Users List'
Subject: RE: HP-UX 10.20 + Oracle


Mark:
I tried changing to classes111.jar, but now get this error:

java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path

Also I should point out that I am using Oracle 8.0.4 on HP.

Thanks for the suggestions though


-Original Message-
From: p niemandt [mailto:[EMAIL PROTECTED]] 
Sent: 07 January 2003 18:25
To: Tomcat Users List
Subject: RE: HP-UX 10.20 + Oracle

As far as I know you should use ojdbc14.jar for Oracle9: Though previous
ones should work, the ojdbc14.jar is recommended / needed for Oracle9.

{The classnames are different between classes12.jar and the new
ojdbc14.jar}



On Tue, 2003-01-07 at 17:57, Wagoner, Mark wrote:
 I think classes12.jar is for JDK 1.2.  You want classes111.jar (if you
can
 find it).
 
 -Original Message-
 From: John Clark [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 07, 2003 12:54 PM
 To: 'Tomcat Users List'
 Subject: HP-UX 10.20 + Oracle
 
 
 Hi there,
 
 The story so far: I have an intranet application that currently runs
on a
 Linux server (with Oracle 9i - built-in Apache) and W2000 server (with
 Tomcat 4.x connecting to Oracle 8). It is written in JSP and Java, and
works
 fine.
 
 I now want to use HP-UX 10.20 as a server, so I got the only available
JDK
 from HP which is version 1.1.8 and this has forced me to use Tomcat
3.3.1.
 This is all running now (thanks for the help) and I am now testing the
 application.
 
 I have put in the Oracle classes12.jar and
DriverManager.registerDriver
 seems fine, but DriverManager.getConnection gives the following error
(only
 partial list):
 
 java.lang.ClassNotFoundException: java.util.Map
  at org.apache.tomcat.util.compat.SimpleClassLoader.loadClass(Compiled
Code)
  at java.lang.ClassLoader.loadClassInternal(Compiled Code)
  at

oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:
358)
  at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
  at java.sql.DriverManager.getConnection(DriverManager.java:83)
  at java.sql.DriverManager.getConnection(DriverManager.java:126)
  at
estimating._final.loginvalidate_1._jspService(loginvalidate_1.java:123)
 
 Anyone got any ideas?
 
 Many thanks as usual.
 
 John
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 




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

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




tomcat Error

2003-01-08 Thread Elif Akten

Hi,
anybody knows is error?

The requested method POST is not allowed for the URL /XX.jsp

infact this jsp file is working with IPlanet webServer


_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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



ERROR IN TOMCAT 4.18 + APACHE 2.0.43 + JK2 CONNECTOR

2003-01-08 Thread Krishna_R . _Nagaraj


problem.doc
Description: MS-Word document
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: HP-UX 10.20 + Oracle

2003-01-08 Thread PELOQUIN,JEFFREY (HP-Boise,ex1)
John,

I sent two version of the classes111.jar we have used on our HP-UX 11.0
system to your account in order not to clutter up people boxes with the zip
file.

I do not know why they are different but I have discovered with the
classes12.jar that they come in
vastly different vintages.  I upgraded a linux system once and got the
latest and greatest classes12 from oracle since it was easier than copy it
from the old server I had.  Some of the functionality of the site ceased to
work until I rolled back to the prior version that was three years older.

Jeff

-Original Message-
From: John Clark [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 6:03 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: HP-UX 10.20 + Oracle





Hi I am offsite today, so not sure if this will work, anyway.

I have tried setting LD_LIBRARY_PATH but it still does not work.

I suspect that I have conflicting versions or classes, so my questions
are:

1. Where should I get classes12 or classes111 from for HPUX 10.2 and
Oracle 8.0.4
   (the ones I am using are copied from Linux)
2. I have seen mentioned that an associated DLL is required, which one?
and where
   should it go?


Thanks once again

John





Make sure you have the LD_LIBRARY_PATH environment variable set to
$ORACLE_HOME/lib (I think  :-\ )  At least you have to on Linux.

-Original Message-
From: John Clark [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 1:13 PM
To: 'Tomcat Users List'
Subject: RE: HP-UX 10.20 + Oracle


Mark:
I tried changing to classes111.jar, but now get this error:

java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path

Also I should point out that I am using Oracle 8.0.4 on HP.

Thanks for the suggestions though


-Original Message-
From: p niemandt [mailto:[EMAIL PROTECTED]] 
Sent: 07 January 2003 18:25
To: Tomcat Users List
Subject: RE: HP-UX 10.20 + Oracle

As far as I know you should use ojdbc14.jar for Oracle9: Though previous
ones should work, the ojdbc14.jar is recommended / needed for Oracle9.

{The classnames are different between classes12.jar and the new
ojdbc14.jar}



On Tue, 2003-01-07 at 17:57, Wagoner, Mark wrote:
 I think classes12.jar is for JDK 1.2.  You want classes111.jar (if you
can
 find it).
 
 -Original Message-
 From: John Clark [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 07, 2003 12:54 PM
 To: 'Tomcat Users List'
 Subject: HP-UX 10.20 + Oracle
 
 
 Hi there,
 
 The story so far: I have an intranet application that currently runs
on a
 Linux server (with Oracle 9i - built-in Apache) and W2000 server (with
 Tomcat 4.x connecting to Oracle 8). It is written in JSP and Java, and
works
 fine.
 
 I now want to use HP-UX 10.20 as a server, so I got the only available
JDK
 from HP which is version 1.1.8 and this has forced me to use Tomcat
3.3.1.
 This is all running now (thanks for the help) and I am now testing the
 application.
 
 I have put in the Oracle classes12.jar and
DriverManager.registerDriver
 seems fine, but DriverManager.getConnection gives the following error
(only
 partial list):
 
 java.lang.ClassNotFoundException: java.util.Map
  at org.apache.tomcat.util.compat.SimpleClassLoader.loadClass(Compiled
Code)
  at java.lang.ClassLoader.loadClassInternal(Compiled Code)
  at

oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:
358)
  at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
  at java.sql.DriverManager.getConnection(DriverManager.java:83)
  at java.sql.DriverManager.getConnection(DriverManager.java:126)
  at
estimating._final.loginvalidate_1._jspService(loginvalidate_1.java:123)
 
 Anyone got any ideas?
 
 Many thanks as usual.
 
 John
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 




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

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




Re: Repost: Double Login

2003-01-08 Thread Mike W-M
Just a few thoughts since it looks like the JDBC realm that's causing you
the problem.
(And you don't say what Tomcat version you're using.)

When I setup my own JDBC realm (for form-based-authentication) I noticed
that its error handling wasn't all that hot.  If the call errored (e.g.
because I'd specified incorrect table or column names) it just looked like a
failed logon.  Maybe the first call is failing so the user's asked to log on
again?  (Tomcat 4.0.4)

Also, what happens if you don't request the logon page first but request
another protected page?  (You may get errors generated, but at least that
means your request got through...)  How many times are you asked to
authenticate then?  If it's only one then that points to something your
logon page is doing, right?

Mike.

- Original Message -
From: Nathan McMinn [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, January 08, 2003 2:26 PM
Subject: Re: Repost: Double Login


Nope, it is just HTTP BASIC authentication, running over SSL.  And there is
no magic url or domain trickery going on.  The really unusual part is that
with a memory realm, I didn't have this problem.  It only popped up after
switching to a JDBC Realm.

- Original Message -
From: Troy J. Kelley [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, January 08, 2003 8:23 AM
Subject: RE: Repost: Double Login


 Are you using cookies or URL re-writing for session identifier?

 Are you doing anything funky with domain names or other such trickery
 which would cause your cookie to not be available upon doing the
 forward?

 -Troy

 -Original Message-
 From: Nathan McMinn [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 08, 2003 9:07 AM
 To: [EMAIL PROTECTED]
 Subject: Repost: Double Login

 Hi all,

 Some of you had been kind enough to assist with this issue I posted
 previously.  I had thought it was fixed, but it has appeared again.  Any
 ideas?

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




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




RE: RewriteRules and Standalone Tomcat

2003-01-08 Thread Turner, John

Beat me with a stick if I'm wrong, but RewriteRule is for Apache when using
mod_rewrite, I don't think you can use it in server.xml or web.xml.

John


 -Original Message-
 From: neal [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 08, 2003 4:51 AM
 To: Tomcat Users List
 Subject: RewriteRules and Standalone Tomcat
 
 
 What exaclty is a RewriteRule and how is it used with 
 Standalone Tomcat? Do
 I define my RewriteRules somewhere in server.xml or web.xml?
 
 A couple of months ago, Noel told me how I could get Tomcat 
 to show the
 content of the default welcome page without redirecting (http 
 302) to the
 file, using a RewriteRule.  I took notes from that email and 
 set it aside
 only to realize when I returned ... that I have no idea what 
 to do with this
 info!  And of course no info is available (that I could find) 
 online or in
 the Tomcat manual explaining this.  :(
 
 Could someone please explain how this RewriteRule would be 
 integrated into
 Tomcat:
 
   RewriteRule  ^/$  /index.html   [L]
 
 Thanks!
 Neal
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002
  
 

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




Re: Repost: Double Login

2003-01-08 Thread Nathan McMinn
Oh, I am running 4.0.6, using the JDBC - ODBC bridge, and the database is a
D3 MultiValue system (legacy system).

And after checking the logs, I find a copy of this error trace for every
login

java.sql.SQLException: [Microsoft][ODBC Driver Manager] Function sequence
error
 at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6879)
 at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7036)
 at sun.jdbc.odbc.JdbcOdbc.SQLExecute(JdbcOdbc.java:3104)
 at
sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(JdbcOdbcPreparedStatement.ja
va:214)
 at
sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeQuery(JdbcOdbcPreparedStateme
nt.java:89)
 at org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:377)
 at org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:326)
 at
org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthe
nticator.java:161)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:506)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
 at java.lang.Thread.run(Thread.java:536)

- Original Message -
From: Mike W-M [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, January 08, 2003 9:09 AM
Subject: Re: Repost: Double Login


 Just a few thoughts since it looks like the JDBC realm that's causing you
 the problem.
 (And you don't say what Tomcat version you're using.)

 When I setup my own JDBC realm (for form-based-authentication) I noticed
 that its error handling wasn't all that hot.  If the call errored (e.g.
 because I'd specified incorrect table or column names) it just looked like
a
 failed logon.  Maybe the first call is failing so the user's asked to log
on
 again?  (Tomcat 4.0.4)

 Also, what happens if you don't request the logon page first but request
 another protected page?  (You may get errors generated, but at least that
 means your request got through...)  How many times are you asked to
 authenticate then?  If it's only one then that points to something your
 logon page is doing, right?

 Mike.

 - Original Message -
 From: Nathan McMinn [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, January 08, 2003 2:26 PM
 Subject: Re: Repost: Double Login


 Nope, it is just HTTP BASIC authentication, running over SSL.  And there
is
 no magic url or domain trickery going on.  The really unusual part is that
 with a memory realm, I didn't have this problem.  It only popped up after
 switching to a JDBC Realm.

 - Original Message -
 From: Troy J. Kelley [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Wednesday, January 08, 2003 8:23 AM
 Subject: RE: Repost: Double Login


  Are you using cookies or URL re-writing for session identifier?
 
  Are you doing anything funky with domain names or other such trickery
  which would cause your cookie to not be available upon doing the
  forward?
 
  -Troy
 
  -Original Message-
  From: Nathan McMinn [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 08, 2003 9:07 AM
  To: [EMAIL PROTECTED]
  Subject: Repost: Double Login
 
  Hi all,
 
  Some of you had been kind enough to assist with this issue I posted
  previously.  I had thought it was fixed, but 

Re: Tomcat 4.1.18 Admin Page

2003-01-08 Thread Jeanfrancois Arcand
No, only manager and admin role are known by Tomcat.

-- Jeanfrancois

Peter Lee wrote:


Does anyone know the usage of the rolename provider Any special meaning to 
that?

user username=user password=sec roles=admin,manager,provider/



On 3 Jan 2003 at 10:58, Jeanfrancois Arcand wrote:

 

If you click on the link you just provided, read in the middle of the 
page :-), you will read :

NOTE: For security reasons, using the administration webapp is 
restricted to users with role admin. The manager webapp is restricted 
to users with role manager. Users are defined in 
|$CATALINA_HOME/conf/tomcat-users.xml|.

So open tomcat-user.xml and define something like that:

 user username=karthikeyan password=always_read_the_doc 
roles=admin/

;-)

-- Jeanfrancois

karthikeyan.balasubramanian wrote:

   

Hi,

How do i manage the admin section that comes along with tomcat.  I can see the page when i type

http://localhost:8080

It is password protected, by defualt i cant access it seems.  How do i set new password and what are the things that can be achieved through this interface.

Have a great day.

Karthikeyan B.



 




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


 



Question about Tomcat 4.1.12 WebDAV application

2003-01-08 Thread Jim Coble
Version: Tomcat 4.1.12 on Solaris 8

I'm trying to configure the WebDAV application included in the Tomcat
4.1.12 distribution so that it requires a login to add or remove files but
not to view them.

If I use the web.xml security-constraint contained in the distribution --

  security-constraint
web-resource-collection
  web-resource-nameThe Entire Web Application/web-resource-name
  url-pattern/*/url-pattern
/web-resource-collection
auth-constraint
  role-nametomcat/role-name
/auth-constraint
  /security-constraint

-- then all attempts to access the content, including a simple browser
request for http://localhost:8080/webdav/ require a login.

I thought I could password protect only adding and removing files by adding
http-method for PUT and DELETE as shown below --

  security-constraint
web-resource-collection
  web-resource-nameThe Entire Web Application/web-resource-name
  url-pattern/*/url-pattern
  http-methodDELETE/http-method
  http-methodPUT/http-method
/web-resource-collection
auth-constraint
  role-nametomcat/role-name
/auth-constraint
  /security-constraint

  -- but, if I do that, I seem to be able to add and remove files using my
WebDAV client (Web Folders on Windows XP) without authenticating.

I can't help but think that I'm missing something obvious.  Can anyone
help?

Thanks in advance.
--Jim

==
Jim Coble
Senior Technology Specialist
Center for Instructional Technology
Email: [EMAIL PROTECTED]
Voice: 919-660-5974  Fax: 919-660-5923
Box 90198, Duke University
Durham, NC 27708-0198
==




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




Tomcat 331 as a service

2003-01-08 Thread Kuhner, Ed
Hello,
 
I've written an application for Tomcat and I can get everything working with
Tomcat running from the command line under Windows 2000, but I cannot seem
to get the Service installation to work.
 
I have followed these instructions very closely (
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/NT-Service-howto.html
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/NT-Service-howto.html )
and I get an error 1067 when I start the NT service.
 
Any input you have on making this work would be much appreciated.
 
Thanks, 
 
Ed Kuhner 
T-Mobile
Technical Sales  
Wireless Data Sales and Operations  
 mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]
(773) 444-5574 - Office 
(847) 809-9254 - PCS 
(773) 442-0396 - Fax 
 
 



Tomcat 4.1.x don't find libs to compile the *.jsp

2003-01-08 Thread Matthias Salewski
Hallo,

I include in my jsp - File an private-lib as follows
...
%@ page language=java import=java.util.*,usingj2ee.* %
...
When I call this Page, I get error message
...
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file

C:
\Adler\JBoss\tomcat-4.1.x\work\Standalone\localhost\login\Login_jsp.java:8:
package usingj2ee does not exist
import usingj2ee.*;
^
1 error


 at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120)

 at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)

 at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313)
 at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:324)
...




I deploy usingj2e.jar in directory ..\WEB-INF\lib but the same error.
I also copy this File in directory ..\shared\lib and in ..\common\lib but
the same result.

Can you help me!
Thanks!

Matthias Salewski

CSC Ploenzke AG
Business-Center-Administration
Abraham-Lincoln-Park 1
65189 Wiesbaden
Germany

Tel.: 0611 142 21295
Fax.: 0611 142 921295
e-Mail: [EMAIL PROTECTED]





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




Re: Tomcat 4.1.x don't find libs to compile the *.jsp

2003-01-08 Thread Peter Choe
did you check the spelling of the jar file?

you have:

import usingj2ee.*;

but you are deploying using2je.jar.

At 10:44 AM 1/8/2003, you wrote:

Hallo,

I include in my jsp - File an private-lib as follows
...
%@ page language=java import=java.util.*,usingj2ee.* %
...
When I call this Page, I get error message
...
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file

C:
\Adler\JBoss\tomcat-4.1.x\work\Standalone\localhost\login\Login_jsp.java:8:
package usingj2ee does not exist
import usingj2ee.*;
^
1 error


 at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120)

 at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)

 at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313)
 at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:324)
...




I deploy usingj2e.jar in directory ..\WEB-INF\lib but the same error.
I also copy this File in directory ..\shared\lib and in ..\common\lib but
the same result.

Can you help me!
Thanks!

Matthias Salewski

CSC Ploenzke AG
Business-Center-Administration
Abraham-Lincoln-Park 1
65189 Wiesbaden
Germany

Tel.: 0611 142 21295
Fax.: 0611 142 921295
e-Mail: [EMAIL PROTECTED]





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




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




Re: ERROR IN TOMCAT 4.18 + APACHE 2.0.43 + JK2 CONNECTOR

2003-01-08 Thread p niemandt
Rather send your message as plain text: Copy and paste if you are using
word. I only run linux and do not open word documents: A suspect a lot
of other people as well. 

On Wed, 2003-01-08 at 14:59, [EMAIL PROTECTED] wrote:
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
-- 
p niemandt [EMAIL PROTECTED]


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




Re: Question about Tomcat 4.1.12 WebDAV application

2003-01-08 Thread Andreas Probst
Hi Jim,

it might be that Windows cached your credentials. You could try 
Slide client (jakarta sub project Slide), which requires to type 
in the credentials everytime you start it.
You won't need to start the Slide server or the included Tomcat, 
just the client at pathTo\jakarta-slide-
1.0.16\client\bin\run.bat. (It might be necessary to start 
run.bat by typing bin\run in the client directory.)

Andreas


On 8 Jan 2003 at 10:34, Jim Coble wrote:

 Version: Tomcat 4.1.12 on Solaris 8
 
 I'm trying to configure the WebDAV application included in the
 Tomcat 4.1.12 distribution so that it requires a login to add or
 remove files but not to view them.
 
 If I use the web.xml security-constraint contained in the
 distribution --
 
   security-constraint
 web-resource-collection
   web-resource-nameThe Entire Web
   Application/web-resource-name
   url-pattern/*/url-pattern
 /web-resource-collection
 auth-constraint
   role-nametomcat/role-name
 /auth-constraint
   /security-constraint
 
 -- then all attempts to access the content, including a simple
 browser request for http://localhost:8080/webdav/ require a
 login.
 
 I thought I could password protect only adding and removing files
 by adding http-method for PUT and DELETE as shown below --
 
   security-constraint
 web-resource-collection
   web-resource-nameThe Entire Web
   Application/web-resource-name
   url-pattern/*/url-pattern
   http-methodDELETE/http-method
   http-methodPUT/http-method
 /web-resource-collection
 auth-constraint
   role-nametomcat/role-name
 /auth-constraint
   /security-constraint
 
   -- but, if I do that, I seem to be able to add and remove files
   using my
 WebDAV client (Web Folders on Windows XP) without authenticating.
 
 I can't help but think that I'm missing something obvious.  Can
 anyone help?
 
 Thanks in advance.
 --Jim
 
 ==
 Jim Coble
 Senior Technology Specialist
 Center for Instructional Technology
 Email: [EMAIL PROTECTED]
 Voice: 919-660-5974  Fax: 919-660-5923
 Box 90198, Duke University
 Durham, NC 27708-0198
 ==
 
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED] For
 additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 



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




RE: Tomcat 4.1.x don't find libs to compile the *.jsp

2003-01-08 Thread Wendy Smoak

 did you check the spelling of the jar file?
 you have:
 import usingj2ee.*;
 but you are deploying using2je.jar.

Even so... can you really import a jar file??  News to me... IME you have to
import each package within it, and the name of the jar file is irrelevant
except for making sure it's in the classpath somewhere.

So I'd suggest a 'jar -tvf usingj2ee.jar' and look at the directory
structure within it.  Do those files really all live in a directory called
'usingj2ee' within the .jar file?  And is it definitely in the 'lib'
directory?

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management




RE: Tomcat 4.1.x don't find libs to compile the *.jsp

2003-01-08 Thread Ralph Einfeldt
The name of the jar is not relevant.

The only thing that counts is, wether
a package with the correct name exists 
within the jar or not.

 -Original Message-
 From: Peter Choe [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 08, 2003 5:12 PM
 To: Tomcat Users List
 Subject: Re: Tomcat 4.1.x don't find libs to compile the *.jsp 
 
 did you check the spelling of the jar file?
 
 you have:
 
 import usingj2ee.*;
 

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




DTD for server.xml??

2003-01-08 Thread Turner, John

Hello -

I notice that the top of web.xml has:

?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;

yet the top of server.xml has nothing.

I'm very new to XML, so forgive me if this is a lame or FA question, but is
there a DTD for server.xml?  If so, why isn't it specified in server.xml,
and what is the URL?  Is server.xml real, official XML or just
convenience XML?

- John


John Turner
[EMAIL PROTECTED] | 248-488-3466
Advertising Audit Service
http://www.aas.com


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




TOMCAT 4.18 + APACHE 2.0.43 + JK2 CONNECTOR ERROR

2003-01-08 Thread Krishna_R . _Nagaraj





Was anyone able to crack this problem with TOMCAT 4.18  +  APACHE 2.0.43 +
JK2 CONNECTOR?

I am thinking of using JK instead JK2 since we have to implement this in
production soon. The only thing concerning me is - I have read that JK is
deprecated and may not/won't support future Tomcat and Apache releases. Is
that true?

Your help on this will be greatly appreciated.

TOMCAT 4.18  +  APACHE 2.0.43 + JK2 CONNECTOR ERROR DESCRIPTION (The
previous attachment's content)

If I try to browse a jpg file of size greater than 34KB then I get an image
which has a dark pattern from the middle of the image. This only happens if
the image is greater than 34KB.  I have also noticed that this is not
consistent. But this seems to happen when the file size is greater than
34KB. This is happening to another colleague of mine.

I also noticed that if I try to browse the same image ( 34KB) under the
subfolder of examples (i.e. jsp folder) I get the following errors (logged
in apache error.log file). This however happens to any file (No size
constraint)

[Fri Jan 03 17:40:28 2003] [error] Error ajp_process_callback - write
failed
[Fri Jan 03 17:40:28 2003] [error] ajp13.service() ajpGetReply recoverable
error 3
[Fri Jan 03 17:40:28 2003] [error] Error ajp_process_callback - write
failed
[Fri Jan 03 17:40:28 2003] [error] ajp13.service() ajpGetReply recoverable
error 3
[Fri Jan 03 17:40:28 2003] [error] ajp13.service() Error  forwarding
ajp13:localhost:8019 1 0
[Fri Jan 03 17:40:28 2003] [error] mod_jk.handler() Error connecting to
tomcat 3

Can someone please help me in solving this problem

I have the following settings in my config files.

Server.xml

 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8019 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=2
   useURIValidationHack=false

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler

worker2.properties

[shm]
file=c:/apache/Apache2/logs/shm.file
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8019]
port=8019
host=127.0.0.1

# define the worker
[ajp13:localhost:8019]
channel=channel.socket:localhost:8019

# Uri mapping
[uri:/test/*]
worker=ajp13:localhost:8019

jk2.properties

# list of needed handlers.
handler.list=apr,channelSocket,request

# Override the default port for the channelSocket
channelSocket.port=8019

Thanks

Krishna Nagaraj


Re: DTD for server.xml??

2003-01-08 Thread Tim Funk
It would be almost impossible to write a DTD for server.xml since an 
admin may inject custom classes (Listeners/Loggers).

To have a dtd, we would need to know every property which can be set for 
every class (which may be made known in server.xml) since tomcat uses 
reflection from Diegester.

-Tim

Turner, John wrote:
Hello -

I notice that the top of web.xml has:

?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;

yet the top of server.xml has nothing.

I'm very new to XML, so forgive me if this is a lame or FA question, but is
there a DTD for server.xml?  If so, why isn't it specified in server.xml,
and what is the URL?  Is server.xml real, official XML or just
convenience XML?

- John


John Turner
[EMAIL PROTECTED] | 248-488-3466
Advertising Audit Service
http://www.aas.com


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






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




RE: DTD for server.xml??

2003-01-08 Thread Turner, John

That makes sense.  OK, next question, in a thread started yesterday, it was
mentioned (correctly, I assume) that you could use XML entities to include
external XML files into server.xml.  

So, this link came up on Google:

http://tech.irt.org/articles/js212/#example_2

Which leads a person to believe that something like 

!ENTITY vhost SYSTEM /path/to/tomcat/conf/vhost1.xml

Then towards the bottom:

vhost1

would work in server.xml, but it doesn't.  Error:  Catalina.start:
org.xml.sax.SAXParseException: The content beginning 
! is not legal markup. 

Is this a futile path, or is it possible to include external XML into
server.xml when server.xml is parsed?  If so, how?

Thanks!

John

 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 08, 2003 11:37 AM
 To: Tomcat Users List
 Subject: Re: DTD for server.xml??
 
 
 It would be almost impossible to write a DTD for server.xml since an 
 admin may inject custom classes (Listeners/Loggers).
 
 To have a dtd, we would need to know every property which can 
 be set for 
 every class (which may be made known in server.xml) since tomcat uses 
 reflection from Diegester.
 
 -Tim
 
 Turner, John wrote:
  Hello -
  
  I notice that the top of web.xml has:
  
  ?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;
  
  yet the top of server.xml has nothing.
  
  I'm very new to XML, so forgive me if this is a lame or FA 
 question, but is
  there a DTD for server.xml?  If so, why isn't it specified 
 in server.xml,
  and what is the URL?  Is server.xml real, official XML or just
  convenience XML?
  
  - John
  
  
  John Turner
  [EMAIL PROTECTED] | 248-488-3466
  Advertising Audit Service
  http://www.aas.com
  
  
  --
  To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 
 


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

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




RE: DTD for server.xml??

2003-01-08 Thread Turner, John

Sorry, that should be 

!ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml

Typo in vhost.

John

 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 08, 2003 11:42 AM
 To: 'Tomcat Users List'
 Subject: RE: DTD for server.xml??
 
 
 
 That makes sense.  OK, next question, in a thread started 
 yesterday, it was
 mentioned (correctly, I assume) that you could use XML 
 entities to include
 external XML files into server.xml.  
 
 So, this link came up on Google:
 
 http://tech.irt.org/articles/js212/#example_2
 
 Which leads a person to believe that something like 
 
 !ENTITY vhost SYSTEM /path/to/tomcat/conf/vhost1.xml
 
 Then towards the bottom:
 
 vhost1
 
 would work in server.xml, but it doesn't.  Error:  Catalina.start:
 org.xml.sax.SAXParseException: The content beginning 
 ! is not legal markup. 
 
 Is this a futile path, or is it possible to include external XML into
 server.xml when server.xml is parsed?  If so, how?
 
 Thanks!
 
 John
 
  -Original Message-
  From: Tim Funk [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 08, 2003 11:37 AM
  To: Tomcat Users List
  Subject: Re: DTD for server.xml??
  
  
  It would be almost impossible to write a DTD for server.xml 
 since an 
  admin may inject custom classes (Listeners/Loggers).
  
  To have a dtd, we would need to know every property which can 
  be set for 
  every class (which may be made known in server.xml) since 
 tomcat uses 
  reflection from Diegester.
  
  -Tim
  
  Turner, John wrote:
   Hello -
   
   I notice that the top of web.xml has:
   
   ?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;
   
   yet the top of server.xml has nothing.
   
   I'm very new to XML, so forgive me if this is a lame or FA 
  question, but is
   there a DTD for server.xml?  If so, why isn't it specified 
  in server.xml,
   and what is the URL?  Is server.xml real, official XML or just
   convenience XML?
   
   - John
   
   
   John Turner
   [EMAIL PROTECTED] | 248-488-3466
   Advertising Audit Service
   http://www.aas.com
   
   
   --
   To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  
  
  
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




Re: JDBCRealm

2003-01-08 Thread Rob Abernethy IV
The MD5'd password *is* in the pg_shadow.passwd column.  I don't see what 
I'm doing wrong.  And, as far as confusing postgres users with tomcat users, 
is there a problem with using the same user for both?  I kind of thought 
that was the point.  When I create a user, they can use the same username 
and password to access tomcat web apps that they use to connect to the 
database.

Thanks for the pointers on security.  Both Tomcat and Postgres are on the 
same server.  I'm also planning on using HTTPS, but apache will handle that 
part.  I think it will work something like this:

1. user types username and password (clear-text) into form
2. web browser encrypts everything and sends it to web server (https)
3. apache decrypts everything and passes it onto tomcat
4. tomcat makes a MD5 form of the given password
5. tomcat compares this with the MD5 password taken from the database

Does that sound right?

--
Robert Abernethy IV
Dynamic Edge, Inc.
734.975.0460

 Yeah, looks like you almost have it.  The MD5'd password should be in
 pg_shadow in the userCredCol, passwd in this case.
 
 Be advised that you should either use only HTTPS for this, or run 
 Tomcat on the same server as Postgres, or run them both on a secure 
 net behind a firewall on separate machines to prevent your Postgres 
 database from being compromised.
 
 MD5 really only prevents snoops on your server from being able to easily
 read the passwords in pg_shadow.
 
 Rick
 
 - Original Message -
 
  * Rob Abernethy IV [EMAIL PROTECTED] [0154 21:54]:
   OK. I was able to get clear-text passwords to work, but I still can't
 get
   encrypted passwords to work.  Using MD5 encryption, Tomcat is able to
   successfully open a connection to the database using the JDBCRealm set
 up in
   the server.xml, but it is unable to authenticate users for the admin 
web
 app.
I am using the same username and password (username = tomcat,
 password =
   tomcat) for both the JDBCRealm and the admin web app.
  
   JDBCRealm:
   Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=org.postgresql.Driver
   connectionURL=jdbc:postgresql://bilbo.dynedge.com/template1
  connectionName=abernethy connectionPassword=gceIlu4DaR
   userTable=pg_shadow userNameCol=usename 
userCredCol=passwd
   userRoleTable=pg_groupview roleNameCol=groname
  digest=MD5 /
   pg_shadow:
   usename  | passwd
   -
   tomcat   | md5efcc1c51a80be13b59cdb96d758a0184
 
  You are confusing postgres usernames/passwords with the ones you want in
 the tables.
  Tomcat connects to the database as user connectionName , password
 connectionPassword
 
  and looks up http authentication users and passwords in userTable  and
 userRoleTable.
 
  It looks from your post like you have that backwards (pg_shadow holds
 postgres users, not users
  for your apps).
 
   postgresql log (for admin web app authentication):
   Jan  7 16:43:34 bilbo postgres[4329]: [9] LOG:  query: SELECT passwd
 FROM
   pg_shadow WHERE usename = 'tomcat'
   Jan  7 16:43:34 bilbo postgres[4329]: [10] LOG:  duration: 0.001636 sec
  
   catalina_log.2003-01-07.txt:
   2003-01-07 16:43:34 JDBCRealm[Standalone]: Username tomcat NOT
 successfully
   authenticated
 
  --
  Rasputin :: Jack of All Trades - Master of Nuns
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]




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




Re: DTD for server.xml??

2003-01-08 Thread Jeanfrancois Arcand
I thin it should be defined like this:

!DOCTYPE web-app[ 

	!ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml

]

I did not try it but that the way ENTITY works usually.

-- Jeanfrancois

Turner, John wrote:

Sorry, that should be 

!ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml

Typo in vhost.

John

 

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 11:42 AM
To: 'Tomcat Users List'
Subject: RE: DTD for server.xml??



That makes sense.  OK, next question, in a thread started 
yesterday, it was
mentioned (correctly, I assume) that you could use XML 
entities to include
external XML files into server.xml.  

So, this link came up on Google:

http://tech.irt.org/articles/js212/#example_2

Which leads a person to believe that something like 

!ENTITY vhost SYSTEM /path/to/tomcat/conf/vhost1.xml

Then towards the bottom:

vhost1

would work in server.xml, but it doesn't.  Error:  Catalina.start:
org.xml.sax.SAXParseException: The content beginning 
! is not legal markup. 

Is this a futile path, or is it possible to include external XML into
server.xml when server.xml is parsed?  If so, how?

Thanks!

John

   

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 11:37 AM
To: Tomcat Users List
Subject: Re: DTD for server.xml??


It would be almost impossible to write a DTD for server.xml 
 

since an 
   

admin may inject custom classes (Listeners/Loggers).

To have a dtd, we would need to know every property which can 
be set for 
every class (which may be made known in server.xml) since 
 

tomcat uses 
   

reflection from Diegester.

-Tim

Turner, John wrote:
 

Hello -

I notice that the top of web.xml has:

?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;

yet the top of server.xml has nothing.

I'm very new to XML, so forgive me if this is a lame or FA 
   

question, but is
 

there a DTD for server.xml?  If so, why isn't it specified 
   

in server.xml,
 

and what is the URL?  Is server.xml real, official XML or just
convenience XML?

- John


John Turner
[EMAIL PROTECTED] | 248-488-3466
Advertising Audit Service
http://www.aas.com


--
To unsubscribe, e-mail:   
   

mailto:[EMAIL PROTECTED]
   

For additional commands, e-mail:
 

mailto:[EMAIL PROTECTED]
   


 

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

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

   


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


 



Re: DTD for server.xml??

2003-01-08 Thread Jeanfrancois Arcand
Oups (remove the quote)

!DOCTYPE web-app[
   !ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml

]

-- Jeanfrancois

Jeanfrancois Arcand wrote:


I thin it should be defined like this:

!DOCTYPE web-app[
!ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml

]

I did not try it but that the way ENTITY works usually.

-- Jeanfrancois

Turner, John wrote:


Sorry, that should be
!ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml

Typo in vhost.

John

 

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 11:42 AM
To: 'Tomcat Users List'
Subject: RE: DTD for server.xml??



That makes sense.  OK, next question, in a thread started yesterday, 
it was
mentioned (correctly, I assume) that you could use XML entities to 
include
external XML files into server.xml. 
So, this link came up on Google:

http://tech.irt.org/articles/js212/#example_2

Which leads a person to believe that something like
!ENTITY vhost SYSTEM /path/to/tomcat/conf/vhost1.xml

Then towards the bottom:

vhost1

would work in server.xml, but it doesn't.  Error:  Catalina.start:
org.xml.sax.SAXParseException: The content beginning ! is not 
legal markup. 

Is this a futile path, or is it possible to include external XML into
server.xml when server.xml is parsed?  If so, how?

Thanks!

John

  

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 11:37 AM
To: Tomcat Users List
Subject: Re: DTD for server.xml??


It would be almost impossible to write a DTD for server.xml 

since an   

admin may inject custom classes (Listeners/Loggers).

To have a dtd, we would need to know every property which can be 
set for every class (which may be made known in server.xml) since 

tomcat uses   

reflection from Diegester.

-Tim

Turner, John wrote:


Hello -

I notice that the top of web.xml has:

?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;

yet the top of server.xml has nothing.

I'm very new to XML, so forgive me if this is a lame or FA   

question, but is


there a DTD for server.xml?  If so, why isn't it specified   

in server.xml,


and what is the URL?  Is server.xml real, official XML or just
convenience XML?

- John


John Turner
[EMAIL PROTECTED] | 248-488-3466
Advertising Audit Service
http://www.aas.com


--
To unsubscribe, e-mail: 


mailto:[EMAIL PROTECTED]
  

For additional commands, e-mail:


mailto:[EMAIL PROTECTED]
  




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

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

  


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


 





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




Re: DTD for server.xml??

2003-01-08 Thread Christos Karras
I'm doing it in my server.xml file this way:
!DOCTYPE Server [
   !ENTITY inc_vhosts SYSTEM /etc/tomcat4/vhosts.xml
]

and somewhere in the Engine:
inc_vhosts;

Turner, John wrote:


That makes sense.  OK, next question, in a thread started yesterday, it was
mentioned (correctly, I assume) that you could use XML entities to include
external XML files into server.xml.  

So, this link came up on Google:

http://tech.irt.org/articles/js212/#example_2

Which leads a person to believe that something like 

!ENTITY vhost SYSTEM /path/to/tomcat/conf/vhost1.xml

Then towards the bottom:

vhost1

would work in server.xml, but it doesn't.  Error:  Catalina.start:
org.xml.sax.SAXParseException: The content beginning 
! is not legal markup. 

Is this a futile path, or is it possible to include external XML into
server.xml when server.xml is parsed?  If so, how?

Thanks!

John
 



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




Re: DTD for server.xml??

2003-01-08 Thread Matthew Boeckman
Just so there is a confirmation from someone who did it, This works!

From my server.xml:

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app[
!ENTITY vhost SYSTEM 
/usr/local/jakarta-tomcat-4.1.12-LE-jdk14/conf/vhost.xml 
]
Server ...
*snip*
/Host
	%vhost;
/Engine
/Service

FWIW, vhost.xml is a full Host subset.


Thanks!

-Matthew


Jeanfrancois Arcand wrote:
Oups (remove the quote)

!DOCTYPE web-app[
   !ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml

]

-- Jeanfrancois

Jeanfrancois Arcand wrote:


I thin it should be defined like this:

!DOCTYPE web-app[
!ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml

]

I did not try it but that the way ENTITY works usually.

-- Jeanfrancois

Turner, John wrote:


Sorry, that should be
!ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml

Typo in vhost.

John

 

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 11:42 AM
To: 'Tomcat Users List'
Subject: RE: DTD for server.xml??



That makes sense.  OK, next question, in a thread started yesterday, 
it was
mentioned (correctly, I assume) that you could use XML entities to 
include
external XML files into server.xml. So, this link came up on Google:

http://tech.irt.org/articles/js212/#example_2

Which leads a person to believe that something like
!ENTITY vhost SYSTEM /path/to/tomcat/conf/vhost1.xml

Then towards the bottom:

vhost1

would work in server.xml, but it doesn't.  Error:  Catalina.start:
org.xml.sax.SAXParseException: The content beginning ! is not 
legal markup. 

Is this a futile path, or is it possible to include external XML into
server.xml when server.xml is parsed?  If so, how?

Thanks!

John

 

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 11:37 AM
To: Tomcat Users List
Subject: Re: DTD for server.xml??


It would be almost impossible to write a DTD for server.xml 


since an  

admin may inject custom classes (Listeners/Loggers).

To have a dtd, we would need to know every property which can be 
set for every class (which may be made known in server.xml) since 


tomcat uses  

reflection from Diegester.

-Tim

Turner, John wrote:
   

Hello -

I notice that the top of web.xml has:

?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;

yet the top of server.xml has nothing.

I'm very new to XML, so forgive me if this is a lame or FA   


question, but is
   

there a DTD for server.xml?  If so, why isn't it specified   


in server.xml,
   

and what is the URL?  Is server.xml real, official XML or just
convenience XML?

- John


John Turner
[EMAIL PROTECTED] | 248-488-3466
Advertising Audit Service
http://www.aas.com


--
To unsubscribe, e-mail: 



mailto:[EMAIL PROTECTED]
 

For additional commands, e-mail:



mailto:[EMAIL PROTECTED]
 





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

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

  



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


 





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



--
Matthew Boeckman			(816) 777-2160
Manager - Systems Integration		Saepio Technologies


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




RE: DTD for server.xml??

2003-01-08 Thread Turner, John

Awesome!  Thanks!  ;)

John


 -Original Message-
 From: Matthew Boeckman [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 08, 2003 11:59 AM
 To: Tomcat Users List
 Subject: Re: DTD for server.xml??
 
 
 Just so there is a confirmation from someone who did it, This works!
 
  From my server.xml:
 
 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app[
 !ENTITY vhost SYSTEM 
 /usr/local/jakarta-tomcat-4.1.12-LE-jdk14/conf/vhost.xml 
 ]
 Server ...
 *snip*
 /Host
   %vhost;
 /Engine
 /Service
 
 FWIW, vhost.xml is a full Host subset.
 
 
 Thanks!
 
 -Matthew
 
 
 Jeanfrancois Arcand wrote:
  Oups (remove the quote)
  
  !DOCTYPE web-app[
 !ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml
  
  ]
  
  -- Jeanfrancois
  
  Jeanfrancois Arcand wrote:
  
  I thin it should be defined like this:
 
  !DOCTYPE web-app[
  !ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml
 
  ]
 
  I did not try it but that the way ENTITY works usually.
 
  -- Jeanfrancois
 
  Turner, John wrote:
 
  Sorry, that should be
  !ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml
 
  Typo in vhost.
 
  John
 
   
 
  -Original Message-
  From: Turner, John [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 08, 2003 11:42 AM
  To: 'Tomcat Users List'
  Subject: RE: DTD for server.xml??
 
 
 
  That makes sense.  OK, next question, in a thread 
 started yesterday, 
  it was
  mentioned (correctly, I assume) that you could use XML 
 entities to 
  include
  external XML files into server.xml. So, this link came 
 up on Google:
 
  http://tech.irt.org/articles/js212/#example_2
 
  Which leads a person to believe that something like
  !ENTITY vhost SYSTEM /path/to/tomcat/conf/vhost1.xml
 
  Then towards the bottom:
 
  vhost1
 
  would work in server.xml, but it doesn't.  Error:  
 Catalina.start:
  org.xml.sax.SAXParseException: The content beginning ! is not 
  legal markup. 
 
  Is this a futile path, or is it possible to include 
 external XML into
  server.xml when server.xml is parsed?  If so, how?
 
  Thanks!
 
  John
 
   
 
  -Original Message-
  From: Tim Funk [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 08, 2003 11:37 AM
  To: Tomcat Users List
  Subject: Re: DTD for server.xml??
 
 
  It would be almost impossible to write a DTD for server.xml 
 
 
  since an  
 
  admin may inject custom classes (Listeners/Loggers).
 
  To have a dtd, we would need to know every property 
 which can be 
  set for every class (which may be made known in 
 server.xml) since 
 
 
  tomcat uses  
 
  reflection from Diegester.
 
  -Tim
 
  Turner, John wrote:
 
 
  Hello -
 
  I notice that the top of web.xml has:
 
  ?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;
 
  yet the top of server.xml has nothing.
 
  I'm very new to XML, so forgive me if this is a lame 
 or FA   
 
 
  question, but is
 
 
  there a DTD for server.xml?  If so, why isn't it 
 specified   
 
 
  in server.xml,
 
 
  and what is the URL?  Is server.xml real, official 
 XML or just
  convenience XML?
 
  - John
 
  
  John Turner
  [EMAIL PROTECTED] | 248-488-3466
  Advertising Audit Service
  http://www.aas.com
 
 
  -- 
  To unsubscribe, e-mail: 
 
 
  mailto:[EMAIL PROTECTED]
   
 
  For additional commands, e-mail:
  
 
 
  mailto:[EMAIL PROTECTED]
   
 
 
  
 
 
  -- 
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  -- 
  To unsubscribe, e-mail:   
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
 

 
 
 
  -- 
  To unsubscribe, e-mail:   
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
 
 
   
 
 
  
  
  -- 
  To unsubscribe, e-mail:   
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
  
 
 -- 
 Matthew Boeckman  (816) 777-2160
 Manager - Systems Integration Saepio Technologies
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




using catalina-ant.jar in Tomcat 4.0.6

2003-01-08 Thread Erik Price
My Tomcat container is 4.0.6.

I would like to use the custom ant tasks described in the comments of 
this file:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/sample/build.xml

But that is for Tomcat 5.  My Tomcat doesn't have the catalina-ant.jar 
file.  Can I just wget this file directly and stick it in my CLASSPATH 
so that I can have my ant build scripts execute these custom tasks, even 
though my Tomcat is older?

Thank you,

Erik


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



RE: DTD for server.xml??

2003-01-08 Thread Geiglein, Gary
It might be useful to have a reference DTD for server.xml included in the 
documentation for tomcat as delivered by apache. But not actually reference it in the 
DOCTYPE declaration in server.xml

This would give users a single place to reference for constructing a valid server.xml 
file while not constraining an admin from extending the system.

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 11:37 AM
To: Tomcat Users List
Subject: Re: DTD for server.xml??


It would be almost impossible to write a DTD for server.xml since an 
admin may inject custom classes (Listeners/Loggers).

To have a dtd, we would need to know every property which can be set for 
every class (which may be made known in server.xml) since tomcat uses 
reflection from Diegester.

-Tim

Turner, John wrote:
 Hello -
 
 I notice that the top of web.xml has:
 
 ?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;
 
 yet the top of server.xml has nothing.
 
 I'm very new to XML, so forgive me if this is a lame or FA question, but is
 there a DTD for server.xml?  If so, why isn't it specified in server.xml,
 and what is the URL?  Is server.xml real, official XML or just
 convenience XML?
 
 - John
 
 
 John Turner
 [EMAIL PROTECTED] | 248-488-3466
 Advertising Audit Service
 http://www.aas.com
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 


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


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




Re: setting up classpath for tomcat running as windows NT service

2003-01-08 Thread Will Hartung
 From: Turner, John [EMAIL PROTECTED]
 Sent: Wednesday, January 08, 2003 2:44 AM
 Subject: RE: setting up classpath for tomcat running as windows NT service

 Tomcat sets it's own classpath...it ignores environment variables except
 JAVA_HOME, CATALINA_HOME, and CATALINA_BASE.

This is only partially true, and a common misconception. (John, you should
know better.)

Tomcat does indeed go to great lengths to set up its own class loaders, and
catalina.bat/.sh happens to, mostly, ignore CLASSPATH, but that does not
mean the Tomcat does. In many ways, it simply can't.

You can always change catalina.bat/.sh (or not use it at all if you so
desire) to set the CLASSPATH environment variable, or pass the -classpath
parameter on the java command line, and Tomcat will see those classes
through the system class loader.

It is not the recommended way to add classes to Tomcat, but it is still a
viable, and rarely, a necessary option.

Now, how this affects setting up the CLASSPATH for running Tomcat as a NT
service, I haven't a clue. But, FYI and all that y'all.

Regards,

Will Hartung
([EMAIL PROTECTED])





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




RE: DTD for server.xml??

2003-01-08 Thread Ghershony, Arie
any one uses Tomcat and AXIS.  I run the happyaxis.jsp and receive this
warning:
The core axis libraries are present. 1 optional axis library is missing
Note: On Tomcat 4.x and Java1.4, you may need to put libraries that contain
java.* or javax.* packages into CATALINA_HOME/common/lib
jaxrpc.jar and saaj.jar are two such libraries. 

I tried that but it still gave me that warning.

Thanks,
Eric




-Original Message-
From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 11:54 AM
To: Tomcat Users List
Subject: Re: DTD for server.xml??


Oups (remove the quote)

!DOCTYPE web-app[
!ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml

]

-- Jeanfrancois

Jeanfrancois Arcand wrote:

 I thin it should be defined like this:

 !DOCTYPE web-app[
 !ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml

 ]

 I did not try it but that the way ENTITY works usually.

 -- Jeanfrancois

 Turner, John wrote:

 Sorry, that should be
 !ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml

 Typo in vhost.

 John

  

 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 08, 2003 11:42 AM
 To: 'Tomcat Users List'
 Subject: RE: DTD for server.xml??



 That makes sense.  OK, next question, in a thread started yesterday, 
 it was
 mentioned (correctly, I assume) that you could use XML entities to 
 include
 external XML files into server.xml. 
 So, this link came up on Google:

 http://tech.irt.org/articles/js212/#example_2

 Which leads a person to believe that something like
 !ENTITY vhost SYSTEM /path/to/tomcat/conf/vhost1.xml

 Then towards the bottom:

 vhost1

 would work in server.xml, but it doesn't.  Error:  Catalina.start:
 org.xml.sax.SAXParseException: The content beginning ! is not 
 legal markup. 

 Is this a futile path, or is it possible to include external XML into
 server.xml when server.xml is parsed?  If so, how?

 Thanks!

 John

   

 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 08, 2003 11:37 AM
 To: Tomcat Users List
 Subject: Re: DTD for server.xml??


 It would be almost impossible to write a DTD for server.xml 

 since an   

 admin may inject custom classes (Listeners/Loggers).

 To have a dtd, we would need to know every property which can be 
 set for every class (which may be made known in server.xml) since 

 tomcat uses   

 reflection from Diegester.

 -Tim

 Turner, John wrote:
 

 Hello -

 I notice that the top of web.xml has:

 ?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;

 yet the top of server.xml has nothing.

 I'm very new to XML, so forgive me if this is a lame or FA   

 question, but is
 

 there a DTD for server.xml?  If so, why isn't it specified   

 in server.xml,
 

 and what is the URL?  Is server.xml real, official XML or just
 convenience XML?

 - John

 
 John Turner
 [EMAIL PROTECTED] | 248-488-3466
 Advertising Audit Service
 http://www.aas.com


 -- 
 To unsubscribe, e-mail: 

 mailto:[EMAIL PROTECTED]
   

 For additional commands, e-mail:
 

 mailto:[EMAIL PROTECTED]
   


 

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

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

   


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


  




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

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




FW: He p please

2003-01-08 Thread Milton Lin


 -Original Message-
 From: Milton Lin [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 08, 2003 5:44 PM
 To: [EMAIL PROTECTED]
 Subject: He p please
 
 
 Dear sir:
   I am trying to compile mod_jk on AIX 4.3.3.  Encounter the 
 following error. Thank you.
 
 ../jk/jk_uri_worker_map.c, line 61.30: 1506-342 (W) /* 
 detected in comment.
 ../jk/jk_uri_worker_map.c, line 61.54: 1506-342 (W) /* 
 detected in comment.
 ../jk/jk_uri_worker_map.c, line 62.34: 1506-342 (W) /* 
 detected in comment.
 ../jk/jk_uri_worker_map.c, line 62.65: 1506-342 (W) /* 
 detected in comment.
 ../jk/jk_uri_worker_map.c, line 242.77: 1506-342 (W) /* 
 detected in comment.
 ../jk/jk_uri_worker_map.c, line 243.44: 1506-342 (W) /* 
 detected in comment.
 ld -H512 -T512 -bhalt:4 -bM:SRE -bnoentry 
 -bI:/appl/web/DLAWL003/libexec/httpd.exp -lc -o mod_jk.so 
 jk_uri_worker_map.o jk_map.o jk_sockbuf.o jk_lb_worker.o 
 jk_ajp13_worker.o jk_worker.o jk_pool.o jk_jni_worker.o 
 jk_ajp13.o jk_util.o jk_msg_buff.o jk_connect.o 
 jk_ajp12_worker.o mod_jk.o 
 ld: 0711-244 ERROR: No csects or exported symbols have been saved.
 apxs:Break: Command failed with rc=8
 make: 1254-004 The error code from the last command is 1.
 
 
 Stop.
 

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




CORBA initialization error with Tomcat 4.1

2003-01-08 Thread Xu, David
Hi, there,

I use a Bea Tuxedo CORBA client and the CORBA client object within a servlet
has been working fine with Tomcat 3. Now with Tomcat 4.1.18, the servelet
start up with errors:

Exception err=org.omg.CORBA.IMP_LIMIT:   vmcid: 0x0  minor code: 0
completed: No


Has anyone has a clue? or doing the same?


Regards,
David

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




RE: setting up classpath for tomcat running as windows NT service

2003-01-08 Thread Turner, John

I know that you can change CLASSPATH in the startup scripts or on the
command line, as well as other things.  My point was that, out of the box,
if you execute startup.bat or startup.sh, an environment variable named
CLASSPATH isn't going to do much.  Since a large portion of the traffic on
the list is from folks just trying to install and run Tomcat to do/learn JSP
and servlet development, and the poster originally mentioned NT, I assumed
that they were probably interested in a default, lowest-common-denominator
answer.  Probably a bad assumption.

John


 -Original Message-
 From: Will Hartung [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 08, 2003 12:23 PM
 To: Tomcat Users List
 Subject: Re: setting up classpath for tomcat running as windows NT
 service
 
 
  From: Turner, John [EMAIL PROTECTED]
  Sent: Wednesday, January 08, 2003 2:44 AM
  Subject: RE: setting up classpath for tomcat running as 
 windows NT service
 
  Tomcat sets it's own classpath...it ignores environment 
 variables except
  JAVA_HOME, CATALINA_HOME, and CATALINA_BASE.
 
 This is only partially true, and a common misconception. 
 (John, you should
 know better.)
 

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




Re: include files in server.xml?

2003-01-08 Thread paul miller
Can some one post an example on how to do this.
I would love it if my app's web.xml could include another xml file

This is what I have tried with no luck

  !DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;
  [
   !ENTITY section1 SYSTEM /WEB-INF/section1.xml
  ]

  section1;

various paths to section1.xml did not change the error message:

2003-01-08 12:24:39 ContextConfig[] Parse error in application web.xml
java.io.FileNotFoundException
at org.apache.naming.resources.DirContextURLConnection.getInputStream(Unknown
Source)


thanks

--- Bill Barker [EMAIL PROTECTED] wrote:
 You can use XML Entities to do it.  There isn't a specific tag to include a
 file.
 
 Matthew Boeckman [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  I'm wondering if tomcat-4.1.12 supports include files, similair to
  apache in the server.xml file?
 
  I have to support dozens of virtual hosts, and wanted to break each's
  config out into their own include.
  --
  Matthew Boeckman (816) 777-2160
  Manager - Systems Integration Saepio Technologies
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


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

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




RE: include files in server.xml?

2003-01-08 Thread Turner, John

Not sure about web.xml, but check today's thread server.xml DTD? for a
discussion and working example of how to do this in server.xml.

John


 -Original Message-
 From: paul miller [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 08, 2003 12:27 PM
 To: Tomcat Users List
 Subject: Re: include files in server.xml?
 
 
 Can some one post an example on how to do this.
 I would love it if my app's web.xml could include another xml file
 
 This is what I have tried with no luck
 
   !DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;
   [
!ENTITY section1 SYSTEM /WEB-INF/section1.xml
   ]
 
   section1;
 
 various paths to section1.xml did not change the error message:
 
 2003-01-08 12:24:39 ContextConfig[] Parse error in application web.xml
 java.io.FileNotFoundException
   at 
 org.apache.naming.resources.DirContextURLConnection.getInputSt
 ream(Unknown
 Source)
 
 
 thanks
 
 --- Bill Barker [EMAIL PROTECTED] wrote:
  You can use XML Entities to do it.  There isn't a specific 
 tag to include a
  file.
  
  Matthew Boeckman [EMAIL PROTECTED] wrote in message
  [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
   I'm wondering if tomcat-4.1.12 supports include files, similair to
   apache in the server.xml file?
  
   I have to support dozens of virtual hosts, and wanted to 
 break each's
   config out into their own include.
   --
   Matthew Boeckman (816) 777-2160
   Manager - Systems Integration Saepio Technologies
  
  
  
  
  --
  To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 


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

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

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




RE: include files in server.xml?

2003-01-08 Thread Turner, John

That thread should be DTD for server.xml??

John

 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 08, 2003 12:29 PM
 To: 'Tomcat Users List'
 Subject: RE: include files in server.xml?
 
 
 
 Not sure about web.xml, but check today's thread server.xml 
 DTD? for a
 discussion and working example of how to do this in server.xml.
 
 John
 
 
  -Original Message-
  From: paul miller [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 08, 2003 12:27 PM
  To: Tomcat Users List
  Subject: Re: include files in server.xml?
  
  
  Can some one post an example on how to do this.
  I would love it if my app's web.xml could include another xml file
  
  This is what I have tried with no luck
  
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web 
 Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
[
 !ENTITY section1 SYSTEM /WEB-INF/section1.xml
]
  
section1;
  
  various paths to section1.xml did not change the error message:
  
  2003-01-08 12:24:39 ContextConfig[] Parse error in 
 application web.xml
  java.io.FileNotFoundException
  at 
  org.apache.naming.resources.DirContextURLConnection.getInputSt
  ream(Unknown
  Source)
  
  
  thanks
  
  --- Bill Barker [EMAIL PROTECTED] wrote:
   You can use XML Entities to do it.  There isn't a specific 
  tag to include a
   file.
   
   Matthew Boeckman [EMAIL PROTECTED] wrote in message
   [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I'm wondering if tomcat-4.1.12 supports include files, 
 similair to
apache in the server.xml file?
   
I have to support dozens of virtual hosts, and wanted to 
  break each's
config out into their own include.
--
Matthew Boeckman (816) 777-2160
Manager - Systems Integration Saepio Technologies
   
   
   
   
   --
   To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




Log on Tomcat

2003-01-08 Thread Lindomar
Hi everybody!
Is it possible put on log what i write with System.out.println in my classes?
Thanks in advanced.




RE: Log on Tomcat

2003-01-08 Thread John Bullock
Depending on what you're getting at... you can just read and write from a
text file referenced in the class file... however, System.out.println'ing
stuff to a .java file and compiling on the fly, etc... would be quite a
mess...

[ j o h n ]

-Original Message-
From: Lindomar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 10:44 AM
To: Tomcat Users List
Subject: Log on Tomcat


Hi everybody!
Is it possible put on log what i write with System.out.println in my
classes?
Thanks in advanced.



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




mod_jk configuration

2003-01-08 Thread Andreas Hirner
Hello,

I have successfully integrated tomcat (4.0.6) with apache (1.3.26) on linux
and I am able to access a single virtual host (e.g. myapplication) located
in the tomcat/webapps/myapplication directory using a url like that:

http://www.mydomain.com/myapplication/index.jsp

However I would like to be able to access the files in that directory
without using the path /myapplication.

I have been playing around with the configuration files but I have not been
able to alter the configuration according to my needs. Does anybody know if
this is possible?

Thanks in advance.

Andreas

PS: The relevant sections of httpd.conf and server.xml are listed below.


http.conf
#
VirtualHost *:80
   ServerName meinfotoalbum.
   ServerAlias www.meinfotoalbum.com

   DocumentRoot /usr/local/tomcat/mywebapps/meinfoto
   Directory /usr/local/tomcat/mywebapps/meinfoto/
 DirectoryIndex index.htm index.html
Options Indexes FollowSymLinks
   /Directory

#mod_jk link to tomcat
   JkMount / ajp13
   JkMount /* ajp13

   #prohibit access of WEB-INF
Location /WEB-INF/
AllowOverride None
deny from all
   /Location

#prohibit access of META-INF
   Location /META-INF/
  AllowOverride None
   deny from all
   /Location

   /VirtualHost

server.xml

  Host name=meinfotoalbum.com debug=0 appBase=mywebapps
unpackWARs=true
Aliaswww.meinfotoalbum.com/Alias
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=meinfotoalbum_log. suffix=.txt
timestamp=true /
Context path= docBase=meinfoto debug=0 reloadable=false/
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true  /
   /Host





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




CORBA initialization error with Tomcat 4.1

2003-01-08 Thread Xu, David
Hi, there,

I use a Bea Tuxedo CORBA client and the CORBA client object within a servlet
has been working fine with Tomcat 3. Now with Tomcat 4.1.18, the servelet
start up with errors:

Exception err=org.omg.CORBA.IMP_LIMIT:   vmcid: 0x0  minor code: 0
completed: No


Has anyone has a clue? or doing the same?


Regards,
David

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




RE: CORBA initialization error with Tomcat 4.1

2003-01-08 Thread Bodycombe, Andrew
Sounds like you have hit your CORBA implementation limit.

See the CORBA documentation for more details.

Andy

-Original Message-
From: Xu, David [mailto:[EMAIL PROTECTED]]
Sent: 08 January 2003 17:49
To: '[EMAIL PROTECTED]'
Subject: CORBA initialization error with Tomcat 4.1
Importance: High


Hi, there,

I use a Bea Tuxedo CORBA client and the CORBA client object within a servlet
has been working fine with Tomcat 3. Now with Tomcat 4.1.18, the servelet
start up with errors:

Exception err=org.omg.CORBA.IMP_LIMIT:   vmcid: 0x0  minor code: 0
completed: No


Has anyone has a clue? or doing the same?


Regards,
David

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

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




RE: Log on Tomcat

2003-01-08 Thread Ricardo_Bosch
try

tail -f catalina.out 

that may be what you are looking for.  Dont know about tail on window$

-rick

-Original Message-
From: Lindomar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 11:44 AM
To: Tomcat Users List
Subject: Log on Tomcat


Hi everybody!
Is it possible put on log what i write with System.out.println in my
classes?
Thanks in advanced.


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




RE: Log on Tomcat

2003-01-08 Thread Shrotriya, Sumit

Yes add these loggers
Logger className=org.apache.catalina.logger.SystemErrLogger /
Logger className=org.apache.catalina.logger.SystemOutLogger /

~Sumit
-Original Message-
From: Lindomar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 11:44 AM
To: Tomcat Users List
Subject: Log on Tomcat


Hi everybody!
Is it possible put on log what i write with System.out.println in my
classes?
Thanks in advanced.


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




RE: Log on Tomcat

2003-01-08 Thread John Bullock
Ohhh... I see what the question was now... *doh*  I thought he was asking
how to System.out.println into a class. :)

[ j o h n ]

-Original Message-
From: Shrotriya, Sumit [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 12:03 PM
To: 'Tomcat Users List'
Subject: RE: Log on Tomcat



Yes add these loggers
Logger className=org.apache.catalina.logger.SystemErrLogger /
Logger className=org.apache.catalina.logger.SystemOutLogger /

~Sumit
-Original Message-
From: Lindomar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 11:44 AM
To: Tomcat Users List
Subject: Log on Tomcat


Hi everybody!
Is it possible put on log what i write with System.out.println in my
classes?
Thanks in advanced.


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


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




someone ever used it?

2003-01-08 Thread Felipe Schnack
  Please, someone ever used jasperreports with tomcat? I need urgent
help, I would like to discuss about it off the list (it's too much
off-topic, I guess)

-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Centro Universitário Ritter dos Reis
http://www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303341


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




RE: Tomcat 331 as a service

2003-01-08 Thread Larry Isaacs
Make sure the note at:

http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3.1/bin/win32/i386/

doesn't apply to your wrapper.propertes.  If it does, modifying the
wrapper.jvm.options line to the following will fix it if you are
using JDK 1.3.1 or later:

wrapper.jvm.options=-Xrs

If this isn't your problem, check the output log files logs\jvm.stdout and
logs\jvm.stderr for possible clues.

Cheers,
Larry

 -Original Message-
 From: Kuhner, Ed [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, January 08, 2003 10:23 AM
 To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'; 
 '[EMAIL PROTECTED]'
 Subject: Tomcat 331 as a service
 
 
 Hello,
  
 I've written an application for Tomcat and I can get 
 everything working with
 Tomcat running from the command line under Windows 2000, but 
 I cannot seem
 to get the Service installation to work.
  
 I have followed these instructions very closely (
 http://jakarta.apache.org/tomcat/tomcat-3.3-doc/NT-Service-howto.html
 http://jakarta.apache.org/tomcat/tomcat-3.3-doc/NT-Service-ho
wto.html )
and I get an error 1067 when I start the NT service.
 
Any input you have on making this work would be much appreciated.
 
Thanks, 
 
Ed Kuhner 
T-Mobile
Technical Sales  
Wireless Data Sales and Operations  
 mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]
(773) 444-5574 - Office 
(847) 809-9254 - PCS 
(773) 442-0396 - Fax 
 
 

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




install error or runtime error?

2003-01-08 Thread Jason Pyeron
I have done a google on this, nothing useful. tomcat just dies out after a 
few more of these.

I dont understand what '/var/tomcat4/conf/tomcat-users.xml.new' is, Ive 
greped for it, that string does not exist.

has any one seen this before?

START OF LOG
Jan 8, 2003 11:34:18 AM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Jan 8, 2003 11:34:18 AM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Jan 8, 2003 11:34:19 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Jan 8, 2003 11:34:20 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
GlobalResourcesLifecycleListener: Exception processing Global JNDI Resources
javax.naming.NamingException: /var/tomcat4/conf/tomcat-users.xml.new (Permission 
denied)
at org.apache.naming.NamingContext.lookup(Unknown Source)
at org.apache.naming.NamingContext.lookup(Unknown Source)
at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(Unknown 
Source)
at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(Unknown 
Source)
at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(Unknown 
Source)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown Source)
at org.apache.catalina.core.StandardServer.start(Unknown Source)
at org.apache.catalina.startup.Catalina.start(Unknown Source)
at org.apache.catalina.startup.Catalina.execute(Unknown Source)
at org.apache.catalina.startup.Catalina.process(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
Starting service Tomcat-Standalone
Apache Tomcat/4.1
javax.naming.NamingException: /var/tomcat4/conf/tomcat-users.xml.new (Permission 
denied)
at org.apache.naming.NamingContext.lookup(Unknown Source)
MORE OF SAME FOLLOWS




-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron   http://www.pyerotechnics.com   -
- Owner  Lead  Pyerotechnics Development, Inc. -
- +1 410 808 6646 (c)   500 West University Parkway #1S -
- +1 410 467 2266 (f)   Baltimore, Maryland  21210-3253 -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.




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




RE: CORBA initialization error with Tomcat 4.1

2003-01-08 Thread Xu, David
By definition I am. A conflicting fact is the only CORBA client program
works with Tomcat 3!

I guess the original program might indeed have an issue as it registers
callback twice(different id though, and orb object shares the same callback
port:2468 ):

callbacks = new Callbacks( orb );
mWebCallback = new MwebWebCallbackImpl(m_Queue);
mWapCallback = new MwebWapCallbackImpl(m_Queue);

// register callbacks
registerCallback(mWebCallback, web_callback);
registerCallback(mWapCallback, wap_callback);

Opinion?

Thanks!!

David


-Original Message-
From: Bodycombe, Andrew [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 9:49 AM
To: 'Tomcat Users List'
Subject: RE: CORBA initialization error with Tomcat 4.1


Sounds like you have hit your CORBA implementation limit.

See the CORBA documentation for more details.

Andy

-Original Message-
From: Xu, David [mailto:[EMAIL PROTECTED]]
Sent: 08 January 2003 17:49
To: '[EMAIL PROTECTED]'
Subject: CORBA initialization error with Tomcat 4.1
Importance: High


Hi, there,

I use a Bea Tuxedo CORBA client and the CORBA client object within a servlet
has been working fine with Tomcat 3. Now with Tomcat 4.1.18, the servelet
start up with errors:

Exception err=org.omg.CORBA.IMP_LIMIT:   vmcid: 0x0  minor code: 0
completed: No


Has anyone has a clue? or doing the same?


Regards,
David

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

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

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




Re: limiting access by IP address

2003-01-08 Thread Gary Gwin
An IP address cannot be changed mid-stream and cannot be easily faked 
(without the cooperation of the intervening network systems). The Apache 
distribution has long included mod_access for this purpose, and it is 
widely used. With Apache, you can either specify to deny or grant access 
to an IP address using regular expression syntax. See the Apache 
documentation for more information.

Using IP addresses for access control is very useful within company 
intranets (e.g. the engineering department has access but the marketing 
department does not). It can also provide pseudo-firewall capabilities 
to deny Internet access to bad guys, or only grant access to users from 
a specific company. When accompanied with user authentication, it 
provides an extra measure of security (known as two-factor 
authentication). Generally, authentication (or identification more 
specifically) is a function of:

   Something you know (a username and password)
   Something you have (a smartcard or IP address)
   Something you are (biometrics)

Gary

Joel Rees wrote:

You can do the
same things with Valves and Filters for free.
   


Stupid question, but what exactly is the point of limiting access by IP
address? (IP addresses being spoofable, and all, ...)

 


--

Gary Gwin
http://www.cafesoft.com

*
*   *
*   The Cafesoft Access Management System, Cams, is security*
*   software that provides single sign-on authentication and*
*   centralized access control for Apache, Tomcat, and custom   *
*   resources.  *
*   *
*



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




why doesn't tomcat see my correct keystore?

2003-01-08 Thread Rob Lagana

Hello,

Using tomcat 4.1 on a Windows 2000 sp3 system
Used keytool to generate the alias tomcat and keystore called mykeystore
Create a self signed cert.. used the default password changeit

I then created a CSR from using the keystore.. Imported the signed cert from 
the external CA into the keystore mykeystore

did a -list -keystore mykeystore and it should be the cert..

I then added the attributes to my server.xml file to use point to the new 
mykeystore location with password.. saved and started up tomcat

For some reason it's still looking at the self signed cert and not the new 
one.

What exactly is it looking at?

What am I doing wrong?

Thanks,
Roh

_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


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



Re: new user: servlets dont run in new apps

2003-01-08 Thread George Metz
yes !
thank you Sumit.
the servlet-mapping element fixed it.
i need to go back and read the docs more.

George

Shrotriya, Sumit wrote:

 Do you have a servlet-mapping in your web.xml

 Something like this might do for you(Change the MyClass value accordingly)

 ?xml version=1.0 encoding=ISO-8859-1?

 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
 http://java.sun.com/j2ee/dtds/web-app_2.2.dtd;

 web-app
   display-nameMyClass/display-name

   servlet
 servlet-nameMyClass/servlet-name
 servlet-classMyClass/servlet-class
   /servlet

   servlet-mapping
 servlet-nameMyClass/servlet-name
 url-pattern/servlet/MyClass/url-pattern
   /servlet-mapping

 /web-app

 ~Sumit

 -Original Message-
 From: George Metz [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 07, 2003 4:35 PM
 To: [EMAIL PROTECTED]
 Subject: new user: servlets dont run in new apps

 what simple thing am i missing ?
 (probably something in the documentation, but i havent
 found it so far)

 PROBLEM:
 cannot get servlets to run in a NEW webapp. the ones that
 come with tomcat work ok, except for the sample servlet in the
 Developer's Guide. this built-in one doesnt run either:

 http://127.0.0.1:8080/tomcat-docs/appdev/sample/web/hello
 (gives: HTTP Status 404
   The requested resource (/tomcat-docs/appdev/sample/web/hello) is not
 available

 As for my new apps:
 - a simple html page in webapps\george runs ok

 - a tomcat example jsp i modified and dropped into webapps/george/Jsp
 runs fine.
called thusly:
  http://127.0.0.1:8080/george/Jsp/geo_hello.jsp?yakittyyak

 - i successfully copied/renamed/modified/compiled and ran a servlet
 under
  examples\WEB-INF\classes,  even referenced it successfully in
  examples\WEB-INF\web.xml like so :

 servlet
 servlet-namegeorghe/servlet-name
 servlet-classGeorgeHello/servlet-class
 /servlet

  works like a champ when called thusly:
 http://127.0.0.1:8080/examples/servlet/GeorgeHello?username=CletusT
 or
 http://127.0.0.1:8080/examples/servlet/georghe?username=CletusT

  BUT same GeorgeHello class servlet placed under
 webapps\george\WEB-INF\classes
  wont run. gives the dreaded 404

 HTTP Status 404
 The requested resource (/george/servlet/GeorgeHello) is not available

 Have same problem with David Flanagan's (OReilly) javaexamples2
 app (installed it from a .war file, tomcat extracted it).
 JSPs run fine, servlets dont.

 (george app directories were set up manually, but carefully.
  have checked permissions/properties on the directories several
  times. look the same as the examples app to me. )

 thanks!
 George

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


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




JSP Question

2003-01-08 Thread Luc Foisy

I am trying to use %@ include file=filename %

I am sending to the page that has this with the line:
response.sendRedirect(main.jsp?p=+applicationJar.getPageName());

So in main.jsp I would like to include an external file to insert into a default page, 
something like:

SOME DEFAULT PAGE STUFF HERE
%@ include file=filename %
SOME DEFAULT PAGE STUFF HERE

but I would like to replace filename with request.getParameter(p)

Any one have any idea how to do this?

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




RE: Special SSL Request

2003-01-08 Thread Trickel, EE Erik (3946)
Thank you for the link it was very helpful for Apache.  Now how do I do the
same configuration for Tomcat?  Right now it is defaulting to DES.

Thanks,
Erik

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 7:59 AM
To: Tomcat Users List
Subject: RE: Special SSL Request


Have a look at

http://httpd.apache.org/docs-2.0/mod/mod_ssl.html#sslciphersuite

(Although this is for apache 2.0 it applies also to apache 1.3)

 -Original Message-
 From: Trickel, EE Erik (3946) [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 08, 2003 2:37 PM
 To: '[EMAIL PROTECTED]'
 Subject: Special SSL Request
 
   Has anyone configured Apache to only use triple DES for the
 symmetric cipher under SSL?  Is this a code change where I 
 simply disable all the other algs. in the source code or can I 
 make some kind of
 configuration change?  My last question, how do I test this, 
 once I have made the configuration/code change?
 

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




JSP pages with UTF-16LE and UTF-16BE encoding

2003-01-08 Thread Fernando Saborio
I'm creating pages with Unicode Big Endian and Little Endian encoding but
Tomcat prints everything as plain text.

The files are saved using that encoding and the instruction %@ page
pageEncoding=UTF-16BE % is included, 
but tomcat takes the whole page and generates servlet intermediate pages
where everything is taken as simple text

I tried modifying the 'javaEncoding'element in conf/web.xml but I didn't
work. It works fine with UTF-8

Does anyone knows what's the problem?


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




Re: JAASRealm Configuration

2003-01-08 Thread Sam Ewing
Continuing on my quest to get JAAS Realms working.. I
understand that I need to set the following attributes
in the Realm element:

  - appName
  - roleClassNames
  - userClassNames

Is the appName to be the same as the web app name?

Again, if someone has a working configuration that
they'd like to share... I'd be most grateful.

/s

--- Sam Ewing [EMAIL PROTECTED] wrote:
 Any help appreciated! Can't find any documentation
 :-(
 
 
 --- Sam Ewing [EMAIL PROTECTED] wrote:
  Has anyone got a successfully working JAASRealm
  configuration? Would like to see the Realm
  configurations.. any help appreciated. Thanks!
  
  /s
  
 
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up
 now.
 http://mailplus.yahoo.com
 


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

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




RE: JSP Question

2003-01-08 Thread Tim Moore
 -Original Message-
 From: Luc Foisy [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, January 08, 2003 1:54 PM
 To: Tomcat User List (E-mail)
 Subject: JSP Question
 
 
 
 I am trying to use %@ include file=filename %
 
 I am sending to the page that has this with the line: 
 response.sendRedirect(main.jsp?p=+applicationJar.getPageName());
 
 So in main.jsp I would like to include an external file to 
 insert into a default page, something like:
 
 SOME DEFAULT PAGE STUFF HERE
 %@ include file=filename %
 SOME DEFAULT PAGE STUFF HERE
 
 but I would like to replace filename with request.getParameter(p)
 
 Any one have any idea how to do this?

The %@ include % syntax is a static inclusion that happens at
translation time, so it can't depend on runtime parameters.

You want to use:
jsp:include page='%= request.getParameter(p) %'/
(see the JSP spec for details)

Be forewarned that you won't be able to access the enclosing page's
local variables from within the included page (as you can with static
includes), but if you add those variables to the request context you'll
be able to access them that way.

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


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




how to users let know application server is down

2003-01-08 Thread Venkat Reddy Valluri
Hi,
   I want to let users know thru html page saying that application server is down, 
when tomcat is down (here apache is connecting to  tomcat thru mod_jk)

Any help gr8ly appreciated
Thks,
--Venkat

winmail.dat--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: Java Bean Scope questions (a lengthy one)

2003-01-08 Thread Denise Mangano
Bill,

I'm not sure what you mean.  The transaction Bean gets instantiated when I
call CCSubmit.jsp.  That is the first time it is mentioned and CCSubmit is
only called once from Verify.jsp.  Is what you are saying effectively the
same as:

jsp:useBean id=transaction class = com.complusdata.beans.Transaction
scope=session 
  jsp:setProperty name=transaction property=email
value=%=formHandler.getEmail()%/
   
/jsp:useBean

Thanks.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 08, 2003 1:42 AM
To: [EMAIL PROTECTED]
Subject: Re: Java Bean Scope questions (a lengthy one)



Denise Mangano [EMAIL PROTECTED] wrote in message
5D83C44941AFD4118B6F0002B302984F438636@EXCHANGE_SERVER">news:5D83C44941AFD4118B6F0002B302984F438636@EXCHANGE_SERVER...
 Wow someone read all of that!! ;)

 For Question #1:  I should have mentioned this before... I tried to 
 use session scope at one point (don't recall the exact reason but I 
 thought of it as an attempt to resolve a different problem).  When I 
 set the scope to session, it caused problems with my form validation.  
 Currently if the
form
 is not validated, the user is brought back to Retry.jsp and error 
 messages appear next to the offending input field.  When I used 
 session scope, Retry.jsp would be reloaded, but the error messages 
 would not be displayed... Any thoughts on that?  I am going to go back 
 and attempt this again now that everything is working as it should up 
 to Verify.jsp and see if I stand corrected...

You need:
jsp:useBean id=transaction class = com.complusdata.beans.Transaction
scope=session /
  jsp:setProperty name=transaction property=email
value=%=formHandler.getEmail()%/



Note the final '/' on jsp:useBean.  The way that you had it originally, the
properties will only be set if the JSP page needs to create a new instance
of transaction.  If it finds one in the session already, the setters are
skipped.




 For Question #2 - that's exactly what I needed to know!!

 For Question #3 - hopefully I can get the session scope to work, but 
 then how would I program that button?  Would I just put 
 onClick=Retry.jsp ?

 Tim, thank you so much for taking the time!!
 Denise :)

 -Original Message-
 From: Tim Moore [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 07, 2003 9:24 PM
 To: Tomcat Users List
 Subject: RE: Java Bean Scope questions (a lengthy one)


  -Original Message-
  From: Denise Mangano [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, January 07, 2003 9:19 PM
  To: 'Tomcat Users List'
  Subject: Java Bean Scope questions (a lengthy one)
 
 
  Question #1: Why does CCSubmit.jsp not have access to formBean 
  properties. I am thinking this is because technically by submitting 
  a form with an action of CCSubmit.jsp control isn't being 
  forwarded to CCSubmit.jsp so the instance of formBean isn't 
  forwarded.  The scope of formBean is request. Is that the correct 
  scope to use?  **I need to have access to formBean properties from 
  the moment it is instantiated to the moment the application
  has completed, but it has to be unique to each user of the
  webapp.**   How
  could I accomplish this?

 That's exactly what session scope is for. :-) Request scope means that 
 the bean is gone at the end of the request (that is, when Verify.jsp 
 finishes rendering).  If you put it in session scope you'll be set.

  Question #2: Is it possible to use two beans within a single jsp 
  page?  I would imagine that it is, and if so I believe once I gain 
  access to formBean properties, my transaction properties will no 
  longer be null. (I included some code below... is this legal?)

 Absolutely!  As long as they have different id attributes, you can use 
 as many beans as you like.

  Question #3:  I include a button to give the option to go back and 
  make changes.  If the user should desire to go back and make 
  changes, control should be forwarded to Retry.jsp on button click.  
  I need to program this button in a way so that when Retry.jsp is 
  recalled it will still have access to formBean properties.How do I 
  program this? My last attempt using jsp:forward cause Retry.jsp to 
  load automatically when Verify.jsp was loaded (sorry again Noel ;) 
  ).

 As long as the bean is in session scope, you'll be able to access it 
 from any page the user accesses.
 --
 Tim Moore / Blackboard Inc. / Software Engineer
 1899 L Street, NW / 5th Floor / Washington, DC 20036
 Phone 202-463-4860 ext. 258 / Fax 202-463-4863

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




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

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




Apache2 and mod_jk

2003-01-08 Thread Bill
I've been holding off on posting on my problem because there have been a
wealth of posts on this topic.  However, the advice/suggestions I have
seen havent led me to a working system.

I'm trying to setup Tomcat 4.0.6 and HTTPD Server 2.0 using mod_jk. 
I've followed instructions for this task from several sources and
nothing seems to be working.

Here are the steps I followed:

1)  Added the following to httpd.conf:

LoadModule jk_module modules/mod_jk.so

This step also says to add the AddModule directive.  This directive does
not exist for 2.0 nor was I able to find an analogous directive to
replace it.

2)  I have the following in /usr/local/tomcat/conf/jk/workers.properties

workers.list= ajp13
worker.ajp13.type=ajp13

worker.ajp13.host=192.168.1.250
worker.ajp13.port=8009

worker.ajp13.cachesize=10
worker.ajp13.cache_timeout=600
worker.ajp13.socket_keepalive=1
worker.ajp13.socket_timeout=300


3)  I have the following in httpd.conf:

JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
JkLogFile /usr/local/apache2/log/mod_jk.log
JkLogLevel info
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T

Include /usr/local/tomcat/conf/auto/mod_jk.conf

4) Here is my server.xml entry:

Server port=8005 shutdown=SHUTDOWN debug=0
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig/

Service name=Tomcat-Apache

 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8008 minProcessors=5 maxProcessors=75
enableLookups=true
acceptCount=10 debug=0/

 Engine name=Apache defaultHost=192.168.1.250 debug=0
appBase=webapps

  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/
  Realm className=org.apache.catalina.realm.MemoryRealm /

  Host name=192.168.1.250 debug=0 appBase=webapps 
unpackWARs=true

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true/

Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs prefix=192.168.1.250_access_log.
suffix=.txt pattern=common/
  /Host
/Engine
  /Service
/Server

No errors show up in the access log but the following error shows up in
the host log ($TOMCAT_HOME/logs/apache_log.2003-01-08.txt):

2003-01-08 13:07:57 Ajp13Processor[8008][4] [Ajp13] incomplete read,
waited #-1 got only 0

And this is what I get in catalina.log:

Unable to open config file
Starting service Tomcat-Apache
Apache Tomcat/4.0.6
Unable to open config file
BAD packet 18245
In: : [B@45fde0 4/21540
47 45 54 20 00 00 00 00 00 00 00 00 00 00 00 00  | GET.
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | 
snip
This goes on forever so I only included to the first few lines of the
first packet...

Any ideas what I missed?  I did a web search on the error and got a
couple of hits but none of them panned out.  

Thanks

-b










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




  1   2   3   >