Re: tomcat hangs, top displays 99%
Hi, sorry for the late reply, I've been allocated to other projects in the meantime. Nope it doesn't have the header included, but it was worth a shot. Does anybody know where can I find information on how tomcat will respond when the load gets to high? Will it start throwing exceptions, or is there no general response? Also it seems that during stresstesting, tomcat restarts, but I don't know for sure (I see deploy messages). Is it build into tomcat to restart periodically? grtz Hans At 03:04 PM 7/8/2004, Jon Wingfield wrote: Just a thought. Does your error page also have header.jsp included? Have you got yourself into an infinite loop of "Session already invalidated" IllegalStateExceptions? Jon Hans Wichman wrote: Hi, while stresstesting my application using tomcat 4.1.29, oracle, dbcp connection pooling and a stresstest tool, I see the amount of my connections in my pool fluctuate (as expected). At a certain while I still have plenty connections left in the pool, errors start occuring: org.apache.jasper.JasperException: setAttribute: Session already invalidated and after this has happened for a while (some processing proceeds normally), I get: org.apache.jasper.JasperException: at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) ... root cause ... javax.servlet.ServletException: at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536) at org.apache.jsp.header_jsp._jspService(header_jsp.java:293) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at this point tomcat hangs. If I shutdown the stresstest tool, tomcat still displays at 99% when running top (freebsd). Does anybody know why these errors occur, and why after stopping the stresstest, tomcat is still at 99%? I don't see any out of memory errors or something like that, and don't really know where to start exploring the problem. thanks in advance Hans W - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Request for an Immediate Solution
i think that is the problem with ur jdk1.3,better to install another jdk or jdk131_03, i think this may solve ur problem shiva Sayeed <[EMAIL PROTECTED]> wrote: dear Shiv wish your good health. I have a question: when i run Tomcat4.1.3, the following error message comes, can you plz let me know where the things are wrong and how i can rectify: C:\Apache\Tomcat\bin>catalina.bat run Using CATALINA_BASE: D:\Apache\Tomcat Using CATALINA_HOME: D:\Apache\Tomcat Using CATALINA_TMPDIR: D:\Apache\Tomcat\temp Using JAVA_HOME: D:\JDK1.3 [ERROR] Digester - -Begin event threw exception on: Invalid index!>sun.misc.InvalidJarIndexException: Invalid index! at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594) at sun.misc.URLClassPath.getResource(URLClassPath.java:134) at java.net.URLClassLoader$1.run(URLClassLoader.java:192) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.apache.catalina.loader.StandardClassLoader.findClass(StandardClas sLoader.java:621) and more like that i am waiting your reply. Thanks in advance. Saeed Programmer - Original Message - From: "shiv juluru" To: "Tomcat Users List" Sent: Wednesday, July 21, 2004 11:38 AM Subject: Re: Request for an Immediate Solution > > it's very simple, > verify the tomcat-users.xml file in conf directory.u can find the user names and passwords, > other wise copy ur jsp files in ROOT directory and create one web-inf folder in that ROOT directory,and copy ur web.xml in that ROOT/WEB-INF directry,create one more classes directory in that ROOT/WEB-INF/ folder,copy all ur servlets classes in that directory. > > the better thing is deploying the jar file is best way. > > > Sridharan Rajagopalan wrote: > > Hi All, > > My Name is Rajagopalan. Iam doing MCA final year. > > I have to do a mini project now. For the same I have installed TomCat server in my house. But when I type the following in Internet Explorer after installing the Server: > > http://localhost:8080/index.html or any jsp file > > it asks me "user name" and "Password". So Iam not able to work with the same. I have to complete the project by this month end. Iam yet to start the same. So any body can help me out on the problem Iam facing immediately. > > I request you to give me an immediate solution for this as I have to start the project as early as possible. > > Thanx > > Rajagopalan > > > > Yahoo! India Careers: Over 65,000 jobsonline. > > - > Do you Yahoo!? > Vote for the stars of Yahoo!'s next ad campaign! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers!
RE: Request for an Immediate Solution
> From: Sayeed [mailto:[EMAIL PROTECTED] > Subject: Re: Request for an Immediate Solution > > Using JAVA_HOME: D:\JDK1.3 > [ERROR] Digester - -Begin event threw exception > on: Invalid index!>sun.misc.InvalidJarIndexException: Invalid index! The Sun 1.3 JDK has known problems in handling indexed jar files. Best if you could move up to the current 1.4.2 level. If not, then at least get 1.3.1 installed on your machine. - Chuck - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Request for an Immediate Solution
dear Shiv wish your good health. I have a question: when i run Tomcat4.1.3, the following error message comes, can you plz let me know where the things are wrong and how i can rectify: C:\Apache\Tomcat\bin>catalina.bat run Using CATALINA_BASE: D:\Apache\Tomcat Using CATALINA_HOME: D:\Apache\Tomcat Using CATALINA_TMPDIR: D:\Apache\Tomcat\temp Using JAVA_HOME: D:\JDK1.3 [ERROR] Digester - -Begin event threw exception sun.misc.InvalidJarIndexException: Invalid index! at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594) at sun.misc.URLClassPath.getResource(URLClassPath.java:134) at java.net.URLClassLoader$1.run(URLClassLoader.java:192) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.apache.catalina.loader.StandardClassLoader.findClass(StandardClas sLoader.java:621) and more like that i am waiting your reply. Thanks in advance. Saeed Programmer - Original Message - From: "shiv juluru" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, July 21, 2004 11:38 AM Subject: Re: Request for an Immediate Solution > > it's very simple, > verify the tomcat-users.xml file in conf directory.u can find the user names and passwords, > other wise copy ur jsp files in ROOT directory and create one web-inf folder in that ROOT directory,and copy ur web.xml in that ROOT/WEB-INF directry,create one more classes directory in that ROOT/WEB-INF/ folder,copy all ur servlets classes in that directory. > > the better thing is deploying the jar file is best way. > > > Sridharan Rajagopalan <[EMAIL PROTECTED]> wrote: > > Hi All, > > My Name is Rajagopalan. Iam doing MCA final year. > > I have to do a mini project now. For the same I have installed TomCat server in my house. But when I type the following in Internet Explorer after installing the Server: > > http://localhost:8080/index.html or any jsp file > > it asks me "user name" and "Password". So Iam not able to work with the same. I have to complete the project by this month end. Iam yet to start the same. So any body can help me out on the problem Iam facing immediately. > > I request you to give me an immediate solution for this as I have to start the project as early as possible. > > Thanx > > Rajagopalan > > > > Yahoo! India Careers: Over 65,000 jobsonline. > > - > Do you Yahoo!? > Vote for the stars of Yahoo!'s next ad campaign! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Request for an Immediate Solution
it's very simple, verify the tomcat-users.xml file in conf directory.u can find the user names and passwords, other wise copy ur jsp files in ROOT directory and create one web-inf folder in that ROOT directory,and copy ur web.xml in that ROOT/WEB-INF directry,create one more classes directory in that ROOT/WEB-INF/ folder,copy all ur servlets classes in that directory. the better thing is deploying the jar file is best way. Sridharan Rajagopalan <[EMAIL PROTECTED]> wrote: Hi All, My Name is Rajagopalan. Iam doing MCA final year. I have to do a mini project now. For the same I have installed TomCat server in my house. But when I type the following in Internet Explorer after installing the Server: http://localhost:8080/index.html or any jsp file it asks me "user name" and "Password". So Iam not able to work with the same. I have to complete the project by this month end. Iam yet to start the same. So any body can help me out on the problem Iam facing immediately. I request you to give me an immediate solution for this as I have to start the project as early as possible. Thanx Rajagopalan Yahoo! India Careers: Over 65,000 jobsonline. - Do you Yahoo!? Vote for the stars of Yahoo!'s next ad campaign!
Re:
Joel wrote: What are these BMP files coming from this guy? Well, Craig is not the kind of guy to let a virus run on his machine very long in the first place, and most viruses these days spoof the sender, so it's hard to tell where the compromised machine is. Zou can lookup IP address of the sender from the SMTP headers included in the mail. It might not give you what you want (the ID of the hacked sucker), but it will give you a basic idea where the guy is. But, since you ask, I just checked, and the file is only about 3Kb long, so I scanned it with the anti-virus (nothing) and then took a look at it. (No double-clicking, of course.) It looks like a number underlined, maybe intended for use as a graphic link. It is a damaged W32/Bagle-Zip virus variant. The functional version sends an encrypted ZIP file with the payload (to disable AV scanners) and a BMP with the code to unlock the ZIP. The code is generated each time the file is sent. Craig sure seems to be quiet on the users list these days. Maybe he is on some paradise tropical island, basking in the sun... (sigh). Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Request for an Immediate Solution
which version of tomcat u installed? and which operating system u are using? Saeed - Original Message - From: "Sridharan Rajagopalan" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, July 21, 2004 10:55 AM Subject: Request for an Immediate Solution > > Hi All, > > My Name is Rajagopalan. Iam doing MCA final year. > > I have to do a mini project now. For the same I have installed TomCat server in my house. But when I type the following in Internet Explorer after installing the Server: > > http://localhost:8080/index.html or any jsp file > > it asks me "user name" and "Password". So Iam not able to work with the same. I have to complete the project by this month end. Iam yet to start the same. So any body can help me out on the problem Iam facing immediately. > > I request you to give me an immediate solution for this as I have to start the project as early as possible. > > Thanx > > Rajagopalan > > > > Yahoo! India Careers: Over 65,000 jobsonline. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Request for an Immediate Solution
Hi All, My Name is Rajagopalan. Iam doing MCA final year. I have to do a mini project now. For the same I have installed TomCat server in my house. But when I type the following in Internet Explorer after installing the Server: http://localhost:8080/index.html or any jsp file it asks me "user name" and "Password". So Iam not able to work with the same. I have to complete the project by this month end. Iam yet to start the same. So any body can help me out on the problem Iam facing immediately. I request you to give me an immediate solution for this as I have to start the project as early as possible. Thanx Rajagopalan Yahoo! India Careers: Over 65,000 jobsonline.
Win2K, ApacheHTTPD2.0.5, Tomcat5 and JK2
Hello all I've got a win2k server running Apache2.0.5, mod_jk2/2.0.2 and tomcat4.1, using the inprocess worker I am trying to upgrade to Tomcat 5 and mod_jk2/2.0.4 If I start Tomcat5 manually, then ApacheHTTPd and mod_jk2 succesfully pass the requests through and jsp and servlets work. However, just starting the ApacheHTTP, tomcat won't start. I've tried upgrading just the mod_jk2 , and leaving Tomcat at 4.1, with no difference - Tomcat doesn't appear to attempt to start. If I try to upgrade Tomcat to 5 and leave mod_jk2 at mod_jk2/2.0.2, then I get errors in the error.log regarding classes not found. I've tried various combinations of classpath in the workers2.properties, including all the jar files in ${CATALINA_HOME}/bin and $(CATALINA_HOME}/server/lib. The class not found varies depending on the classpath. With all the jar files in the classpath, there are no errors re class not ofund, but the workers do not start. Below are my workers2.properties and my jk2.properties. Anyone made Apache/Tomcat5 communicate using the inprocess worker? Any tips? Roo jk2.properties -- apr.jniModeSo=inprocess workers2.properties --- [logger] level=ERROR [shm] file=D:/www/logs/jk2.shm size=1048576 disabled=0 # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 #InProcess Channel [channel.jni:jni] info=The jni channel - used if Tomcat is started inprocess # define the worker #[ajp13:localhost:8009] #channel=channel.socket:localhost:8009 [vm:] info=Parameters used to load a JVM in the server process OPT=-Djava.class.path=C:/Programs/ApacheGroup/tomcat5/server/lib/tomcat-jk2.jar;C:/Programs/ApacheGroup/tomcat5/server/lib/catalina.jar;C:/Programs/ApacheGroup/tomcat5/server/lib/tomcat-jni.jar OPT=-Dtomcat.home=C:/Programs/ApacheGroup/tomcat5 OPT=-Dcatalina.home=C:/Programs/ApacheGroup/tomcat5 OPT=-Xmx128M disabled=0 [worker.jni:onStartup] info=Command to be executed by the VM on startup. This one will start tomcat. class=org/apache/jk/apr/TomcatStarter ARG=start disabled=0 stdout=D:/www/logs/stdout.log stderr=D:/www/logs/stderr.log [worker.jni:onShutdown] info=Command to be executed by the VM on shutdown. This one will stop tomcat. class=org/apache/jk/apr/TomcatStarter ARG=stop disabled=0 # Uri mapping [uri:/ROOT/*] [uri:/jsp-examples/*] [uri:/servlets-examples/*] [uri:/balancer/*] [uri:/tomcat-docs/*] #worker=ajp13:localhost:8009 # define the worker [status:status] # Uri mapping [uri:/jkstatus/*] worker=status:status - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error Starting Tomcat
Dear Shapira Yoav Regarding tomcat installation: I download tomcat 4.1.30 Exe file and install the same by clicking the application at my Win98 OS. In the mid of installation it gives me a message that it had found Java (JDK1.3) and will use it. I click okay. then the installation complete with success. I have already jdk1.3 installed on my pc and it is working 100%. Now after installing jakarta_tomcat to a folder "c\apache\tomcat", I create two environment variables into my Autoexe.bat file as under : set JAVA_HOME=C:\jdk1.3 set CATALINA_HOME=C:\APACHE\TOMCAT so plz let me know what i should have to do why it is not working? thanx Saeed - Original Message - From: "Shapira, Yoav" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, July 20, 2004 9:31 PM Subject: RE: Error Starting Sample Tomcat Webapps Hola, How did you install tomcat? Yoav Shapira Millennium Research Informatics >-Original Message- >From: Sayeed [mailto:[EMAIL PROTECTED] >Sent: Tuesday, July 20, 2004 12:40 PM >To: Tomcat Users List >Subject: Re: Error Starting Sample Tomcat Webapps > >Dear Filip >thanx for the advice - i put the same command and it gives these message : > >Dispatcher.dispatch(Unknown Source) >at >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un >known Source) >at org.apache.xerces.parsers.XML11Configuration.parse(Unknown >Source) >at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) >at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) >at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown >Source) >at org.apache.commons.digester.Digester.parse(Digester.java:1548) >at org.apache.catalina.startup.Catalina.start(Catalina.java:449) >at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) >at org.apache.catalina.startup.Catalina.process(Catalina.java:180) >at java.lang.reflect.Method.invoke(Native Method) >at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) > >Catalina.start: sun.misc.InvalidJarIndexException: Invalid index! >sun.misc.InvalidJarIndexException: Invalid index! >at >org.apache.commons.digester.Digester.createSAXException(Digester.java >:2540) >at >org.apache.commons.digester.Digester.createSAXException(Digester.java >:2566) >at >org.apache.commons.digester.Digester.startElement(Digester.java:1276) > >at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown >Sour >ce) >at >org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn >own Source) >at >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen >t(Unknown Source) >at >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent >Dispatcher.dispatch(Unknown Source) >at >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un >known Source) >at org.apache.xerces.parsers.XML11Configuration.parse(Unknown >Source) >at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) >at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) >at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown >Source) >at org.apache.commons.digester.Digester.parse(Digester.java:1548) >at org.apache.catalina.startup.Catalina.start(Catalina.java:449) >at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) >at org.apache.catalina.startup.Catalina.process(Catalina.java:180) >at java.lang.reflect.Method.invoke(Native Method) >at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) > >c:\apache\tomcat\bin > >plz advice > >Saeed - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[SPOOFS] Re:
> There was one a couple of days ago that was "key:#" but I don't remember > what the number was. Still the emails are strange, but don't appear to be a > virus that I know about. Well, I've heard of some viruses that grab random files from the compromised machine and spread them far and wide. Usually it's with the infectious agent buried in the doc, but it would be hard to hide an infectious bit of code in a bitmap or piece of text that size. Maybe someone from Brazil is borrowing Craig's e-mail address to explore some new, bizarre form of encryption where the message is striped across several completely irrelevant messages. Or maybe Craig has been kidnapped, and is trying to tell us he is being held hostage in Brazil. I sent Craig a query, CCed to Brasil Telecom (who owns the IP block). That's about all that can be done, so let's not bother the list further. > > > What are these BMP files coming from this guy? > > > > Well, Craig is not the kind of guy to let a virus run on his > > machine very long in the first place, and most viruses these > > days spoof the sender, so it's hard to tell where the > > compromised machine is. > > > > But, since you ask, I just checked, and the file is only > > about 3Kb long, so I scanned it with the anti-virus (nothing) > > and then took a look at it. > > > > (No double-clicking, of course.) > > > > It looks like a number underlined, maybe intended for use as > > a graphic link. > > > > Craig sure seems to be quiet on the users list these days. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE:
There was one a couple of days ago that was "key:#" but I don't remember what the number was. Still the emails are strange, but don't appear to be a virus that I know about. --mikej -=- mike jackson [EMAIL PROTECTED] > -Original Message- > From: Joel [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 20, 2004 6:47 PM > To: Tomcat Users List > Subject: Re: > > > > What are these BMP files coming from this guy? > > Well, Craig is not the kind of guy to let a virus run on his > machine very long in the first place, and most viruses these > days spoof the sender, so it's hard to tell where the > compromised machine is. > > But, since you ask, I just checked, and the file is only > about 3Kb long, so I scanned it with the anti-virus (nothing) > and then took a look at it. > > (No double-clicking, of course.) > > It looks like a number underlined, maybe intended for use as > a graphic link. > > Craig sure seems to be quiet on the users list these days. > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
not getting connection leak stacktraces
Tomcat's reporting some connection leaks in my application...but I can't figure out where they're coming from. The only output i see in my logs is: AbandonedObjectPool is used ([EMAIL PROTECTED]) LogAbandoned: true RemoveAbandoned: true RemoveAbandonedTimeout: 60 I'm running Tomcat 5.0.27, connecting to MySQL 12.22 using mysql-connector 3.0.11. My connection pool is setup as follows: factory org.apache.commons.dbcp.BasicDataSourceFactory maxActive 10 maxIdle 2 maxWait 1 removeAbandoned true removeAbandonedTimeout 60 logAbandoned true username XXX password XXX driverClassName com.mysql.jdbc.Driver url jdbc:mysql://localhost:3306/mydatabase?autoReconnect=true I can't see any obvious leaks in my code, so I'm completely baffled. Any help is appreciated. -e - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re:
> What are these BMP files coming from this guy? Well, Craig is not the kind of guy to let a virus run on his machine very long in the first place, and most viruses these days spoof the sender, so it's hard to tell where the compromised machine is. But, since you ask, I just checked, and the file is only about 3Kb long, so I scanned it with the anti-virus (nothing) and then took a look at it. (No double-clicking, of course.) It looks like a number underlined, maybe intended for use as a graphic link. Craig sure seems to be quiet on the users list these days. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting up mod_jk for Tomcat 5.0.27 under Apache 1.3.x
From: "Michael Mehrle" <[EMAIL PROTECTED]> > Okay, I can't believe how lousy the documentation for this is on the jakarta > site: It might help to provide a link to the docs you're trying to work from, and ask specific questions if something is unclear. At some point in the distant past, I did manage to get Apache and Tomcat working together on HP-UX, but it took a couple of days taking very detailed notes, studying log files, and restarting often. At least you're not starting with HP's often "interesting" Apache config! The good news is that once it works, you can pretty much ignore it. My initial thought is that Apache 1.3 and Tomcat 5 are probably getting too far apart to be compatible, but that's just a suspicion. Have you read anything that suggests that this combination has been made to work together? As you mention, the jk/binaries/linux folder is empty, so I backed up a couple to: http://apache.bestwebcover.com/jakarta/tomcat-connectors/jk/ And... it says: Apache-Tomcat mod_jk 1.2 This version of mod_jk 1.2 can be used with Tomcat 3.3.x, 4.0.x and 4.1.x Maybe the docs just haven't been updated, but that isn't comforting if you're trying to use it with Tomcat 5. My advice would be to grab the source from the above link and see if you can compile it on Redhat 9. Then you'll have the mod_jk.so file you need. Then start over and change only one thing at a time. When you run into a snag, post what you did so far and what your config files look like. If it's possible to do, someone here can probably help you do it. If someone's really bored, maybe a grid that shows what OS/Apache/connector/Tomcat combinations are known to work would be a good project. :) -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting up mod_jk for Tomcat 5.0.27 under Apache 1.3.x
In case I didn't make this clear before: 1) I'm running Apache 1.3 (NOT APACHE2) on RedHat 9.0 2) I cannot find the right mod_jk module Now, I downloaded some rpm for Redhat 9 and the mod_jk.so I have configured in httpd.conf seems to have a problem - when I call httpd configtest I get: Cannot load /usr/local/apache/libexec/mod_jk.so into server: /usr/local/apache/libexec/mod_jk.so: undefined symbol: apr_sockaddr_ip_get I looked around for this error message, but can't find anything. And there is no Linux binary on the jakarta site - the directory is empty! I really need to get this up and running - any help would be appreciated. Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CRUD Operations using Tomcat
From: "Valter G. Nogueira Jr." <[EMAIL PROTECTED]> > I am looking for good ways to implements CRUD ops using Tomcat > Having handcrafted jsp/servlets almost identicals seems to be not only > boring, but an error prone aproach. How are you doing it now? Do you have JDBC code inside your Servlets? I use Struts, and on that users list we often get the same sort of question, "How do I read and write records using Struts?" The answer is the same-- you don't. You do your data access in a separate layer of code so that nothing in the Action [or Servlet] even knows that a database exists. There are several options available if you're using JDBC-- I think Hibernate is one? I wrote my own and followed the J2EE Data Access Objects pattern. So in my Actions I have code along the lines of: Person person = personDAO.read( "12345" ); HTH, -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CRUD Operations using Tomcat
Valter G. Nogueira Jr. wrote: I am looking for good ways to implements CRUD ops using Tomcat We use Apache Struts to implement the CRUD approach, along with it's DynaActionForms feature. Regards, Graham -- smime.p7s Description: S/MIME Cryptographic Signature
CRUD Operations using Tomcat
Hi, I am looking for good ways to implements CRUD ops using Tomcat Having handcrafted jsp/servlets almost identicals seems to be not only boring, but an error prone aproach. Thanks for any advice Valter
Re: Setting up mod_jk for Tomcat 5.0.27 under Apache 1.3.x
Sorry, but I don't understand your question. I am myself SOL on this and am seeking help from someone Michael - Original Message - From: "Aristides Burke" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, July 20, 2004 2:55 PM Subject: Re: Setting up mod_jk for Tomcat 5.0.27 under Apache 1.3.x > Hi Michael. > > I have Apache 2 and Tomcat 4.1.30, I cannot compile the donwload > file of internet. > I down of the internet both file, Mod_jk and Mod_jk2 but out the same error. > You can Send me the Mod_jk2 for Apache 2 and Tomcat 4.1.30? > > > - Original Message - > From: "Michael Mehrle" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Tuesday, July 20, 2004 2:43 PM > Subject: Setting up mod_jk for Tomcat 5.0.27 under Apache 1.3.x > > > > Okay, I can't believe how lousy the documentation for this is on the > jakarta > > site: > > > > - Where do I find the latest connector (mod_jk) for Apache 1.3.x (I can't > > run Apache 2 because my hosting provider doesn't support it and needs 1.3 > to > > run cPanel). > > - How do I reliably install that module for Tomcat 5.0.27? > > > > Again, the docs online are all over the place - I can't make it work. Any > > help would be greatly appreciated. > > > > Thanks, > > > > Michael > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.lang.ThreadDeath
I have an Action that uses some business classes that in turn use the BouncyCastle encryption libraries; everything works fine until I restart the web application context, at which point this Action's execute method throws a ThreadDeath exception. In searching this list's archives I saw some references to a problem with an outdated log4j version that tried to use the "old" class loader and produced this exception: http://www.mail-archive.com/[EMAIL PROTECTED]/msg121827.html ...but I'm not using log4j; however, the problem could be similar. I was wondering if anyone could confirm if they think this is a BouncyCastle libraries problem; I'm not terribly experienced at interpreting stack traces...BouncyCastle is mentioned, but the last several lines belong to java.security classes. Just wanted a second opinion before posting to the BouncyCastle groups...: java.lang.ThreadDeath org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1229) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1189) java.security.Security.doGetImpl(Security.java:1123) java.security.Security.doGetImpl(Security.java:1084) java.security.Security.getImpl(Security.java:1045) java.security.Signature.getInstance(Signature.java:218) org.bouncycastle.openpgp.PGPSignature.(PGPSignature.java:65) org.bouncycastle.openpgp.PGPSecretKeyRing.(PGPSecretKeyRing.java:127) org.bouncycastle.openpgp.PGPObjectFactory.nextObject(PGPObjectFactory.java:6 9) org.bouncycastle.openpgp.PGPSecretKeyRingCollection.(PGPSecretKeyRingC ollection.java:35) com.amfllc.security.service.PgpService.readSecretKey(PgpService.java:229) com.amfllc.security.service.PgpService.(PgpService.java:44) com.amfllc.security.service.PgpService.(PgpService.java:26) com.amfllc.funding.service.FcsService.(FcsService.java:48) com.amfllc.funding.service.FcsService.(FcsService.java:35) com.amfllc.web.internal.actions.funding.fcs.ViewQueueAction.execute(ViewQueu eAction.java:42) ...etc. Thank you for looking, -Sasha Borodin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with jdbc:odbc in Tomcat 5.025
Ok, thanks for replying, First, both tomcats are running on the same machine, but not at the same time, i just wanted to prove to myself that something's changed in Tomcat 5. Second, Tomcat 4 is running as a standalone, and the other one as a service, and at first I was using a user level DNS, but now i'm using a System DNS, and I have a new error. Third, they are using the exact same configuration. This is the new error: java.sql.SQLException: General error at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6987) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115) at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3074) at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:323) at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171) at com.crstore.admin.AdminDbBean.getDescriptors(AdminDbBean.java:50) at org.apache.jsp.jsp.Menu_jsp._jspService(Menu_jsp.java:118) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) at org.apache.jsp.jsp.Default_jsp._jspService(Default_jsp.java:102) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) at com.crstore.core.Shopper.doPost(Shopper.java:95) at com.crstore.core.Shopper.doGet(Shopper.java:64) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at
Re: Setting up mod_jk for Tomcat 5.0.27 under Apache 1.3.x
On 20 Jul 2004 at 12:43, Michael Mehrle michael-at-datasaur.com |T wrote: > Okay, I can't believe how lousy the documentation for this is on the jakarta > site: > - Where do I find the latest connector (mod_jk) for Apache 1.3.x (I can't > run Apache 2 because my hosting provider doesn't support it and needs 1.3 to > run cPanel). > - How do I reliably install that module for Tomcat 5.0.27? > Again, the docs online are all over the place - I can't make it work. Any > help would be greatly appreciated. > Thanks, > Michael I'm also trying to learn how to connect Tomcat 5.0.27 to Apache (in my case Apache 2.0). here from my own research .. get JK connectors from here .. http://apache.rmplc.co.uk/dist/jakarta/tomcat-connectors/jk/binaries/win32/ my guess is for Apache 1.3x you will need .. mod_jk_1.2.5_1.3.28 quote: "mod_jk_1.2.5_1.3.28 is for Apache 1.3.x. Rename to mod_jk.dll before putting it in your Apache/modules directory " me? .. I'm focussed on getting mod_jk2.so to work .. get that from here .. http://apache.rmplc.co.uk/dist/jakarta/tomcat-connectors/jk2/binaries/win32/ . note different setup between mod_jk .. and .. mod_jk2 . here are some installation guides I've bookmarked in my digging around .. http://www.galatea.com/flashguides/apache-tomcat-win32.xml http://mpcon.org/temp/how2install_apache_w_php_jsp_support.doc http://jakarta.apache.org/tomcat/faq/connectors.html http://jakarta.apache.org/tomcat/connectors-doc/jk2/jk2/confighowto.html ... all a bit confusing to a newcomer .. At least I've got both servers to run .. just need to test the JK connection. question is .. how? dl
Re: Setting up mod_jk for Tomcat 5.0.27 under Apache 1.3.x
Hi Michael. I have Apache 2 and Tomcat 4.1.30, I cannot compile the donwload file of internet. I down of the internet both file, Mod_jk and Mod_jk2 but out the same error. You can Send me the Mod_jk2 for Apache 2 and Tomcat 4.1.30? - Original Message - From: "Michael Mehrle" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, July 20, 2004 2:43 PM Subject: Setting up mod_jk for Tomcat 5.0.27 under Apache 1.3.x > Okay, I can't believe how lousy the documentation for this is on the jakarta > site: > > - Where do I find the latest connector (mod_jk) for Apache 1.3.x (I can't > run Apache 2 because my hosting provider doesn't support it and needs 1.3 to > run cPanel). > - How do I reliably install that module for Tomcat 5.0.27? > > Again, the docs online are all over the place - I can't make it work. Any > help would be greatly appreciated. > > Thanks, > > Michael > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache + Tomcat socket error
John, >From what you've said, I don't believe this is a Tomcat issue, but rather an Apache configuration problem. Make sure that your mod_proxy module is being loaded in the httpd.conf file ( see document: http://httpd.apache.org/docs-2.0/mod/mod_proxy.html#proxypass ) james -Original Message- From: John Archbold [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 20, 2004 2:36 PM To: Tomcat Users List Subject: Re: Apache + Tomcat socket error Hi James thaanks for your help to begin with. I forgot to mention im using apache2 and tomcat5, i tried what u said and it came back with invalid command proxypass have you got any other ideas? On Mon, 19 Jul 2004 16:35:56 -0500, McClure, James <[EMAIL PROTECTED]> wrote: > Hi John, > > Give this a try... > > To get to your application via Apache (as a proxy) you will need to > configure Apache to pass the request/response via Tomcat by specifying where > to go when it sees that you are asking for the specific web application. > > Create a new file [apache home directory]/conf/myproxy.conf > In this file add these 2 proxy entries (port # is for Tomcat 4): > > ProxyPass /MyFirst/HelloWorld/ http://localhost:8080/MyFirst/HelloWorld > ProxyPassReverse /MyFirst/HelloWorld/ > http://localhost:8080/MyFirst/HelloWorld > > Now reference this new file in your httpd.conf file located in ...[apache > home directory]/conf/ by adding the following entry at the bottom of the > file: > > include conf/myproxy.conf > > Restart apache > > james > > > > -Original Message- > From: John Archbold [mailto:[EMAIL PROTECTED] > Sent: Monday, July 19, 2004 4:17 PM > To: [EMAIL PROTECTED] > Subject: Apache + Tomcat socket error > > Hello everyone, > > I have a simple (probably) yet difficult problem that i cant seem to fix. > > I installed apache (from source) and tomcat (from binary) and i > compiled the jakarta connector as one should. > > If i issue http://localhost:8080/ i get the tomcat homepage > > if i issue http://localhost/ i get apache. > > I followed instructions from a website to set all this up you see. I > even managed to compile a servlet and get it working if i issue > http://localhost:8080/MyFirst/HelloWorld yet if i issue > http://localhost/MyFirst/HelloWorld it is not visible, it says the > resource is busy etc. > > I have noticed tho that the socket file that is specified to be > created is infact not being created, ive tried changing the location > of the socket file and even using touch to create it. Nothing seems to > work. > > I expect this is some novice problem and im just missing something out. > > Can anyone help? > > Many many thanks (ive been trying for weeks to sort this out!) > > John A > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with jdbc:odbc in Tomcat 5.025
Iván Escobedo wrote: Hello guys I have a question, I have two tomcats. 4.1.30 and 5.0.27, both with the same application, they are both similar and connect to a MSAccess database thru Jdbc Odbc bridge, however, in 4.1.30 everything works, but in 5.0.27 i have this message when I try to connect to the database. I have searched for the answer, but until now i don't know what's the problem, could you help me? java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115) at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3074) at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:323) at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171) at com.crstore.admin.AdminDbBean.getDescriptors(AdminDbBean.java:50) at org.apache.jsp.jsp.Menu_jsp._jspService(Menu_jsp.java:118) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) at org.apache.jsp.jsp.Default_jsp._jspService(Default_jsp.java:102) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) at com.crstore.core.Shopper.doPost(Shopper.java:95) at com.crstore.core.Shopper.doGet(Shopper.java:64) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.Stan
Re: AW: Tomcat 4.1.24 + Security Manager + weird Exceptions
I'm experiencing this same issue. I've got Tomcat 5.0.27, Apache 2.0.46, and jk2 version 2.0.4. Has there been any solution? It occurs primarily under heavy load. -Joshua Szmajda We've got a similar issue, though this in on Linux and using channelUnix/JNI instead of normal tcp channelSocket. We're using Apache2/mod_jk2 (built from tomcat-connectors-1.1M1). On heavy load, there are over 3000 sockets open by one Tomcat/JVM, they don't seem to go down again too while Tomcat is running. (since File Descriptor limit on Solaris is lower normally (1024 or summat i think) this would cause us heavy problems there too) The Tomcats and Apache are restarted during the night to free up Memory, so socket count goes down then. However the application doesn't seem to be affected by this. In catalina.out there are many errors like this: org.apache.jk.common.ChannelUn receive SEVERE: receive error: 12 java.lang.Throwable at org.apache.jk.common.ChannelUn.receive(ChannelUn.java:230) at org.apache.jk.common.ChannelUn.processConnection(ChannelUn.java:282) at org.apache.jk.common.AprConnection.runIt(ChannelUn.java:350) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:631) at java.lang.Thread.run(Thread.java:536) org.apache.jk.common.JniHandler nativeDispatch SEVERE: nativeDispatch: error -3 java.lang.Throwable at org.apache.jk.common.JniHandler.nativeDispatch(JniHandler.java:312) at org.apache.jk.common.ChannelUn.send(ChannelUn.java:221) at org.apache.jk.common.ChannelUn.invoke(ChannelUn.java:306) at org.apache.jk.server.JkCoyoteHandler.doWrite(JkCoyoteHandler.java:249) at org.apache.coyote.Response.doWrite(Response.java:530) at org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java:384) at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:439) at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:359) at org.apache.coyote.tomcat4.OutputBuffer.writeBytes(OutputBuffer.java:411) at org.apache.coyote.tomcat4.OutputBuffer.write(OutputBuffer.java:398) at org.apache.coyote.tomcat4.CoyoteOutputStream.write(CoyoteOutputStream.java:110) at org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.java:1996) at org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1745) at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1073) at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:506) . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk2: .so versus .dll
If the naming of these files follows the usual conventions - mod_jk2.dll is a library for Windows, mod_jk2.so is a library for unix/linux. They're probably equivalents to eachother but will not be interchangable. -- Stephen Hirode, Kartheek V. wrote: Hello all We have the following config working hunky-dory in our env: - Win2000 - Apache 2.0.47 (port 80) - Tomcat 4.1.16 (port 8009) - jk2 - The three run inprocess as an NT service - The jk2 starts the Tomcat with the JNI APR (TomcatStarter) Everything works fine. Now here's the problem: - The jk2 module is a DLL (mod_jk2.dll) - Based on certain recommendations, we are trying to change this to use the mod_jk2.so version. So what we've done is: - Replaced the DLL with the SO file - Changed the LoadModule directive in the httpd.conf file to point to the SO file - Restarted the NT service - The loading of the module works fine, no errors - But the calls to Tomcat do not work. In fact, Tomcat has not even started We get the following errors when a call is made that needs the JK2 and Tomcat: [Mon Jul 19 12:44:11 2004] [error] channelApr.open() attempt to connect to 127.0.0.1:8009 (localhost) failed 730061 [Mon Jul 19 12:44:11 2004] [error] ajp13.connect() failed ajp13:localhost:8009 [Mon Jul 19 12:44:11 2004] [error] ajp13.service() failed to connect endpoint errno=0 No error [Mon Jul 19 12:44:11 2004] [error] ajp13.service() Error forwarding ajp13:localhost:8009 1 1 [Mon Jul 19 12:44:11 2004] [error] mod_jk2.handler() Error connecting to tomcat 12, status 0 From RTFM, I know that there are several configurations in play here, but they all seem to apply when an Apache-jk2-Tomcat needs to be configured from ground up. What we have in our case is a config that works fine with the DLL file, but does NOT work at all with the SO file. Any pointers? Thanks and regards -- Kartheek Hirode Hewlett Packard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with jdbc:odbc in Tomcat 5.025
Hello guys I have a question, I have two tomcats. 4.1.30 and 5.0.27, both with the same application, they are both similar and connect to a MSAccess database thru Jdbc Odbc bridge, however, in 4.1.30 everything works, but in 5.0.27 i have this message when I try to connect to the database. I have searched for the answer, but until now i don't know what's the problem, could you help me? java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115) at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3074) at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:323) at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171) at com.crstore.admin.AdminDbBean.getDescriptors(AdminDbBean.java:50) at org.apache.jsp.jsp.Menu_jsp._jspService(Menu_jsp.java:118) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) at org.apache.jsp.jsp.Default_jsp._jspService(Default_jsp.java:102) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) at com.crstore.core.Shopper.doPost(Shopper.java:95) at com.crstore.core.Shopper.doGet(Shopper.java:64) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invok
RE: Setting up mod_jk for Tomcat 5.0.27 under Apache 1.3.x
Hello guys I have a question, I have two tomcats. 4.1.30 and 5.0.27, both with the same application, they are both similar and connect to a MSAccess database thru Jdbc Odbc bridge, however, in 4.1.30 everything works, but in 5.0.27 i have this message when I try to connect to the database. I have searched for the answer, but until now i don't know what's the problem, could you help me? java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115) at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3074) at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:323) at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171) at com.crstore.admin.AdminDbBean.getDescriptors(AdminDbBean.java:50) at org.apache.jsp.jsp.Menu_jsp._jspService(Menu_jsp.java:118) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) at org.apache.jsp.jsp.Default_jsp._jspService(Default_jsp.java:102) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) at com.crstore.core.Shopper.doPost(Shopper.java:95) at com.crstore.core.Shopper.doGet(Shopper.java:64) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invok
Setting up mod_jk for Tomcat 5.0.27 under Apache 1.3.x
Okay, I can't believe how lousy the documentation for this is on the jakarta site: - Where do I find the latest connector (mod_jk) for Apache 1.3.x (I can't run Apache 2 because my hosting provider doesn't support it and needs 1.3 to run cPanel). - How do I reliably install that module for Tomcat 5.0.27? Again, the docs online are all over the place - I can't make it work. Any help would be greatly appreciated. Thanks, Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat socket error
Hi James thaanks for your help to begin with. I forgot to mention im using apache2 and tomcat5, i tried what u said and it came back with invalid command proxypass have you got any other ideas? On Mon, 19 Jul 2004 16:35:56 -0500, McClure, James <[EMAIL PROTECTED]> wrote: > Hi John, > > Give this a try... > > To get to your application via Apache (as a proxy) you will need to > configure Apache to pass the request/response via Tomcat by specifying where > to go when it sees that you are asking for the specific web application. > > Create a new file [apache home directory]/conf/myproxy.conf > In this file add these 2 proxy entries (port # is for Tomcat 4): > > ProxyPass /MyFirst/HelloWorld/ http://localhost:8080/MyFirst/HelloWorld > ProxyPassReverse /MyFirst/HelloWorld/ > http://localhost:8080/MyFirst/HelloWorld > > Now reference this new file in your httpd.conf file located in ...[apache > home directory]/conf/ by adding the following entry at the bottom of the > file: > > include conf/myproxy.conf > > Restart apache > > james > > > > -Original Message- > From: John Archbold [mailto:[EMAIL PROTECTED] > Sent: Monday, July 19, 2004 4:17 PM > To: [EMAIL PROTECTED] > Subject: Apache + Tomcat socket error > > Hello everyone, > > I have a simple (probably) yet difficult problem that i cant seem to fix. > > I installed apache (from source) and tomcat (from binary) and i > compiled the jakarta connector as one should. > > If i issue http://localhost:8080/ i get the tomcat homepage > > if i issue http://localhost/ i get apache. > > I followed instructions from a website to set all this up you see. I > even managed to compile a servlet and get it working if i issue > http://localhost:8080/MyFirst/HelloWorld yet if i issue > http://localhost/MyFirst/HelloWorld it is not visible, it says the > resource is busy etc. > > I have noticed tho that the socket file that is specified to be > created is infact not being created, ive tried changing the location > of the socket file and even using touch to create it. Nothing seems to > work. > > I expect this is some novice problem and im just missing something out. > > Can anyone help? > > Many many thanks (ive been trying for weeks to sort this out!) > > John A > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: address is already in use
Steve! did you leave Maiden ? (je je je, sorry) - Original Message - From: "Steve Harris" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, July 20, 2004 2:55 PM Subject: Re: address is already in use > Hi, > > If your running on Solaris install a utility called lsof and use the > command, > > lsof -i :8080 > > This will list all processes using that port. I have had instances where > 8080 has got 'stolen' by another process that started up and used that > port. Once you've identified the process then you can decide what to do. > > Cheers - Steve > > On Mon, 19 Jul 2004, Damien July wrote: > > > Hi, > > i'm under sun solaris 8 sparc > > > > and i had been restart the server. > > and there is no one that listen on port 80 or 8080 > > > > Damien > > Le lun 19/07/2004 Ã 18:56, Aman Raheja a Ãcrit : > > > Are you on Windows platform ? Are you restarting it? > > > Check your process list and "End Task" if you find it there. > > > > > > Also try netstat and see who's using the 8080 port (if that's what you > > > have in server.xml). > > > > > > Aman Raheja > > > http://www.techquotes.com > > > > > > > > > On Mon, 19 Jul 2004 18:45:41 +0200, Damien July <[EMAIL PROTECTED] > > > securite.org> wrote : > > > > > > > Hello, > > > > > > > > i try to start tomcat 4.1.24 and when i start it , i have the "address > > > > already in use" error message. > > > > > > > > the is , i don't have some webserver or other thant listen on port 8Ã or > > > > 8080. > > > > > > > > I don't why i have this error. > > > > > > > > If someone could help Me. > > > > > > > > thx. > > > > Damien > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: address is already in use
Hi, If your running on Solaris install a utility called lsof and use the command, lsof -i :8080 This will list all processes using that port. I have had instances where 8080 has got 'stolen' by another process that started up and used that port. Once you've identified the process then you can decide what to do. Cheers - Steve On Mon, 19 Jul 2004, Damien July wrote: > Hi, > i'm under sun solaris 8 sparc > > and i had been restart the server. > and there is no one that listen on port 80 or 8080 > > Damien > Le lun 19/07/2004 Ã 18:56, Aman Raheja a Ãcrit : > > Are you on Windows platform ? Are you restarting it? > > Check your process list and "End Task" if you find it there. > > > > Also try netstat and see who's using the 8080 port (if that's what you > > have in server.xml). > > > > Aman Raheja > > http://www.techquotes.com > > > > > > On Mon, 19 Jul 2004 18:45:41 +0200, Damien July <[EMAIL PROTECTED] > > securite.org> wrote : > > > > > Hello, > > > > > > i try to start tomcat 4.1.24 and when i start it , i have the "address > > > already in use" error message. > > > > > > the is , i don't have some webserver or other thant listen on port 8Ã or > > > 8080. > > > > > > I don't why i have this error. > > > > > > If someone could help Me. > > > > > > thx. > > > Damien > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
checking headers
anyway to check headers and get information other then just Etag: W/"18796-1089327349000" Last-Modified: Thu, 08 Jul 2004 22:55:49 GMT Content-Type: text/html;charset=ISO-8859-1 Content-Length: 18796 Date: Tue, 20 Jul 2004 12:04:20 GMT Server: Apache-Coyote/1.1 and is Apache-Coyote/1.1 the Tomcat internal WWW server? _ Designer Mail isn't just fun to send, it's fun to receive. Use special stationery, fonts and colors. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : RE : RE : how to access Subject after authentification
LERBSCHER Jean-Pierre wrote: Could you tell me what is the correct configuration to access the jaas login file with this security manager. You need to start Tomcat using the -security ./catalina.sh start -security -- Jeanfrancois Thanks -Message d'origine- De : Jeanfrancois Arcand [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juillet 2004 18:42 À : Tomcat Users List Objet : Re: RE : RE : how to access Subject after authentification Are you both running with the security manager on? I think that's the problem... -- Jeanfrancois LERBSCHER Jean-Pierre wrote: Matt I am ok with you! I try the two methods and I have the same results (null) ! Perhaps we have to configure properly tomcat (?) so that it can record the subject in the session. Perhaps an authenticator ? Jean François ! any ideas ? The second method is Subject.getSubject(java.security.AccessController.getContext()); -Message d'origine- De : Matt Harrison [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juillet 2004 17:42 À : 'Tomcat Users List' Objet : RE: RE : how to access Subject after authentification I have tried both of these and they both return null! -Original Message- From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED] Sent: 20 July 2004 16:30 To: Tomcat Users List Subject: Re: RE : how to access Subject after authentification Two ways: httpSession.getAttribute("javax.security.auth.subject") or Subject.getSubject(AccessControl.getContext()) -- Jeanfrancois Matt Harrison wrote: Sorry for mis-reading your email If anybody out there knows how to retrieve the Subject, Jean-Pierre and I would most appreciate it! But, if, as I suspect, this is not part of the current servlet spec, and thus not part of Tomcat, can I make a request for this to be included next time round? I work around this by concatenating all the information I require from the subject into the Principal's name in my JAAS login module, as a java.security.Principal object is available from the request object in Tomcat. But I guess this isn't an option for this problem. Matt -Original Message- From: LERBSCHER Jean-Pierre [mailto:[EMAIL PROTECTED] Sent: 20 July 2004 15:40 To: 'Tomcat Users List' Subject: RE : how to access Subject after authentification Thanks Matt ! My problem is that have to call EJB deployed in Weblogic application server from servlet components. I use the weblogic api to propagate the security information from tomcat to WLS. This api uses the subject! Thus it is necessary that I can reach it. -Message d'origine- De : Matt Harrison [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juillet 2004 15:59 À : 'Tomcat Users List' Objet : RE: how to access Subject after authentification Hi I had a similar question a while back and never really got it fully resolved, but I found that Tomcat doesn't save the subject as a session attribute. However in your case you don't need to access the subject. In the web.xml file for your app, you can define what roles have access to each resource (jsp, servlet) and have your JAAS login module assign these roles to the subject - i.e. container managed security. e.g. add to web.xml (gives access to logins with role "user" to all of your application): myApplication /* user user see the tomcat docs for more info Matt -Original Message- From: LERBSCHER Jean-Pierre [mailto:[EMAIL PROTECTED] Sent: 20 July 2004 14:42 To: '[EMAIL PROTECTED]' Subject: how to access Subject after authentification Hi, I am using JAAS authentification module to authenticate user within tomcat 5.0.27. After the authentification, I want to control access to resources (like ejb deployed in weblogic application server). To control access, I have to use weblogic api with the Subject instance delivred by authentification to tomcat. The problem is : how can I get the subject object.. I try session.getAttribute( "javax.security.auth.subject" ); but it seems that I can't access to this information ! Any ideas? Thanks, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For add
RE : RE : RE : how to access Subject after authentification
Could you tell me what is the correct configuration to access the jaas login file with this security manager. Thanks -Message d'origine- De : Jeanfrancois Arcand [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juillet 2004 18:42 À : Tomcat Users List Objet : Re: RE : RE : how to access Subject after authentification Are you both running with the security manager on? I think that's the problem... -- Jeanfrancois LERBSCHER Jean-Pierre wrote: >Matt I am ok with you! I try the two methods and I have the same results >(null) ! >Perhaps we have to configure properly tomcat (?) so that it can record the >subject in the session. Perhaps an authenticator ? >Jean François ! any ideas ? > >The second method is >Subject.getSubject(java.security.AccessController.getContext()); > >-Message d'origine- >De : Matt Harrison [mailto:[EMAIL PROTECTED] >Envoyé : mardi 20 juillet 2004 17:42 >À : 'Tomcat Users List' >Objet : RE: RE : how to access Subject after authentification > >I have tried both of these and they both return null! > > > >>-Original Message- >>From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED] >>Sent: 20 July 2004 16:30 >>To: Tomcat Users List >>Subject: Re: RE : how to access Subject after authentification >> >> >>Two ways: >> >>httpSession.getAttribute("javax.security.auth.subject") >> >>or >> >>Subject.getSubject(AccessControl.getContext()) >> >>-- Jeanfrancois >> >>Matt Harrison wrote: >> >> >> >>>Sorry for mis-reading your email >>> >>>If anybody out there knows how to retrieve the Subject, >>> >>> >>Jean-Pierre and I >> >> >>>would most appreciate it! >>> >>>But, if, as I suspect, this is not part of the current >>> >>> >>servlet spec, and >> >> >>>thus not part of Tomcat, can I make a request for this to be >>> >>> >>included next >> >> >>>time round? >>> >>>I work around this by concatenating all the information I >>> >>> >>require from the >> >> >>>subject into the Principal's name in my JAAS login module, as a >>>java.security.Principal object is available from the request >>> >>> >>object in >> >> >>>Tomcat. But I guess this isn't an option for this problem. >>> >>>Matt >>> >>> >>> >>> >>> -Original Message- From: LERBSCHER Jean-Pierre [mailto:[EMAIL PROTECTED] Sent: 20 July 2004 15:40 To: 'Tomcat Users List' Subject: RE : how to access Subject after authentification Thanks Matt ! My problem is that have to call EJB deployed in Weblogic application server from servlet components. I use the weblogic api to propagate >>> >>> the security information from tomcat to WLS. This api uses the subject! >>Thus it is >> >> necessary that I can reach it. -Message d'origine- De : Matt Harrison [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juillet 2004 15:59 À : 'Tomcat Users List' Objet : RE: how to access Subject after authentification Hi I had a similar question a while back and never really got it fully resolved, but I found that Tomcat doesn't save the subject as a session attribute. However in your case you don't need to access the subject. In the web.xml file for your app, you can define what roles have access to each resource (jsp, servlet) and have your JAAS login module assign these roles to the subject - i.e. container managed security. e.g. add to web.xml (gives access to logins with role "user" to all of your application): myApplication /* user user see the tomcat docs for more info Matt >-Original Message- >From: LERBSCHER Jean-Pierre >[mailto:[EMAIL PROTECTED] >Sent: 20 July 2004 14:42 >To: '[EMAIL PROTECTED]' >Subject: how to access Subject after authentification > > >Hi, > >I am using JAAS authentification module to authenticate user >within tomcat >5.0.27. > >After the authentification, I want to control access to >resources (like ejb >deployed in weblogic application server). > >To control access, I have to use weblogic api with the >Subject instance >delivred by authentification to tomcat. > > > >The problem is : how can I get the subject object.. I try >session.getAttribute( "javax.security.auth.subject" ); but it >seems that I >can't access to this information ! > >Any ideas? > >Thanks, > > > > > > >>- >> >> To unsubscribe, e-mail: [E
Having web. app. in custom medium, not in FileSystem
Hi All! I'm trying to use this feature http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/resources.html in order to have my web. app inside custom medium, not in File System. During the startup of the Tomcat I'm getting this exception. I checked the implementation of TldConfig and it seems that this line causes the exception NameClassPair item = (NameClassPair) items.nextElement(); I'm sure that underneath, in my implementation of JNDI provider, I return an object which extends NameCLassPair class. It seems that this could be a classloader issue. Has anybody tried to use this feature in Tomcat? If it's classloder related then where I should put my JNDI classes and related jars? (I tried common/classes, common/lib and server/classes, server/lib - same result) Will this approach work with embedded Tomcat under JBoss? Please, help me. Regards, VIktor 20-Jul-2004 12:40:26 PM org.apache.catalina.core.StandardContext start SEVERE: Error reading tld listeners java.lang.ClassCastException java.lang.ClassCastException at org.apache.catalina.startup.TldConfig.tldScanResourcePathsWebInf(TldC onfig.java:627) at org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig. java:594) at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:281) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4 260) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:823) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80 7) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDe ployer.java:903) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.jav a:252) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1058) at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester .java:76) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source ) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement( Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1567) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep loyer.java:488) at org.apache.catalina.core.StandardHost.install(StandardHost.java:863) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j ava:482) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427 ) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java :349) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091) at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478 ) at org.apache.catalina.core.StandardService.start(StandardService.java:4 76) at org.apache.catalina.core.StandardServer.start(StandardServer.java:229 8) at org.apache.catalina.startup.Catalina.start(Catalina.java:556) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422) - To unsubscribe, e-mail: [EMAIL PROTECTED] For ad
RE: Wildcard virtual hosts help
> -Original Message- > From: Cott Lang [mailto:[EMAIL PROTECTED] > Sent: Monday, July 19, 2004 10:14 PM > To: Tomcat Users List > Subject: RE: Wildcard virtual hosts help > > Thanks, Gary. I thought of that as a possibility over the weekend while > mulling over Daniel's suggestion, but have not had a chance to try it. I > appreciate knowing someone else has it working. :) > Drop me an email if you want to look at some example rules. It can be a bit fiddly to get set up initially... Gary Evesson Decentrix Inc smime.p7s Description: S/MIME cryptographic signature
Re: RE : RE : how to access Subject after authentification
Are you both running with the security manager on? I think that's the problem... -- Jeanfrancois LERBSCHER Jean-Pierre wrote: Matt I am ok with you! I try the two methods and I have the same results (null) ! Perhaps we have to configure properly tomcat (?) so that it can record the subject in the session. Perhaps an authenticator ? Jean François ! any ideas ? The second method is Subject.getSubject(java.security.AccessController.getContext()); -Message d'origine- De : Matt Harrison [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juillet 2004 17:42 À : 'Tomcat Users List' Objet : RE: RE : how to access Subject after authentification I have tried both of these and they both return null! -Original Message- From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED] Sent: 20 July 2004 16:30 To: Tomcat Users List Subject: Re: RE : how to access Subject after authentification Two ways: httpSession.getAttribute("javax.security.auth.subject") or Subject.getSubject(AccessControl.getContext()) -- Jeanfrancois Matt Harrison wrote: Sorry for mis-reading your email If anybody out there knows how to retrieve the Subject, Jean-Pierre and I would most appreciate it! But, if, as I suspect, this is not part of the current servlet spec, and thus not part of Tomcat, can I make a request for this to be included next time round? I work around this by concatenating all the information I require from the subject into the Principal's name in my JAAS login module, as a java.security.Principal object is available from the request object in Tomcat. But I guess this isn't an option for this problem. Matt -Original Message- From: LERBSCHER Jean-Pierre [mailto:[EMAIL PROTECTED] Sent: 20 July 2004 15:40 To: 'Tomcat Users List' Subject: RE : how to access Subject after authentification Thanks Matt ! My problem is that have to call EJB deployed in Weblogic application server from servlet components. I use the weblogic api to propagate the security information from tomcat to WLS. This api uses the subject! Thus it is necessary that I can reach it. -Message d'origine- De : Matt Harrison [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juillet 2004 15:59 À : 'Tomcat Users List' Objet : RE: how to access Subject after authentification Hi I had a similar question a while back and never really got it fully resolved, but I found that Tomcat doesn't save the subject as a session attribute. However in your case you don't need to access the subject. In the web.xml file for your app, you can define what roles have access to each resource (jsp, servlet) and have your JAAS login module assign these roles to the subject - i.e. container managed security. e.g. add to web.xml (gives access to logins with role "user" to all of your application): myApplication /* user user see the tomcat docs for more info Matt -Original Message- From: LERBSCHER Jean-Pierre [mailto:[EMAIL PROTECTED] Sent: 20 July 2004 14:42 To: '[EMAIL PROTECTED]' Subject: how to access Subject after authentification Hi, I am using JAAS authentification module to authenticate user within tomcat 5.0.27. After the authentification, I want to control access to resources (like ejb deployed in weblogic application server). To control access, I have to use weblogic api with the Subject instance delivred by authentification to tomcat. The problem is : how can I get the subject object.. I try session.getAttribute( "javax.security.auth.subject" ); but it seems that I can't access to this information ! Any ideas? Thanks, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscrib
RE: Error Starting Sample Tomcat Webapps
Hola, How did you install tomcat? Yoav Shapira Millennium Research Informatics >-Original Message- >From: Sayeed [mailto:[EMAIL PROTECTED] >Sent: Tuesday, July 20, 2004 12:40 PM >To: Tomcat Users List >Subject: Re: Error Starting Sample Tomcat Webapps > >Dear Filip >thanx for the advice - i put the same command and it gives these message : > >Dispatcher.dispatch(Unknown Source) >at >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un >known Source) >at org.apache.xerces.parsers.XML11Configuration.parse(Unknown >Source) >at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) >at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) >at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown >Source) >at org.apache.commons.digester.Digester.parse(Digester.java:1548) >at org.apache.catalina.startup.Catalina.start(Catalina.java:449) >at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) >at org.apache.catalina.startup.Catalina.process(Catalina.java:180) >at java.lang.reflect.Method.invoke(Native Method) >at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) > >Catalina.start: sun.misc.InvalidJarIndexException: Invalid index! >sun.misc.InvalidJarIndexException: Invalid index! >at >org.apache.commons.digester.Digester.createSAXException(Digester.java >:2540) >at >org.apache.commons.digester.Digester.createSAXException(Digester.java >:2566) >at >org.apache.commons.digester.Digester.startElement(Digester.java:1276) > >at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown >Sour >ce) >at >org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn >own Source) >at >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen >t(Unknown Source) >at >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent >Dispatcher.dispatch(Unknown Source) >at >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un >known Source) >at org.apache.xerces.parsers.XML11Configuration.parse(Unknown >Source) >at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) >at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) >at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown >Source) >at org.apache.commons.digester.Digester.parse(Digester.java:1548) >at org.apache.catalina.startup.Catalina.start(Catalina.java:449) >at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) >at org.apache.catalina.startup.Catalina.process(Catalina.java:180) >at java.lang.reflect.Method.invoke(Native Method) >at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) > >c:\apache\tomcat\bin > >plz advice > >Saeed >- Original Message - >From: "Filip Hanik - Dev" <[EMAIL PROTECTED]> >To: "Tomcat Users List" <[EMAIL PROTECTED]> >Sent: Tuesday, July 20, 2004 9:10 PM >Subject: Re: Error Starting Sample Tomcat Webapps > > >> > type >> > >> > catalina.bat run >> >> RTFM >> >> - Original Message - >> From: "Sayeed" <[EMAIL PROTECTED]> >> To: "Tomcat Users List" <[EMAIL PROTECTED]> >> Cc: <[EMAIL PROTECTED]> >> Sent: Tuesday, July 20, 2004 11:16 AM >> Subject: Re: Error Starting Sample Tomcat Webapps >> >> >> Dear Filip >> if I issues catalina.bat in DOS then this is all: >> >> C:\Apache\Tomcat\bin>catalina >> Using CATALINA_BASE: C:\APACHE\TOMCAT >> Using CATALINA_HOME: C:\APACHE\TOMCAT >> Using CATALINA_TMPDIR: C:\APACHE\TOMCAT\temp >> Using JAVA_HOME: C:\jdk1.3 >> Usage: catalina ( commands ... ) >> commands: >> debug Start Catalina in a debugger >> debug -security Debug Catalina with a security manager >> embedded Start Catalina in embedded mode >> jpda startStart Catalina under JPDA debugger >> run Start Catalina in the current window >> run -security Start in the current window with security manager >> start Start Catalina in a separate window >> start -security Start in a separate window with security manager >> stop Stop Catalina >> C:\Apache\Tomcat\bin> >> >> >> >> - Original Message - >> From: "Filip Hanik - Dev" <[EMAIL PROTECTED]> >> To: "Tomcat Users List" <[EMAIL PROTECTED]> >> Sent: Tuesday, July 20, 2004 8:44 PM >> Subject: Re: Error Starting Sample Tomcat Webapps >> >> >> > in your dos window, instead of typing >> > startup.bat >> > >> > type >> > >> > catalina.bat run >> > >> > and tomcat will run in the same window, and show you the error >> > >> > Filip >> > >> > - Original Message - >> > From: "Sayeed" <[EMAIL PROTECTED]> >> > To: "Tomcat Users List" <[EMAIL PROTECTED]> >> > Sent: Tuesday, July 20, 2004 10:50 AM >> > Subject: Re: Error Starting Sample Tomcat Webapps >> > >> > >> > DEAR Yoav Shapira >> > >> > I hav
Re: Error Starting Sample Tomcat Webapps
Dear Filip thanx for the advice - i put the same command and it gives these message : Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.start(Catalina.java:449) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Catalina.start: sun.misc.InvalidJarIndexException: Invalid index! sun.misc.InvalidJarIndexException: Invalid index! at org.apache.commons.digester.Digester.createSAXException(Digester.java :2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java :2566) at org.apache.commons.digester.Digester.startElement(Digester.java:1276) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour ce) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn own Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen t(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.start(Catalina.java:449) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) c:\apache\tomcat\bin plz advice Saeed - Original Message - From: "Filip Hanik - Dev" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, July 20, 2004 9:10 PM Subject: Re: Error Starting Sample Tomcat Webapps > > type > > > > catalina.bat run > > RTFM > > - Original Message - > From: "Sayeed" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Tuesday, July 20, 2004 11:16 AM > Subject: Re: Error Starting Sample Tomcat Webapps > > > Dear Filip > if I issues catalina.bat in DOS then this is all: > > C:\Apache\Tomcat\bin>catalina > Using CATALINA_BASE: C:\APACHE\TOMCAT > Using CATALINA_HOME: C:\APACHE\TOMCAT > Using CATALINA_TMPDIR: C:\APACHE\TOMCAT\temp > Using JAVA_HOME: C:\jdk1.3 > Usage: catalina ( commands ... ) > commands: > debug Start Catalina in a debugger > debug -security Debug Catalina with a security manager > embedded Start Catalina in embedded mode > jpda startStart Catalina under JPDA debugger > run Start Catalina in the current window > run -security Start in the current window with security manager > start Start Catalina in a separate window > start -security Start in a separate window with security manager > stop Stop Catalina > C:\Apache\Tomcat\bin> > > > > - Original Message - > From: "Filip Hanik - Dev" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Tuesday, July 20, 2004 8:44 PM > Subject: Re: Error Starting Sample Tomcat Webapps > > > > in your dos window, instead of typing > > startup.bat > > > > type > > > > catalina.bat run > > > > and tomcat will run in the same window, and show you the error > > > > Filip > > > > - Original Message - > > From: "Sayeed" <[EMAIL PROTECTED]> > > To: "Tomcat Users List" <[EMAIL PROTECTED]> > > Sent: Tuesday, July 20, 2004 10:50 AM > > Subject: Re: Error Starting Sample Tomcat Webapps > > > > > > DEAR Yoav Shapira > > > > I have a question for you sir. > > > > I start learning JSP and ohter J2EE tools recently. > > I buy a book of "Professional JSP 2nd Edition". > > > > Sir i am facing a problem: > > > > I dowload jakarta_tomcat 4.1.30.exe from the website. > > > > I already do have jdk1.3 at my PC ( iam using win98 OS). > > > > Now after installing jakarta_tomcat to a folder "c\apache\tomcat", > > I create two environmen
JK2 possible JNI problem? nativeDispatch exceptions
Hi All, I've got Tomcat 4.1.20 and Apache 2.0.46 running on Red Hat Enterprise Linux AS 3. I'm using the jk2 connector (connectors version 2.0.4) with a unixSocket channel. My problem is that the catalina.out file constantly gets the following two entries: this one comes constantly.. [Mon Jul 19 19:20:51 2004] ( info ) [jk_jni_aprImpl.c (431)] jkInvoke() invoke a971c670 and an exception (very often): Jul 19, 2004 7:20:11 PM org.apache.jk.common.JniHandler nativeDispatch SEVERE: nativeDispatch: error -3 java.lang.Throwable at org.apache.jk.common.JniHandler.nativeDispatch(JniHandler.java:310) at org.apache.jk.common.ChannelUn.send(ChannelUn.java:218) at org.apache.jk.common.ChannelUn.invoke(ChannelUn.java:303) at org.apache.jk.server.JkCoyoteHandler.doWrite(JkCoyoteHandler.java:279) at org.apache.coyote.Response.doWrite(Response.java:586) at org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java:405) at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:436) at org.apache.coyote.tomcat4.OutputBuffer.doFlush(OutputBuffer.java:354) at org.apache.coyote.tomcat4.OutputBuffer.flush(OutputBuffer.java:336) at org.apache.coyote.tomcat4.CoyoteWriter.flush(CoyoteWriter.java:117) at org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:209) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:810) at org.apache.jsp.error_jsp._jspService(error_jsp.java:337) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210) 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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356) at org.apache.catalina.valves.ErrorDispatcherValve.custom(ErrorDispatcherValve.java:420) at org.apache.catalina.valves.ErrorDispatcherValve.throwable(ErrorDispatcherValve.java:258) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:179) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163) 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:199) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:324) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:395) at org.apache.jk.common.ChannelUn.processConnection(ChannelUn.java:286) at org.apache.jk.common.AprConnection.runIt(ChannelUn.java:347) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) I'm running a very high traffic site and so I was wondering if perhaps this was due to file locking collisions on the socket? I'm not sure there. This didn't used to happen when I was using regular domain sockets. I do need the unixSocket channel however, as it's proven to be much much faster. I've tried commenting out the line that writes the first line, but that only seems to exacerbate the number of exceptions. I also was able to diminish the number of exceptions by changing the shm file from anon to a real file on the system. I'm thinking this is slowing down the JNI somehow? (leading me back to the collisions theory). Any help is greatly appreciated! Otherwise I'm left with trying to read the code and learn JNI =/ Thanks Again, -Joshua Szmajda - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error Starting Sample Tomcat Webapps
You need to put the run arguement -Original Message- From: Sayeed [mailto:[EMAIL PROTECTED] Sent: 20 July 2004 17:17 To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: Error Starting Sample Tomcat Webapps Dear Filip if I issues catalina.bat in DOS then this is all: C:\Apache\Tomcat\bin>catalina Using CATALINA_BASE: C:\APACHE\TOMCAT Using CATALINA_HOME: C:\APACHE\TOMCAT Using CATALINA_TMPDIR: C:\APACHE\TOMCAT\temp Using JAVA_HOME: C:\jdk1.3 Usage: catalina ( commands ... ) commands: debug Start Catalina in a debugger debug -security Debug Catalina with a security manager embedded Start Catalina in embedded mode jpda startStart Catalina under JPDA debugger run Start Catalina in the current window run -security Start in the current window with security manager start Start Catalina in a separate window start -security Start in a separate window with security manager stop Stop Catalina C:\Apache\Tomcat\bin> - Original Message - From: "Filip Hanik - Dev" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, July 20, 2004 8:44 PM Subject: Re: Error Starting Sample Tomcat Webapps > in your dos window, instead of typing > startup.bat > > type > > catalina.bat run > > and tomcat will run in the same window, and show you the error > > Filip > > - Original Message - > From: "Sayeed" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Tuesday, July 20, 2004 10:50 AM > Subject: Re: Error Starting Sample Tomcat Webapps > > > DEAR Yoav Shapira > > I have a question for you sir. > > I start learning JSP and ohter J2EE tools recently. > I buy a book of "Professional JSP 2nd Edition". > > Sir i am facing a problem: > > I dowload jakarta_tomcat 4.1.30.exe from the website. > > I already do have jdk1.3 at my PC ( iam using win98 OS). > > Now after installing jakarta_tomcat to a folder "c\apache\tomcat", > I create two environment variables into my Autoexe.bat file as under : > > set JAVA_HOME=C:\jdk1.3 > set CATALINA_HOME=C:\APACHE\TOMCAT > > Now when I Start Tomcat - a DOS base window is opened and remained active > for few seconds and then close automatically. Also i try Startup.bat file at > MS DOS promt, it shows some lines as follows: > > C:\Apache\Tomcat\bin>startup > Using CATALINA_BASE: C:\APACHE\TOMCAT > Using CATALINA_HOME: C:\APACHE\TOMCAT > Using CATALINA_TMPDIR: C:\APACHE\TOMCAT\temp > Using JAVA_HOME: C:\jdk1.3 > C:\Apache\Tomcat\bin> > And in the mid also a new DOS base window shows a name 'Java' opened for few > seconds and automatically closed. > > Sir/Madam, whats the wrong with the tomcat? coz as per book instructions it > must shows a Catalina named window and remained active till I did not issue > a command Shutdown. > > So please guide me what I should do in this connection in detail. > > An early reply shall highly bhe appreicated. > > > Saeed > Programmer > > - Original Message - > From: "Shapira, Yoav" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Tuesday, July 20, 2004 5:43 PM > Subject: RE: Error Starting Sample Tomcat Webapps > > > > Hi, > Make sure the java installations are clean, i.e. there are no extra xml > API or parser implementations (or Digester, come to think of it) in your > jre/lib/ext directory (off $JAVA_HOME). > > Yoav Shapira > Millennium Research Informatics > > > >-Original Message- > >From: Debra Bartling [mailto:[EMAIL PROTECTED] > >Sent: Monday, July 19, 2004 5:25 PM > >To: [EMAIL PROTECTED] > >Subject: Error Starting Sample Tomcat Webapps > > > >Tomcat 5.0.27, binary distribution, on two different servers, one > works, > >one doesn't. My development server (Solaris 8) works OK when I unpack > >Tomcat and start it up with the demo webapps (as well as with my own). > On > >my production server (Solaris 9) Tomcat does not start up correctly and > >gives the following: > > > >2004-07-19 12:11:25 StandardHost[localhost]: Error deploying > application at > >context path null > >java.lang.reflect.InvocationTargetException > > at > >org.apache.commons.digester.Digester.createSAXException(Digester.java:2 > 540) > > at > >org.apache.commons.digester.Digester.createSAXException(Digester.java:2 > 566) > > at > >org.apache.commons.digester.Digester.endElement(Digester.java:1061) > > at > >org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.j > ava: > >76) > > at > org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown > >Source) > > at > >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Un > know > >n > >Source) > > at > >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi > spat > >cher.dispatch(Unknown > >Source) > > at > >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn > own > >Source) > > at org.apache.xerces.parsers.XML11Configurat
RE: IIS Tomcat Web Log Error 500 Misleading?
This may not be the answer but I've always read that there's a limit on the number of characters in a GET request. I don't use many GETS so have never run into it. But that's the first thing I thought of when I saw the length of the query string... Ken -Original Message- From: Kan-Lee Liou [mailto:[EMAIL PROTECTED] Sent: Monday, July 19, 2004 8:32 AM To: [EMAIL PROTECTED] Subject: IIS Tomcat Web Log Error 500 Misleading? I have IIS 5.0 and Tomcat 5.0.19 installed on my machine and I have no problems running it to server JSP pages. However, our web master complained that IIS created a lot of Errors 500 in the web logs. I tested it on my local machine and I can create the errors in the logs, but I don't see them in the browser. I suspect they are some "timeout and retry" effort between IIS and Tomcat by isapi_redirector2.dll. In the following partial log, you can find that for the same JSESSIONID, it logged several GET's (200, success), a couple POST's (500, Internal Server Errors, 4th and 5th line items), and then a POST (200, success, 6th line item). I did try to refresh the web pages several times quickly in order to create these errors in the log file, but I did not see any error on my screen. -- 2004-07-14 18:23:07 127.0.0.1 GET /jakarta/isapi_redirector2.dll 200 4117 959 0 JSESSIONID=7ECBDF34DD859002F06970330B5031EC HTTP://localhost/itswindstorm/wpi8/wpi8_start.jsp?searchAddNum=1106&searchSt reet=Second+Street&searchCity=Sweeny&searchCounty=BRAZORIA&errorMsg=%3cb%3eC annot+find+any+address+matching+your+criteria.+%3cbr%3e%0d%0a%09%09%09Please +refine+your+search+criteria.%3c%2fb%3e 2004-07-14 18:23:07 127.0.0.1 GET /jakarta/isapi_redirector2.dll 200 112 641 0 JSESSIONID=7ECBDF34DD859002F06970330B5031EC http://localhost/itswindstorm/wpi8/wpi8_start.jsp?searchAddNum=1106&searchSt reet=Second+Street&searchCity=Sweeny&searchCounty=BRAZORIA&errorMsg=%3cb%3eC annot+find+any+address+matching+your+criteria.+%3cbr%3e%0d%0a%09%09%09Please +refine+your+search+criteria.%3c%2fb%3e 2004-07-14 18:23:07 127.0.0.1 GET /jakarta/isapi_redirector2.dll 200 112 640 0 JSESSIONID=7ECBDF34DD859002F06970330B5031EC http://localhost/itswindstorm/wpi8/wpi8_start.jsp?searchAddNum=1106&searchSt reet=Second+Street&searchCity=Sweeny&searchCounty=BRAZORIA&errorMsg=%3cb%3eC annot+find+any+address+matching+your+criteria.+%3cbr%3e%0d%0a%09%09%09Please +refine+your+search+criteria.%3c%2fb%3e 2004-07-14 18:23:07 127.0.0.1 POST /jakarta/isapi_redirector2.dll 500 89 937 19750 JSESSIONID=7ECBDF34DD859002F06970330B5031EC http://localhost/itswindstorm/wpi8/wpi8_start.jsp?searchAddNum=1106&searchSt reet=Second+Street&searchCity=Sweeny&searchCounty=BRAZORIA&errorMsg=%3cb%3eC annot+find+any+address+matching+your+criteria.+%3cbr%3e%0d%0a%09%09%09Please +refine+your+search+criteria.%3c%2fb%3e 2004-07-14 18:23:17 127.0.0.1 POST /jakarta/isapi_redirector2.dll 500 89 937 20937 JSESSIONID=7ECBDF34DD859002F06970330B5031EC http://localhost/itswindstorm/wpi8/wpi8_start.jsp?searchAddNum=1106&searchSt reet=Second+Street&searchCity=Sweeny&searchCounty=BRAZORIA&errorMsg=%3cb%3eC annot+find+any+address+matching+your+criteria.+%3cbr%3e%0d%0a%09%09%09Please +refine+your+search+criteria.%3c%2fb%3e 2004-07-14 18:23:19 127.0.0.1 POST /jakarta/isapi_redirector2.dll 200 510 776 9969 JSESSIONID=7ECBDF34DD859002F06970330B5031EC http://localhost/itswindstorm/wpi8/wpi8_start.jsp?searchAddNum=1106&searchSt reet=Second+Street&searchCity=Sweeny&searchCounty=BRAZORIA&errorMsg=%3cb%3eC annot+find+any+address+matching+your+criteria.+%3cbr%3e%0d%0a%09%09%09Please +refine+your+search+criteria.%3c%2fb%3e 2004-07-14 18:23:19 127.0.0.1 GET /jakarta/isapi_redirector2.dll 200 4117 798 0 JSESSIONID=7ECBDF34DD859002F06970330B5031EC http://localhost/itswindstorm/wpi8/wpi8_start.jsp?searchAddNum=1106&searchSt reet=Second+Street&searchCity=Sweeny&searchCounty=BRAZORIA&errorMsg=%3cb%3eC annot+find+any+address+matching+your+criteria.+%3cbr%3e%0d%0a%09%09%09Please +refine+your+search+criteria.%3c%2fb%3e --- Our web master insisted that a "good" application should not create Error 500 in the log. Have you seen similar things in your web logs? Do you know how to get rid of those 500 errors? Thanks. KL
Re: Error Starting Sample Tomcat Webapps
> type > > catalina.bat run RTFM - Original Message - From: "Sayeed" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, July 20, 2004 11:16 AM Subject: Re: Error Starting Sample Tomcat Webapps Dear Filip if I issues catalina.bat in DOS then this is all: C:\Apache\Tomcat\bin>catalina Using CATALINA_BASE: C:\APACHE\TOMCAT Using CATALINA_HOME: C:\APACHE\TOMCAT Using CATALINA_TMPDIR: C:\APACHE\TOMCAT\temp Using JAVA_HOME: C:\jdk1.3 Usage: catalina ( commands ... ) commands: debug Start Catalina in a debugger debug -security Debug Catalina with a security manager embedded Start Catalina in embedded mode jpda startStart Catalina under JPDA debugger run Start Catalina in the current window run -security Start in the current window with security manager start Start Catalina in a separate window start -security Start in a separate window with security manager stop Stop Catalina C:\Apache\Tomcat\bin> - Original Message - From: "Filip Hanik - Dev" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, July 20, 2004 8:44 PM Subject: Re: Error Starting Sample Tomcat Webapps > in your dos window, instead of typing > startup.bat > > type > > catalina.bat run > > and tomcat will run in the same window, and show you the error > > Filip > > - Original Message - > From: "Sayeed" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Tuesday, July 20, 2004 10:50 AM > Subject: Re: Error Starting Sample Tomcat Webapps > > > DEAR Yoav Shapira > > I have a question for you sir. > > I start learning JSP and ohter J2EE tools recently. > I buy a book of "Professional JSP 2nd Edition". > > Sir i am facing a problem: > > I dowload jakarta_tomcat 4.1.30.exe from the website. > > I already do have jdk1.3 at my PC ( iam using win98 OS). > > Now after installing jakarta_tomcat to a folder "c\apache\tomcat", > I create two environment variables into my Autoexe.bat file as under : > > set JAVA_HOME=C:\jdk1.3 > set CATALINA_HOME=C:\APACHE\TOMCAT > > Now when I Start Tomcat - a DOS base window is opened and remained active > for few seconds and then close automatically. Also i try Startup.bat file at > MS DOS promt, it shows some lines as follows: > > C:\Apache\Tomcat\bin>startup > Using CATALINA_BASE: C:\APACHE\TOMCAT > Using CATALINA_HOME: C:\APACHE\TOMCAT > Using CATALINA_TMPDIR: C:\APACHE\TOMCAT\temp > Using JAVA_HOME: C:\jdk1.3 > C:\Apache\Tomcat\bin> > And in the mid also a new DOS base window shows a name 'Java' opened for few > seconds and automatically closed. > > Sir/Madam, whats the wrong with the tomcat? coz as per book instructions it > must shows a Catalina named window and remained active till I did not issue > a command Shutdown. > > So please guide me what I should do in this connection in detail. > > An early reply shall highly bhe appreicated. > > > Saeed > Programmer > > - Original Message - > From: "Shapira, Yoav" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Tuesday, July 20, 2004 5:43 PM > Subject: RE: Error Starting Sample Tomcat Webapps > > > > Hi, > Make sure the java installations are clean, i.e. there are no extra xml > API or parser implementations (or Digester, come to think of it) in your > jre/lib/ext directory (off $JAVA_HOME). > > Yoav Shapira > Millennium Research Informatics > > > >-Original Message- > >From: Debra Bartling [mailto:[EMAIL PROTECTED] > >Sent: Monday, July 19, 2004 5:25 PM > >To: [EMAIL PROTECTED] > >Subject: Error Starting Sample Tomcat Webapps > > > >Tomcat 5.0.27, binary distribution, on two different servers, one > works, > >one doesn't. My development server (Solaris 8) works OK when I unpack > >Tomcat and start it up with the demo webapps (as well as with my own). > On > >my production server (Solaris 9) Tomcat does not start up correctly and > >gives the following: > > > >2004-07-19 12:11:25 StandardHost[localhost]: Error deploying > application at > >context path null > >java.lang.reflect.InvocationTargetException > > at > >org.apache.commons.digester.Digester.createSAXException(Digester.java:2 > 540) > > at > >org.apache.commons.digester.Digester.createSAXException(Digester.java:2 > 566) > > at > >org.apache.commons.digester.Digester.endElement(Digester.java:1061) > > at > >org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.j > ava: > >76) > > at > org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown > >Source) > > at > >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Un > know > >n > >Source) > > at > >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi > spat > >cher.dispatch(Unknown > >Source) > > at > >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn > own > >Source) > > at org.
RE:
What are these BMP files coming from this guy? --mikej -=- mike jackson [EMAIL PROTECTED] > -Original Message- > From: Craigmcc [mailto:[EMAIL PROTECTED] > Sent: Monday, July 19, 2004 11:33 PM > To: Tomcat-user > Subject: Re: > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error Starting Sample Tomcat Webapps
Dear Filip if I issues catalina.bat in DOS then this is all: C:\Apache\Tomcat\bin>catalina Using CATALINA_BASE: C:\APACHE\TOMCAT Using CATALINA_HOME: C:\APACHE\TOMCAT Using CATALINA_TMPDIR: C:\APACHE\TOMCAT\temp Using JAVA_HOME: C:\jdk1.3 Usage: catalina ( commands ... ) commands: debug Start Catalina in a debugger debug -security Debug Catalina with a security manager embedded Start Catalina in embedded mode jpda startStart Catalina under JPDA debugger run Start Catalina in the current window run -security Start in the current window with security manager start Start Catalina in a separate window start -security Start in a separate window with security manager stop Stop Catalina C:\Apache\Tomcat\bin> - Original Message - From: "Filip Hanik - Dev" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, July 20, 2004 8:44 PM Subject: Re: Error Starting Sample Tomcat Webapps > in your dos window, instead of typing > startup.bat > > type > > catalina.bat run > > and tomcat will run in the same window, and show you the error > > Filip > > - Original Message - > From: "Sayeed" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Tuesday, July 20, 2004 10:50 AM > Subject: Re: Error Starting Sample Tomcat Webapps > > > DEAR Yoav Shapira > > I have a question for you sir. > > I start learning JSP and ohter J2EE tools recently. > I buy a book of "Professional JSP 2nd Edition". > > Sir i am facing a problem: > > I dowload jakarta_tomcat 4.1.30.exe from the website. > > I already do have jdk1.3 at my PC ( iam using win98 OS). > > Now after installing jakarta_tomcat to a folder "c\apache\tomcat", > I create two environment variables into my Autoexe.bat file as under : > > set JAVA_HOME=C:\jdk1.3 > set CATALINA_HOME=C:\APACHE\TOMCAT > > Now when I Start Tomcat - a DOS base window is opened and remained active > for few seconds and then close automatically. Also i try Startup.bat file at > MS DOS promt, it shows some lines as follows: > > C:\Apache\Tomcat\bin>startup > Using CATALINA_BASE: C:\APACHE\TOMCAT > Using CATALINA_HOME: C:\APACHE\TOMCAT > Using CATALINA_TMPDIR: C:\APACHE\TOMCAT\temp > Using JAVA_HOME: C:\jdk1.3 > C:\Apache\Tomcat\bin> > And in the mid also a new DOS base window shows a name 'Java' opened for few > seconds and automatically closed. > > Sir/Madam, whats the wrong with the tomcat? coz as per book instructions it > must shows a Catalina named window and remained active till I did not issue > a command Shutdown. > > So please guide me what I should do in this connection in detail. > > An early reply shall highly bhe appreicated. > > > Saeed > Programmer > > - Original Message - > From: "Shapira, Yoav" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Tuesday, July 20, 2004 5:43 PM > Subject: RE: Error Starting Sample Tomcat Webapps > > > > Hi, > Make sure the java installations are clean, i.e. there are no extra xml > API or parser implementations (or Digester, come to think of it) in your > jre/lib/ext directory (off $JAVA_HOME). > > Yoav Shapira > Millennium Research Informatics > > > >-Original Message- > >From: Debra Bartling [mailto:[EMAIL PROTECTED] > >Sent: Monday, July 19, 2004 5:25 PM > >To: [EMAIL PROTECTED] > >Subject: Error Starting Sample Tomcat Webapps > > > >Tomcat 5.0.27, binary distribution, on two different servers, one > works, > >one doesn't. My development server (Solaris 8) works OK when I unpack > >Tomcat and start it up with the demo webapps (as well as with my own). > On > >my production server (Solaris 9) Tomcat does not start up correctly and > >gives the following: > > > >2004-07-19 12:11:25 StandardHost[localhost]: Error deploying > application at > >context path null > >java.lang.reflect.InvocationTargetException > > at > >org.apache.commons.digester.Digester.createSAXException(Digester.java:2 > 540) > > at > >org.apache.commons.digester.Digester.createSAXException(Digester.java:2 > 566) > > at > >org.apache.commons.digester.Digester.endElement(Digester.java:1061) > > at > >org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.j > ava: > >76) > > at > org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown > >Source) > > at > >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Un > know > >n > >Source) > > at > >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi > spat > >cher.dispatch(Unknown > >Source) > > at > >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn > own > >Source) > > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown > Source) > > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown > Source) > > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > > at org.apache.xerces.parsers.AbstractSAXParser.pa
RE : RE : how to access Subject after authentification
Matt I am ok with you! I try the two methods and I have the same results (null) ! Perhaps we have to configure properly tomcat (?) so that it can record the subject in the session. Perhaps an authenticator ? Jean François ! any ideas ? The second method is Subject.getSubject(java.security.AccessController.getContext()); -Message d'origine- De : Matt Harrison [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juillet 2004 17:42 À : 'Tomcat Users List' Objet : RE: RE : how to access Subject after authentification I have tried both of these and they both return null! > -Original Message- > From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED] > Sent: 20 July 2004 16:30 > To: Tomcat Users List > Subject: Re: RE : how to access Subject after authentification > > > Two ways: > > httpSession.getAttribute("javax.security.auth.subject") > > or > > Subject.getSubject(AccessControl.getContext()) > > -- Jeanfrancois > > Matt Harrison wrote: > > >Sorry for mis-reading your email > > > >If anybody out there knows how to retrieve the Subject, > Jean-Pierre and I > >would most appreciate it! > > > >But, if, as I suspect, this is not part of the current > servlet spec, and > >thus not part of Tomcat, can I make a request for this to be > included next > >time round? > > > >I work around this by concatenating all the information I > require from the > >subject into the Principal's name in my JAAS login module, as a > >java.security.Principal object is available from the request > object in > >Tomcat. But I guess this isn't an option for this problem. > > > >Matt > > > > > > > >>-Original Message- > >>From: LERBSCHER Jean-Pierre > >>[mailto:[EMAIL PROTECTED] > >>Sent: 20 July 2004 15:40 > >>To: 'Tomcat Users List' > >>Subject: RE : how to access Subject after authentification > >> > >> > >>Thanks Matt ! > >>My problem is that have to call EJB deployed in Weblogic > >>application server > >>from servlet components. I use the weblogic api to propagate > >>the security > >>information from tomcat to WLS. This api uses the subject! > Thus it is > >>necessary that I can reach it. > >> > >>-Message d'origine- > >>De : Matt Harrison [mailto:[EMAIL PROTECTED] > >>Envoyé : mardi 20 juillet 2004 15:59 > >>À : 'Tomcat Users List' > >>Objet : RE: how to access Subject after authentification > >> > >>Hi > >> > >>I had a similar question a while back and never really got it fully > >>resolved, but I found that Tomcat doesn't save the subject as > >>a session > >>attribute. > >> > >>However in your case you don't need to access the subject. In > >>the web.xml > >>file for your app, you can define what roles have access to > >>each resource > >>(jsp, servlet) and have your JAAS login module assign these > >>roles to the > >>subject - i.e. container managed security. > >> > >>e.g. add to web.xml (gives access to logins with role "user" > >>to all of your > >>application): > >> > >> > >> > >> > >>myApplication > >>/* > >> > >> > >>user > >> > >> > >> > >>user > >> > >> > >>see the tomcat docs for more info > >> > >>Matt > >> > >> > >> > >>>-Original Message- > >>>From: LERBSCHER Jean-Pierre > >>>[mailto:[EMAIL PROTECTED] > >>>Sent: 20 July 2004 14:42 > >>>To: '[EMAIL PROTECTED]' > >>>Subject: how to access Subject after authentification > >>> > >>> > >>>Hi, > >>> > >>>I am using JAAS authentification module to authenticate user > >>>within tomcat > >>>5.0.27. > >>> > >>>After the authentification, I want to control access to > >>>resources (like ejb > >>>deployed in weblogic application server). > >>> > >>>To control access, I have to use weblogic api with the > >>>Subject instance > >>>delivred by authentification to tomcat. > >>> > >>> > >>> > >>>The problem is : how can I get the subject object.. I try > >>>session.getAttribute( "javax.security.auth.subject" ); but it > >>>seems that I > >>>can't access to this information ! > >>> > >>>Any ideas? > >>> > >>>Thanks, > >>> > >>> > >>> > >>> > >> > - > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > - > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail:
Re: Error Starting Sample Tomcat Webapps
Return Receipt Your Re: Error Starting Sample Tomcat Webapps document: was received Nicolas PEREZ/PAR/HD/Corp by: at: 20/07/2004 17:46:31 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error Starting Sample Tomcat Webapps
in your dos window, instead of typing startup.bat type catalina.bat run and tomcat will run in the same window, and show you the error Filip - Original Message - From: "Sayeed" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, July 20, 2004 10:50 AM Subject: Re: Error Starting Sample Tomcat Webapps DEAR Yoav Shapira I have a question for you sir. I start learning JSP and ohter J2EE tools recently. I buy a book of "Professional JSP 2nd Edition". Sir i am facing a problem: I dowload jakarta_tomcat 4.1.30.exe from the website. I already do have jdk1.3 at my PC ( iam using win98 OS). Now after installing jakarta_tomcat to a folder "c\apache\tomcat", I create two environment variables into my Autoexe.bat file as under : set JAVA_HOME=C:\jdk1.3 set CATALINA_HOME=C:\APACHE\TOMCAT Now when I Start Tomcat - a DOS base window is opened and remained active for few seconds and then close automatically. Also i try Startup.bat file at MS DOS promt, it shows some lines as follows: C:\Apache\Tomcat\bin>startup Using CATALINA_BASE: C:\APACHE\TOMCAT Using CATALINA_HOME: C:\APACHE\TOMCAT Using CATALINA_TMPDIR: C:\APACHE\TOMCAT\temp Using JAVA_HOME: C:\jdk1.3 C:\Apache\Tomcat\bin> And in the mid also a new DOS base window shows a name 'Java' opened for few seconds and automatically closed. Sir/Madam, whats the wrong with the tomcat? coz as per book instructions it must shows a Catalina named window and remained active till I did not issue a command Shutdown. So please guide me what I should do in this connection in detail. An early reply shall highly bhe appreicated. Saeed Programmer - Original Message - From: "Shapira, Yoav" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, July 20, 2004 5:43 PM Subject: RE: Error Starting Sample Tomcat Webapps Hi, Make sure the java installations are clean, i.e. there are no extra xml API or parser implementations (or Digester, come to think of it) in your jre/lib/ext directory (off $JAVA_HOME). Yoav Shapira Millennium Research Informatics >-Original Message- >From: Debra Bartling [mailto:[EMAIL PROTECTED] >Sent: Monday, July 19, 2004 5:25 PM >To: [EMAIL PROTECTED] >Subject: Error Starting Sample Tomcat Webapps > >Tomcat 5.0.27, binary distribution, on two different servers, one works, >one doesn't. My development server (Solaris 8) works OK when I unpack >Tomcat and start it up with the demo webapps (as well as with my own). On >my production server (Solaris 9) Tomcat does not start up correctly and >gives the following: > >2004-07-19 12:11:25 StandardHost[localhost]: Error deploying application at >context path null >java.lang.reflect.InvocationTargetException > at >org.apache.commons.digester.Digester.createSAXException(Digester.java:2 540) > at >org.apache.commons.digester.Digester.createSAXException(Digester.java:2 566) > at >org.apache.commons.digester.Digester.endElement(Digester.java:1061) > at >org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.j ava: >76) > at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown >Source) > at >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Un know >n >Source) > at >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi spat >cher.dispatch(Unknown >Source) > at >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn own >Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > at org.apache.commons.digester.Digester.parse(Digester.java:1567) > at >org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo yer. >java:488) > at >org.apache.catalina.core.StandardHost.install(StandardHost.java:863) > at >org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.jav a:48 >2) > at >org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427) > at org.apache.catalina.startup.HostConfig.start(HostConfig.java:968) > at >org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:3 49) > at >org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS uppo >rt.java:119) > at >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091) > at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) > at >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) > at >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478) > at >org.apache.catalina.core.StandardService.start(StandardService.java:480 ) > at >org.apache.catalina.core.StandardServer.start(StandardServer.java:2313) > at org.apache.catalina.startup.Catalina.start(Catalina.java:556) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
RE: Error Starting Sample Tomcat Webapps
Hi, Try using "catalina.bat run" or "catalina.bat start" instead of "startup.bat" -- one of those will keep the DOS window open so you can see error messages (if any). Also check c:\apache\tomcat\logs\catalina.out to see what the error is. BTW, unless you have a good reason not to, consider using JDK 1.4. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Sayeed [mailto:[EMAIL PROTECTED] >Sent: Tuesday, July 20, 2004 11:50 AM >To: Tomcat Users List >Subject: Re: Error Starting Sample Tomcat Webapps > >DEAR Yoav Shapira > >I have a question for you sir. > >I start learning JSP and ohter J2EE tools recently. >I buy a book of "Professional JSP 2nd Edition". > >Sir i am facing a problem: > >I dowload jakarta_tomcat 4.1.30.exe from the website. > >I already do have jdk1.3 at my PC ( iam using win98 OS). > >Now after installing jakarta_tomcat to a folder "c\apache\tomcat", >I create two environment variables into my Autoexe.bat file as under : > >set JAVA_HOME=C:\jdk1.3 >set CATALINA_HOME=C:\APACHE\TOMCAT > > Now when I Start Tomcat - a DOS base window is opened and remained active >for few seconds and then close automatically. Also i try Startup.bat file >at >MS DOS promt, it shows some lines as follows: > >C:\Apache\Tomcat\bin>startup >Using CATALINA_BASE: C:\APACHE\TOMCAT >Using CATALINA_HOME: C:\APACHE\TOMCAT >Using CATALINA_TMPDIR: C:\APACHE\TOMCAT\temp >Using JAVA_HOME: C:\jdk1.3 >C:\Apache\Tomcat\bin> >And in the mid also a new DOS base window shows a name 'Java' opened for >few >seconds and automatically closed. > >Sir/Madam, whats the wrong with the tomcat? coz as per book instructions it >must shows a Catalina named window and remained active till I did not issue >a command Shutdown. > >So please guide me what I should do in this connection in detail. > >An early reply shall highly bhe appreicated. > > >Saeed >Programmer > >- Original Message - >From: "Shapira, Yoav" <[EMAIL PROTECTED]> >To: "Tomcat Users List" <[EMAIL PROTECTED]> >Sent: Tuesday, July 20, 2004 5:43 PM >Subject: RE: Error Starting Sample Tomcat Webapps > > > >Hi, >Make sure the java installations are clean, i.e. there are no extra xml >API or parser implementations (or Digester, come to think of it) in your >jre/lib/ext directory (off $JAVA_HOME). > >Yoav Shapira >Millennium Research Informatics > > >>-Original Message- >>From: Debra Bartling [mailto:[EMAIL PROTECTED] >>Sent: Monday, July 19, 2004 5:25 PM >>To: [EMAIL PROTECTED] >>Subject: Error Starting Sample Tomcat Webapps >> >>Tomcat 5.0.27, binary distribution, on two different servers, one >works, >>one doesn't. My development server (Solaris 8) works OK when I unpack >>Tomcat and start it up with the demo webapps (as well as with my own). >On >>my production server (Solaris 9) Tomcat does not start up correctly and >>gives the following: >> >>2004-07-19 12:11:25 StandardHost[localhost]: Error deploying >application at >>context path null >>java.lang.reflect.InvocationTargetException >> at >>org.apache.commons.digester.Digester.createSAXException(Digester.java: 2 >540) >> at >>org.apache.commons.digester.Digester.createSAXException(Digester.java: 2 >566) >> at >>org.apache.commons.digester.Digester.endElement(Digester.java:1061) >> at >>org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester. j >ava: >>76) >> at >org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown >>Source) >> at >>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(U n >know >>n >>Source) >> at >>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentD i >spat >>cher.dispatch(Unknown >>Source) >> at >>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unk n >own >>Source) >> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown >Source) >> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown >Source) >> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) >> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown >Source) >> at >org.apache.commons.digester.Digester.parse(Digester.java:1567) >> at >>org.apache.catalina.core.StandardHostDeployer.install(StandardHostDepl o >yer. >>java:488) >> at >>org.apache.catalina.core.StandardHost.install(StandardHost.java:863) >> at >>org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.ja v >a:48 >>2) >> at >>org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427) >> at >org.apache.catalina.startup.HostConfig.start(HostConfig.java:968) >> at >>org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java: 3 >49) >> at >>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycle S >uppo >>rt.java:119) >> at >>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091) >> at >org.apache.catalina.core.StandardHost.start(StandardHost.java:789) >> at >>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) >> at >>org.apach
RE: RE : how to access Subject after authentification
I have tried both of these and they both return null! > -Original Message- > From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED] > Sent: 20 July 2004 16:30 > To: Tomcat Users List > Subject: Re: RE : how to access Subject after authentification > > > Two ways: > > httpSession.getAttribute("javax.security.auth.subject") > > or > > Subject.getSubject(AccessControl.getContext()) > > -- Jeanfrancois > > Matt Harrison wrote: > > >Sorry for mis-reading your email > > > >If anybody out there knows how to retrieve the Subject, > Jean-Pierre and I > >would most appreciate it! > > > >But, if, as I suspect, this is not part of the current > servlet spec, and > >thus not part of Tomcat, can I make a request for this to be > included next > >time round? > > > >I work around this by concatenating all the information I > require from the > >subject into the Principal's name in my JAAS login module, as a > >java.security.Principal object is available from the request > object in > >Tomcat. But I guess this isn't an option for this problem. > > > >Matt > > > > > > > >>-Original Message- > >>From: LERBSCHER Jean-Pierre > >>[mailto:[EMAIL PROTECTED] > >>Sent: 20 July 2004 15:40 > >>To: 'Tomcat Users List' > >>Subject: RE : how to access Subject after authentification > >> > >> > >>Thanks Matt ! > >>My problem is that have to call EJB deployed in Weblogic > >>application server > >>from servlet components. I use the weblogic api to propagate > >>the security > >>information from tomcat to WLS. This api uses the subject! > Thus it is > >>necessary that I can reach it. > >> > >>-Message d'origine- > >>De : Matt Harrison [mailto:[EMAIL PROTECTED] > >>Envoyé : mardi 20 juillet 2004 15:59 > >>À : 'Tomcat Users List' > >>Objet : RE: how to access Subject after authentification > >> > >>Hi > >> > >>I had a similar question a while back and never really got it fully > >>resolved, but I found that Tomcat doesn't save the subject as > >>a session > >>attribute. > >> > >>However in your case you don't need to access the subject. In > >>the web.xml > >>file for your app, you can define what roles have access to > >>each resource > >>(jsp, servlet) and have your JAAS login module assign these > >>roles to the > >>subject - i.e. container managed security. > >> > >>e.g. add to web.xml (gives access to logins with role "user" > >>to all of your > >>application): > >> > >> > >> > >> > >>myApplication > >>/* > >> > >> > >>user > >> > >> > >> > >>user > >> > >> > >>see the tomcat docs for more info > >> > >>Matt > >> > >> > >> > >>>-Original Message- > >>>From: LERBSCHER Jean-Pierre > >>>[mailto:[EMAIL PROTECTED] > >>>Sent: 20 July 2004 14:42 > >>>To: '[EMAIL PROTECTED]' > >>>Subject: how to access Subject after authentification > >>> > >>> > >>>Hi, > >>> > >>>I am using JAAS authentification module to authenticate user > >>>within tomcat > >>>5.0.27. > >>> > >>>After the authentification, I want to control access to > >>>resources (like ejb > >>>deployed in weblogic application server). > >>> > >>>To control access, I have to use weblogic api with the > >>>Subject instance > >>>delivred by authentification to tomcat. > >>> > >>> > >>> > >>>The problem is : how can I get the subject object.. I try > >>>session.getAttribute( "javax.security.auth.subject" ); but it > >>>seems that I > >>>can't access to this information ! > >>> > >>>Any ideas? > >>> > >>>Thanks, > >>> > >>> > >>> > >>> > >> > - > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > - > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error Starting Sample Tomcat Webapps
DEAR Yoav Shapira I have a question for you sir. I start learning JSP and ohter J2EE tools recently. I buy a book of "Professional JSP 2nd Edition". Sir i am facing a problem: I dowload jakarta_tomcat 4.1.30.exe from the website. I already do have jdk1.3 at my PC ( iam using win98 OS). Now after installing jakarta_tomcat to a folder "c\apache\tomcat", I create two environment variables into my Autoexe.bat file as under : set JAVA_HOME=C:\jdk1.3 set CATALINA_HOME=C:\APACHE\TOMCAT Now when I Start Tomcat - a DOS base window is opened and remained active for few seconds and then close automatically. Also i try Startup.bat file at MS DOS promt, it shows some lines as follows: C:\Apache\Tomcat\bin>startup Using CATALINA_BASE: C:\APACHE\TOMCAT Using CATALINA_HOME: C:\APACHE\TOMCAT Using CATALINA_TMPDIR: C:\APACHE\TOMCAT\temp Using JAVA_HOME: C:\jdk1.3 C:\Apache\Tomcat\bin> And in the mid also a new DOS base window shows a name 'Java' opened for few seconds and automatically closed. Sir/Madam, whats the wrong with the tomcat? coz as per book instructions it must shows a Catalina named window and remained active till I did not issue a command Shutdown. So please guide me what I should do in this connection in detail. An early reply shall highly bhe appreicated. Saeed Programmer - Original Message - From: "Shapira, Yoav" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, July 20, 2004 5:43 PM Subject: RE: Error Starting Sample Tomcat Webapps Hi, Make sure the java installations are clean, i.e. there are no extra xml API or parser implementations (or Digester, come to think of it) in your jre/lib/ext directory (off $JAVA_HOME). Yoav Shapira Millennium Research Informatics >-Original Message- >From: Debra Bartling [mailto:[EMAIL PROTECTED] >Sent: Monday, July 19, 2004 5:25 PM >To: [EMAIL PROTECTED] >Subject: Error Starting Sample Tomcat Webapps > >Tomcat 5.0.27, binary distribution, on two different servers, one works, >one doesn't. My development server (Solaris 8) works OK when I unpack >Tomcat and start it up with the demo webapps (as well as with my own). On >my production server (Solaris 9) Tomcat does not start up correctly and >gives the following: > >2004-07-19 12:11:25 StandardHost[localhost]: Error deploying application at >context path null >java.lang.reflect.InvocationTargetException > at >org.apache.commons.digester.Digester.createSAXException(Digester.java:2 540) > at >org.apache.commons.digester.Digester.createSAXException(Digester.java:2 566) > at >org.apache.commons.digester.Digester.endElement(Digester.java:1061) > at >org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.j ava: >76) > at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown >Source) > at >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Un know >n >Source) > at >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi spat >cher.dispatch(Unknown >Source) > at >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn own >Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > at org.apache.commons.digester.Digester.parse(Digester.java:1567) > at >org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo yer. >java:488) > at >org.apache.catalina.core.StandardHost.install(StandardHost.java:863) > at >org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.jav a:48 >2) > at >org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427) > at org.apache.catalina.startup.HostConfig.start(HostConfig.java:968) > at >org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:3 49) > at >org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS uppo >rt.java:119) > at >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091) > at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) > at >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) > at >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478) > at >org.apache.catalina.core.StandardService.start(StandardService.java:480 ) > at >org.apache.catalina.core.StandardServer.start(StandardServer.java:2313) > at org.apache.catalina.startup.Catalina.start(Catalina.java:556) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:3 >9) > at >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImp >l.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284) > at sun.reflect.NativeMethodAccessorImpl
Tomcat fails to start
I am using Eclipse with MyEclipseIDE to run Tomcat. If I use the startup.bat for tomcat everything works fine. However, if I use eclipse to start tomcat i get the error below. Any ideas? The version of server.xml that you see below is near identical to server-minimal.xml. This has been happening for about a day now. There were no changes made when it started to occur, but since then I have reinstalled the JDK, Eclipse, and MyEclipseIDE. Thanks in advance, Andrew factory org.apache.catalina.users.MemoryUserDatabaseFactory pathname conf/tomcat-users.xml Thread [main] (Suspended (exception EOFException)) XMLEntityScanner.load(int, boolean) line: not available XMLEntityScanner.skipSpaces() line: not available XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(boolean) line: not available XMLDocumentScannerImpl(XMLDocumentFragmentScannerImpl).scanDocument(boolean) line: not available XML11Configuration.parse(boolean) line: not available XML11Configuration.parse(XMLInputSource) line: not available SAXParser(XMLParser).parse(XMLInputSource) line: not available SAXParser(AbstractSAXParser).parse(InputSource) line: not available CatalinaDigester(Digester).parse(InputSource) line: 1548 Catalina.load() line: 489 Catalina.load(String[]) line: 528 NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method] NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39 DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25 Method.invoke(Object, Object[]) line: 324 Bootstrap.load(String[]) line: 247 Bootstrap.main(String[]) line: 421 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : how to access Subject after authentification
Two ways: httpSession.getAttribute("javax.security.auth.subject") or Subject.getSubject(AccessControl.getContext()) -- Jeanfrancois Matt Harrison wrote: Sorry for mis-reading your email If anybody out there knows how to retrieve the Subject, Jean-Pierre and I would most appreciate it! But, if, as I suspect, this is not part of the current servlet spec, and thus not part of Tomcat, can I make a request for this to be included next time round? I work around this by concatenating all the information I require from the subject into the Principal's name in my JAAS login module, as a java.security.Principal object is available from the request object in Tomcat. But I guess this isn't an option for this problem. Matt -Original Message- From: LERBSCHER Jean-Pierre [mailto:[EMAIL PROTECTED] Sent: 20 July 2004 15:40 To: 'Tomcat Users List' Subject: RE : how to access Subject after authentification Thanks Matt ! My problem is that have to call EJB deployed in Weblogic application server from servlet components. I use the weblogic api to propagate the security information from tomcat to WLS. This api uses the subject! Thus it is necessary that I can reach it. -Message d'origine- De : Matt Harrison [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juillet 2004 15:59 À : 'Tomcat Users List' Objet : RE: how to access Subject after authentification Hi I had a similar question a while back and never really got it fully resolved, but I found that Tomcat doesn't save the subject as a session attribute. However in your case you don't need to access the subject. In the web.xml file for your app, you can define what roles have access to each resource (jsp, servlet) and have your JAAS login module assign these roles to the subject - i.e. container managed security. e.g. add to web.xml (gives access to logins with role "user" to all of your application): myApplication /* user user see the tomcat docs for more info Matt -Original Message- From: LERBSCHER Jean-Pierre [mailto:[EMAIL PROTECTED] Sent: 20 July 2004 14:42 To: '[EMAIL PROTECTED]' Subject: how to access Subject after authentification Hi, I am using JAAS authentification module to authenticate user within tomcat 5.0.27. After the authentification, I want to control access to resources (like ejb deployed in weblogic application server). To control access, I have to use weblogic api with the Subject instance delivred by authentification to tomcat. The problem is : how can I get the subject object.. I try session.getAttribute( "javax.security.auth.subject" ); but it seems that I can't access to this information ! Any ideas? Thanks, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re:
Norton AntiVirus excluído1.txt Description: plain/text - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RE : how to access Subject after authentification
Sorry for mis-reading your email If anybody out there knows how to retrieve the Subject, Jean-Pierre and I would most appreciate it! But, if, as I suspect, this is not part of the current servlet spec, and thus not part of Tomcat, can I make a request for this to be included next time round? I work around this by concatenating all the information I require from the subject into the Principal's name in my JAAS login module, as a java.security.Principal object is available from the request object in Tomcat. But I guess this isn't an option for this problem. Matt > -Original Message- > From: LERBSCHER Jean-Pierre > [mailto:[EMAIL PROTECTED] > Sent: 20 July 2004 15:40 > To: 'Tomcat Users List' > Subject: RE : how to access Subject after authentification > > > Thanks Matt ! > My problem is that have to call EJB deployed in Weblogic > application server > from servlet components. I use the weblogic api to propagate > the security > information from tomcat to WLS. This api uses the subject! Thus it is > necessary that I can reach it. > > -Message d'origine- > De : Matt Harrison [mailto:[EMAIL PROTECTED] > Envoyé : mardi 20 juillet 2004 15:59 > À : 'Tomcat Users List' > Objet : RE: how to access Subject after authentification > > Hi > > I had a similar question a while back and never really got it fully > resolved, but I found that Tomcat doesn't save the subject as > a session > attribute. > > However in your case you don't need to access the subject. In > the web.xml > file for your app, you can define what roles have access to > each resource > (jsp, servlet) and have your JAAS login module assign these > roles to the > subject - i.e. container managed security. > > e.g. add to web.xml (gives access to logins with role "user" > to all of your > application): > > > > > myApplication > /* > > > user > > > > user > > > see the tomcat docs for more info > > Matt > > > -Original Message- > > From: LERBSCHER Jean-Pierre > > [mailto:[EMAIL PROTECTED] > > Sent: 20 July 2004 14:42 > > To: '[EMAIL PROTECTED]' > > Subject: how to access Subject after authentification > > > > > > Hi, > > > > I am using JAAS authentification module to authenticate user > > within tomcat > > 5.0.27. > > > > After the authentification, I want to control access to > > resources (like ejb > > deployed in weblogic application server). > > > > To control access, I have to use weblogic api with the > > Subject instance > > delivred by authentification to tomcat. > > > > > > > > The problem is : how can I get the subject object.. I try > > session.getAttribute( "javax.security.auth.subject" ); but it > > seems that I > > can't access to this information ! > > > > Any ideas? > > > > Thanks, > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : how to access Subject after authentification
Thanks Matt ! My problem is that have to call EJB deployed in Weblogic application server from servlet components. I use the weblogic api to propagate the security information from tomcat to WLS. This api uses the subject! Thus it is necessary that I can reach it. -Message d'origine- De : Matt Harrison [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juillet 2004 15:59 À : 'Tomcat Users List' Objet : RE: how to access Subject after authentification Hi I had a similar question a while back and never really got it fully resolved, but I found that Tomcat doesn't save the subject as a session attribute. However in your case you don't need to access the subject. In the web.xml file for your app, you can define what roles have access to each resource (jsp, servlet) and have your JAAS login module assign these roles to the subject - i.e. container managed security. e.g. add to web.xml (gives access to logins with role "user" to all of your application): myApplication /* user user see the tomcat docs for more info Matt > -Original Message- > From: LERBSCHER Jean-Pierre > [mailto:[EMAIL PROTECTED] > Sent: 20 July 2004 14:42 > To: '[EMAIL PROTECTED]' > Subject: how to access Subject after authentification > > > Hi, > > I am using JAAS authentification module to authenticate user > within tomcat > 5.0.27. > > After the authentification, I want to control access to > resources (like ejb > deployed in weblogic application server). > > To control access, I have to use weblogic api with the > Subject instance > delivred by authentification to tomcat. > > > > The problem is : how can I get the subject object.. I try > session.getAttribute( "javax.security.auth.subject" ); but it > seems that I > can't access to this information ! > > Any ideas? > > Thanks, > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Embedded Tomcat with no war or webapps
Hi, Yeah, you'd use StandardContext#createWrapper, set the class on the Wrapper object, and StandardContext#addServletMapping. There might also be a JMX way to do this. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Michael Banks [mailto:[EMAIL PROTECTED] >Sent: Tuesday, July 20, 2004 10:16 AM >To: [EMAIL PROTECTED] >Subject: Embedded Tomcat with no war or webapps > > >I have successfully embedded Tomcat 5 into an application, >but I would like to be able to load servlets without using >a .war file or a webapps directory and no web.xml file. > >In Jetty I can do the following: > >ServletHolder holder = handler.addServlet( >"MYSERVLET", "/myservlet/*", MyServlet.class.getName() ); >holder.setInitParameter( "ParameterA", "/usr/local/dir" ); >holder.setInitParameter( "ParameterB", "42" ); > >Is there any way to do the same with Tomcat? > > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Embedded Tomcat with no war or webapps
I have successfully embedded Tomcat 5 into an application, but I would like to be able to load servlets without using a .war file or a webapps directory and no web.xml file. In Jetty I can do the following: ServletHolder holder = handler.addServlet( "MYSERVLET", "/myservlet/*", MyServlet.class.getName() ); holder.setInitParameter( "ParameterA", "/usr/local/dir" ); holder.setInitParameter( "ParameterB", "42" ); Is there any way to do the same with Tomcat? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to access Subject after authentification
Hi I had a similar question a while back and never really got it fully resolved, but I found that Tomcat doesn't save the subject as a session attribute. However in your case you don't need to access the subject. In the web.xml file for your app, you can define what roles have access to each resource (jsp, servlet) and have your JAAS login module assign these roles to the subject - i.e. container managed security. e.g. add to web.xml (gives access to logins with role "user" to all of your application): myApplication /* user user see the tomcat docs for more info Matt > -Original Message- > From: LERBSCHER Jean-Pierre > [mailto:[EMAIL PROTECTED] > Sent: 20 July 2004 14:42 > To: '[EMAIL PROTECTED]' > Subject: how to access Subject after authentification > > > Hi, > > I am using JAAS authentification module to authenticate user > within tomcat > 5.0.27. > > After the authentification, I want to control access to > resources (like ejb > deployed in weblogic application server). > > To control access, I have to use weblogic api with the > Subject instance > delivred by authentification to tomcat. > > > > The problem is : how can I get the subject object.. I try > session.getAttribute( "javax.security.auth.subject" ); but it > seems that I > can't access to this information ! > > Any ideas? > > Thanks, > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to access Subject after authentification
Hi, I am using JAAS authentification module to authenticate user within tomcat 5.0.27. After the authentification, I want to control access to resources (like ejb deployed in weblogic application server). To control access, I have to use weblogic api with the Subject instance delivred by authentification to tomcat. The problem is : how can I get the subject object.. I try session.getAttribute( "javax.security.auth.subject" ); but it seems that I can't access to this information ! Any ideas? Thanks,
Re:
<>- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5 drops remote user ?
Hello, is it true that TC5 drops the remote user info from the Webserver ? with IIS->JK->TC4 remote user appears in "snoop.jsp" with IIS->JK->TC5 it's gone (NULL). Any way to bring it back? Where (in which source-file) is it dropped? -- Björn Andersen Webservices - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Tomcat and openSSL
I'm currently working on the same thing, (Solaris: Apache, SSL, Tomcat, mod_jk...), and found while reading "BUILDING" this part for configure - options for mod_jk: --enable-EAPI This parameter is needed when using Apache-1.3 and mod_ssl, otherwise you will get the error message: "this module might crash under EAPI!" when loading libjk.so in httpd. Don't know if by W2K there is similar flag needed. Good Luck -Ursprüngliche Nachricht- Von: Daniel J. Obregon [mailto:[EMAIL PROTECTED] Gesendet am: Dienstag, 20. Juli 2004 14:50 An: Tomcat Users List Betreff: Re: Tomcat and openSSL I would recommend using Apache to handle the ssl connections for you. I've been using apache as the ssl connection point in our production environment and using mod_jk to send things on to tomcat. I had tried using the ssl connector bundled with tomcat, but after awhile, it just seemed to reach a point where it no longer served up web pages. Perhaps it was just a config thing... At any rate, if you've already got apache ssl working correctly, you just have to add a line to your conf file: Before: SSLOptions +StdEnvVars After: SSLOptions +StdEnvVars Good Luck! - Dan - > Hi all, > > I'm new to this list and although I read the instructions on how to use > the list, I'd like to apologize in advance if I ever misuse the list! > > - > |Question| > - > I'm currently working on security with Apache Tomcat and openssl under > Windows 2000. I'd like to set up Tomcat to be able to use it with SSL. I > installed openssl on Windows and I'm now trying to create a CA and > certificates. > > How am I exactly supposed to configure Tomcat and how does it relate to > openssl? Did I even need to download openssl in the first place? > Instructions on the web are unclear and several relate to older versions > of Tomcat. (I'm running Tomcat 5.0.25). > > Thanks to all, > David. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and openSSL
I would recommend using Apache to handle the ssl connections for you. I've been using apache as the ssl connection point in our production environment and using mod_jk to send things on to tomcat. I had tried using the ssl connector bundled with tomcat, but after awhile, it just seemed to reach a point where it no longer served up web pages. Perhaps it was just a config thing... At any rate, if you've already got apache ssl working correctly, you just have to add a line to your conf file: Before: SSLOptions +StdEnvVars After: SSLOptions +StdEnvVars Good Luck! - Dan - > Hi all, > > I'm new to this list and although I read the instructions on how to use > the list, I'd like to apologize in advance if I ever misuse the list! > > - > |Question| > - > I'm currently working on security with Apache Tomcat and openssl under > Windows 2000. I'd like to set up Tomcat to be able to use it with SSL. I > installed openssl on Windows and I'm now trying to create a CA and > certificates. > > How am I exactly supposed to configure Tomcat and how does it relate to > openssl? Did I even need to download openssl in the first place? > Instructions on the web are unclear and several relate to older versions > of Tomcat. (I'm running Tomcat 5.0.25). > > Thanks to all, > David. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Makefile for jakarta-tomcat-connectors-jk-1.2.5-src
Hello! This is my first time ever being on a mailing list, so please forgive me mistakes, if I do some... I nearly got crazy while compiling "jakarta-tomcat-connectors-jk-1.2.5-src" to get mod_jk.so on my Solaris 8 SPARC. I found many HowTo's, but none did work, I always got following error message: (after I did the configure, of course) -->>make: Fatal error in reader: Makefile, line 21: Unexpected end of line seen<<-- I took a look to "Makefile" in jakarta-tomcat-connectors-jk-1.2.5-src/jk/native/apache-1.3, an made following change: [EMAIL PROTECTED] # vi Makefile ... OEXT=.lo libexecdir=${APACHE_DIR}/libexec -->>JK_DIR = .. instead of -->> JK_DIR := .. BUILD_DIR = ${JK_DIR}/../build/jk/apache13 Now I receive a different error: make: Fatal error: Command failed for target `mod_jk.lo' I didn't find any hint at google, so has anyone of you had a similar problem? --> I also took a look to the source code after unpacking, an recognised that the "Makefile.in" has the ":" at the same place,<-- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: where to put config.xml
Hi, The META-INF/context.xml file is only consulted if inside a WAR. Otherwise, put the config.xml file in the webapps directory itself (if your autodeploy is on, which is the default), or whatever directory you designate as the Host's appBase (tomcat4), or the conf/[engine name]/[host name] directory (tomcat 5). Yoav Shapira Millennium Research Informatics >-Original Message- >From: John Hill [mailto:[EMAIL PROTECTED] >Sent: Tuesday, July 20, 2004 7:39 AM >To: 'Tomcat Users List' >Subject: where to put config.xml > >Hi > > can anyone tell me where I should put the config.xml file for a web >application. IF I put it under META-INF , tomcat doesnt seem to find it. >Does >it need to be in a WAR file for this to occur ? > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: simple HelloWorld example -> 404
Hi, Good answer -- and it's gratifying to see formerly new/novice users now helping others ;) Yoav Shapira Millennium Research Informatics >-Original Message- >From: Wendy Smoak [mailto:[EMAIL PROTECTED] >Sent: Monday, July 19, 2004 6:15 PM >To: Tomcat Users List >Subject: Re: simple HelloWorld example -> 404 > >From: "Scott D. Anderson" <[EMAIL PROTECTED]> >> when I click on the link to "servlet/HelloWorld" I get a 404. > >Examples with /servlet/ in the URL usually depend upon the Invoker Servlet >being enabled. It is now disabled by default, and although it's more >frustrating in the beginning, it's better to leave it that way and learn to >configure your Servlets. > >http://jakarta.apache.org/tomcat/faq/misc.html#evil > >> Anyone have any ideas on how to get this very simple example working? > >Put and tags into web.xml, and then access the >Servlet using the URL that you configured, NOT the one with /servlet/ in >it. >Check the DTD for the required order of tags in web.xml. > >-- >Wendy Smoak > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error Starting Sample Tomcat Webapps
Hi, Make sure the java installations are clean, i.e. there are no extra xml API or parser implementations (or Digester, come to think of it) in your jre/lib/ext directory (off $JAVA_HOME). Yoav Shapira Millennium Research Informatics >-Original Message- >From: Debra Bartling [mailto:[EMAIL PROTECTED] >Sent: Monday, July 19, 2004 5:25 PM >To: [EMAIL PROTECTED] >Subject: Error Starting Sample Tomcat Webapps > >Tomcat 5.0.27, binary distribution, on two different servers, one works, >one doesn't. My development server (Solaris 8) works OK when I unpack >Tomcat and start it up with the demo webapps (as well as with my own). On >my production server (Solaris 9) Tomcat does not start up correctly and >gives the following: > >2004-07-19 12:11:25 StandardHost[localhost]: Error deploying application at >context path null >java.lang.reflect.InvocationTargetException > at >org.apache.commons.digester.Digester.createSAXException(Digester.java:2 540) > at >org.apache.commons.digester.Digester.createSAXException(Digester.java:2 566) > at >org.apache.commons.digester.Digester.endElement(Digester.java:1061) > at >org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.j ava: >76) > at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown >Source) > at >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Un know >n >Source) > at >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi spat >cher.dispatch(Unknown >Source) > at >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn own >Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > at org.apache.commons.digester.Digester.parse(Digester.java:1567) > at >org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo yer. >java:488) > at >org.apache.catalina.core.StandardHost.install(StandardHost.java:863) > at >org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.jav a:48 >2) > at >org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427) > at org.apache.catalina.startup.HostConfig.start(HostConfig.java:968) > at >org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:3 49) > at >org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS uppo >rt.java:119) > at >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091) > at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) > at >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) > at >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478) > at >org.apache.catalina.core.StandardService.start(StandardService.java:480 ) > at >org.apache.catalina.core.StandardServer.start(StandardServer.java:2313) > at org.apache.catalina.startup.Catalina.start(Catalina.java:556) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:3 >9) > at >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImp >l.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:3 >9) > at >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImp >l.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at >org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java: 218) > >My configurations are exactly the same except for the difference in the >operating system. Any suggestions? > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re:
Sternbergh, Cornell wrote: Craigmcc, Are you trying to unsubscribe? No, it is a virus/trojan that is faking Craig's address. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE:
Well... Looking more closely at craigmcc's address, I should've guessed that he'd know how to unsubscribe, assuming that there's actually a craigmcc at apache.org. Maybe folks on the list should check if they've a virus, particularly if they have craigmcc's email address. Or maybe, I should stop trying to be helpful ;-) -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 20, 2004 08:14 To: Tomcat Users List Subject: Re: It's a virus from someone's infected system. Ignore the message. --David Sternbergh, Cornell wrote: >Craigmcc, >Are you trying to unsubscribe? > >If so, send an email to: > [EMAIL PROTECTED] > >NOT to [EMAIL PROTECTED] > > >-Original Message- >From: Craigmcc [mailto:[EMAIL PROTECTED] >Sent: Tuesday, July 20, 2004 02:33 >To: Tomcat-user >Subject: Re: > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re:
<>- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: where to put config.xml
Return Receipt Your Re: where to put config.xml document: was received Nicolas PEREZ/PAR/HD/Corp by: at: 20/07/2004 14:29:49 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RealmBase NullPointerException from a filter
Hi, from a Filter class I want to add a RealmBase object but I get the following exception. From the source I think that I should set the container variable of the Realm object but I don't know how I can figure out the correct container. ERROR catalina.realm.RealmBase - Can't register null java.lang.NullPointerException at org.apache.catalina.realm.RealmBase.init(RealmBase.java:1194) at org.apache.catalina.realm.RealmBase.start(RealmBase.java:875) at org.apache.catalina.realm.JNDIRealm.start(JNDIRealm.java:1564) at cv.security.SecurityFilter.lookupRealm(SecurityFilter.java:267) at cv.security.SecurityFilter.init(SecurityFilter.java:289) Zsolt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: where to put config.xml
there is nothing in Error/general Logs ? what i can do and how i can find where is fault? Saeed - Original Message - From: "Schalk Neethling" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, July 20, 2004 5:01 PM Subject: Re: where to put config.xml > You can find out more info on the exact cause of the error by looking at > Tomcat's error/general log located at: > TOMCAT_HOME/logs/ > > Sayeed wrote: > > >Dear Sir/Madam > > > >I do not know much about the Question - so sorry sir/madam as i am new to > >this thing. > > > >I do have however question from you. > > > >I start learning JSP and ohter J2EE tools recently. > >I buy a book of "Professional JSP 2nd Edition". > > > >Sir i am facing a problem: > > > >I dowload jakarta_tomcat 4.1.30.exe from the website. > > > >I already do have jdk1.3 at my PC ( iam using win98 OS). > > > >Now after installing jakarta_tomcat to a folder "c\apache\tomcat", > >I create two environment variables into my Autoexe.bat file as under : > > > >set JAVA_HOME=C:\jdk1.3 > >set CATALINA_HOME=C:\APACHE\TOMCAT > > > > Now when I Start Tomcat - a DOS base window is opened and remained active > >for few seconds and then close automatically. Also i try Startup.bat file at > >MS DOS promt, it shows some lines as follows: > > > >C:\Apache\Tomcat\bin>startup > >Using CATALINA_BASE: C:\APACHE\TOMCAT > >Using CATALINA_HOME: C:\APACHE\TOMCAT > >Using CATALINA_TMPDIR: C:\APACHE\TOMCAT\temp > >Using JAVA_HOME: C:\jdk1.3 > >C:\Apache\Tomcat\bin> > >And in the mid also a new DOS base window shows a name 'Java' opened for few > >seconds and automatically closed. > > > >Sir/Madam, whats the wrong with the tomcat? coz as per book instructions it > >must shows a Catalina named window and remained active till I did not issue > >a command Shutdown. > > > >So please guide me what I should do in this connection in detail. > > > >An early reply shall highly bhe appreicated. > > > > > >Saeed > >Programmer > > > >- Original Message - > >From: "John Hill" <[EMAIL PROTECTED]> > >To: "'Tomcat Users List'" <[EMAIL PROTECTED]> > >Sent: Tuesday, July 20, 2004 4:38 PM > >Subject: where to put config.xml > > > > > > > > > >>Hi > >> > >>can anyone tell me where I should put the config.xml file for a web > >>application. IF I put it under META-INF , tomcat doesnt seem to find it. > >> > >> > >Does > > > > > >>it need to be in a WAR file for this to occur ? > >> > >> > >>- > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > Kind Regards > Schalk Neethling > Web Developer.Designer.Programmer.President > Volume4.Development.Multimedia.Branding > emotionalize.conceptualize.visualize.realize > Tel: +27125468436 > Fax: +27125468436 > email:[EMAIL PROTECTED] > web: www.volume4.co.za > > This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re:
It's a virus from someone's infected system. Ignore the message. --David Sternbergh, Cornell wrote: Craigmcc, Are you trying to unsubscribe? If so, send an email to: [EMAIL PROTECTED] NOT to [EMAIL PROTECTED] -Original Message- From: Craigmcc [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 20, 2004 02:33 To: Tomcat-user Subject: Re: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: where to put config.xml
You can find out more info on the exact cause of the error by looking at Tomcat's error/general log located at: TOMCAT_HOME/logs/ Sayeed wrote: Dear Sir/Madam I do not know much about the Question - so sorry sir/madam as i am new to this thing. I do have however question from you. I start learning JSP and ohter J2EE tools recently. I buy a book of "Professional JSP 2nd Edition". Sir i am facing a problem: I dowload jakarta_tomcat 4.1.30.exe from the website. I already do have jdk1.3 at my PC ( iam using win98 OS). Now after installing jakarta_tomcat to a folder "c\apache\tomcat", I create two environment variables into my Autoexe.bat file as under : set JAVA_HOME=C:\jdk1.3 set CATALINA_HOME=C:\APACHE\TOMCAT Now when I Start Tomcat - a DOS base window is opened and remained active for few seconds and then close automatically. Also i try Startup.bat file at MS DOS promt, it shows some lines as follows: C:\Apache\Tomcat\bin>startup Using CATALINA_BASE: C:\APACHE\TOMCAT Using CATALINA_HOME: C:\APACHE\TOMCAT Using CATALINA_TMPDIR: C:\APACHE\TOMCAT\temp Using JAVA_HOME: C:\jdk1.3 C:\Apache\Tomcat\bin> And in the mid also a new DOS base window shows a name 'Java' opened for few seconds and automatically closed. Sir/Madam, whats the wrong with the tomcat? coz as per book instructions it must shows a Catalina named window and remained active till I did not issue a command Shutdown. So please guide me what I should do in this connection in detail. An early reply shall highly bhe appreicated. Saeed Programmer - Original Message - From: "John Hill" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Tuesday, July 20, 2004 4:38 PM Subject: where to put config.xml Hi can anyone tell me where I should put the config.xml file for a web application. IF I put it under META-INF , tomcat doesnt seem to find it. Does it need to be in a WAR file for this to occur ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE:
Craigmcc, Are you trying to unsubscribe? If so, send an email to: [EMAIL PROTECTED] NOT to [EMAIL PROTECTED] -Original Message- From: Craigmcc [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 20, 2004 02:33 To: Tomcat-user Subject: Re: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: where to put config.xml
Return Receipt Your Re: where to put config.xml document: was received Nicolas PEREZ/PAR/HD/Corp by: at: 20/07/2004 13:50:44 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: where to put config.xml
Dear Sir/Madam I do not know much about the Question - so sorry sir/madam as i am new to this thing. I do have however question from you. I start learning JSP and ohter J2EE tools recently. I buy a book of "Professional JSP 2nd Edition". Sir i am facing a problem: I dowload jakarta_tomcat 4.1.30.exe from the website. I already do have jdk1.3 at my PC ( iam using win98 OS). Now after installing jakarta_tomcat to a folder "c\apache\tomcat", I create two environment variables into my Autoexe.bat file as under : set JAVA_HOME=C:\jdk1.3 set CATALINA_HOME=C:\APACHE\TOMCAT Now when I Start Tomcat - a DOS base window is opened and remained active for few seconds and then close automatically. Also i try Startup.bat file at MS DOS promt, it shows some lines as follows: C:\Apache\Tomcat\bin>startup Using CATALINA_BASE: C:\APACHE\TOMCAT Using CATALINA_HOME: C:\APACHE\TOMCAT Using CATALINA_TMPDIR: C:\APACHE\TOMCAT\temp Using JAVA_HOME: C:\jdk1.3 C:\Apache\Tomcat\bin> And in the mid also a new DOS base window shows a name 'Java' opened for few seconds and automatically closed. Sir/Madam, whats the wrong with the tomcat? coz as per book instructions it must shows a Catalina named window and remained active till I did not issue a command Shutdown. So please guide me what I should do in this connection in detail. An early reply shall highly bhe appreicated. Saeed Programmer - Original Message - From: "John Hill" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Tuesday, July 20, 2004 4:38 PM Subject: where to put config.xml > Hi > > can anyone tell me where I should put the config.xml file for a web > application. IF I put it under META-INF , tomcat doesnt seem to find it. Does > it need to be in a WAR file for this to occur ? > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Extending the standard webdav app
Hi ! I would like to extend the standard Webdav app of Tomcat. I have already coded my own servlet extending WebdavServlet, but I cannot deploy my application correctly. The extension uses the libraries "servlets-common", "servlets-default" and "servlets-webdav". And so when running my app I have a message saying that is not possible to instance WebdavServlet although the libraries are in the Tomcat "server" lib directory. How can I solve this ? I tried to put the jars in "shared" and "common" directories but without success. It doesn't work in webapp/WEB-INF/lib directory too. Can you help me ? Thanks in advance ! Michel. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
where to put config.xml
Hi can anyone tell me where I should put the config.xml file for a web application. IF I put it under META-INF , tomcat doesnt seem to find it. Does it need to be in a WAR file for this to occur ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need help on Servlet deployment on Tomcat 4.1.30
Hi! I received the following error when I deployed HelloCS6386.class under the directory below and then try to access it using browser by typing in the address field http://localhost:10034/cs6386/serlvet/HelloCS6386: +-- webapps +-- cs6386 +-- WEB-INF +-- classes +-- HelloCS6386.class Can anyone tell me how to fix it? Thanks a lot! = HTTP Status 404 - /cs6386/servlet/HelloCS6386 type Status report message /cs6386/servlet/HelloCS6386 description The requested resource (/cs6386/servlet/HelloCS6386) is not available. Apache Tomcat/4.1.30 == __ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EJB Support
R K Singh wrote: Hi All, I have been using tomcat-4.1.29 for JSP & Servlets. Now I need to use EJB in my JSP pages. How can I do it with Tomcat? Well, you can't. Tomcat is not an EJB container. You must get a hold of some EJB container or full J2EE server. Thses I know of: - JBoss (FREEWARE, includes Tomcat 5) - Oracle AS - IBM WebSphere - BEA Logic - Macromedia JRun - Novell Extend (IIRC) Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EJB Support
Hi, Tomcat is a web container, so it can't handle EJB in normal case unlesss you use some 3rd party program. If you need EJB, the most obvious way is to get a J2EE Application Server like JBOSS, WebSphere, WebLogin... Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and openSSL
Hi all, I'm new to this list and although I read the instructions on how to use the list, I'd like to apologize in advance if I ever misuse the list! - |Question| - I'm currently working on security with Apache Tomcat and openssl under Windows 2000. I'd like to set up Tomcat to be able to use it with SSL. I installed openssl on Windows and I'm now trying to create a CA and certificates. How am I exactly supposed to configure Tomcat and how does it relate to openssl? Did I even need to download openssl in the first place? Instructions on the web are unclear and several relate to older versions of Tomcat. (I'm running Tomcat 5.0.25). Thanks to all, David. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem in ConnectionPooling
Hi All, We are using a connection pool in Tomcat using commons dbcp classes DriverAdaperCPDS (with com.sybase.jdbc2.jdbc.SybDriver class from sybase) and SharedPoolDataSource. If there is some network problem between tomcat 4.x and sybase 12.5., the code hangs at this line: Connection con = datasource.getConnection() i.e. we neither get back any connection object nor any exception. Pasted below is the code we use to create a connection pool and get back the connection. public static void setConnection() throws Exception { DriverAdapterCPDS cpds = new DriverAdapterCPDS(); cpds.setDriver("com.sybase.jdbc2.jdbc.SybDriver"); cpds.setUrl("jdbc:sybase:Tds::/"); cpds.setUser(); cpds.setPassword(); SharedPoolDataSource tds = new SharedPoolDataSource(); tds.setConnectionPoolDataSource(cpds); tds.setMaxActive(10); tds.setMaxWait(50); } public static Connection getConnection() throws Exception { Connection conn = null; try { conn = ds.getConnection(); } catch(Exception e) { e.printStackTrace(); } return conn; } The above code, however works fine if used within a standalone java application. Any ideas why should the above not work for a tomcat hosted application? Regards, Tapas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jsp precompiling using staging server
Apparently this is resolved in Tomcat 5.0.27 - it detects and reloads modified class files in the work directory. cheers! -Original Message- From: Robert Krüger [mailto:[EMAIL PROTECTED] Sent: 19 July 2004 15:25 To: Tomcat Users List Subject: Re: jsp precompiling using staging server Alan, I've noticed too that the algorithm in Jasper, which detects JSP file modifications is not terribly robust as far as manual modifications to generated files are concerned. What you could do is assemble a small test application with steps to reproduce the behaviour and file a bug report in bugzilla with your test case and hope that the guy who's in charge of the jasper core thinks it's a valid requirement to have manual changes to generated files detected. He has been very helpful and responsive with my jasper bug reports, so I can only encourage you to try your luck. You can always look at the source yourself and suggest a patch, however my impression was that you cannot look at the jasper source and expect to understand what's going on in a few minutes but YMMV. Regards, Robert Flisch, Alan wrote: > Hi, > > Thanks or your suggestion, but I was hoping to avoid having to bounce the context. > Also, I have looked at using ANT, but there were a variety of limitations that > caused problems. I found I couldn't specify a fileset but could only compile a > whole directory and as I said I was hoping to be able to avoid editing the web.xml > file and bouncing the context. > > My current approach (using a staging server and the precompilation directive) works > quite well apart from the problem I detailed below. I am a bit worried that its a > showstopper for me. > > Thanks, > Alan > > > > -Original Message- > From: Tim Funk [mailto:[EMAIL PROTECTED] > Sent: 19 July 2004 14:54 > To: Tomcat Users List > Subject: Re: jsp precompiling using staging server > > > This message contains a ant build.xml snippet to precompile all jsps's into a > jar. If you implement this - then all your need to do is replace the jar file > of precompiled JSP's (1 file) and reload the server. > > http://marc.theaimsgroup.com/?l=tomcat-user&m=108999588415291&w=2 > > > -Tim > > Flisch, Alan wrote: > >>I hope you can help me with this... >> >>I am trying to devise a precompiling procedure to reduce load on our production >>servers. I am precompiling the jsps on a staging server and then copying over the >>.jsp files to the appropriate webapp directory and the .java and .class files to the >>work directory. It works great the first time (it spots the new JSP and notices a >>newer compiled version in the work directory and loads that without any >>compilation), but it does not work when I am trying to copy over new versions of >>existing JSPs - it continues to serve the old one even though the .jsp file is new >>and the .class and .jsp files are new. I'm not sure what it does - it seems that it >>must be comparing the modified time of the .jsp file with that of the .class file >>and if the class file is newer it does nothing even if they are both newer than the >>loaded class file. >> >>Does anybody have any idea how I can prompt it to load the new class in the work >>directory to replace the existing one - is this even possible? >> >>Any help would be much appreciated. >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > Any opinions expressed in this E-mail may be those of the individual and not > necessarily the company. This E-mail and any files transmitted with it are > confidential and solely for the use of the intended recipient. If you are not the > intended recipient or the person responsible for delivering to the intended > recipient, be advised that you have received this E-mail in error and that any use > or copying is strictly prohibited. If you have received this E-mail in error please > notify the beCogent postmaster at [EMAIL PROTECTED] > Unless expressly stated, opinions in this email are those of the individual sender > and not beCogent Ltd. You must take full responsibility for virus checking this > email and any attachments. > Please note that the content of this email or any of its attachments may contain > data that falls within the scope of the Data Protection Acts and that you must > ensure that any handling or processing of such data by you is fully compliant with > the terms and provisions of the Data Protection Act 1984 and 1998. > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Robert Krüger Signal7
address is already in use
Return Receipt Your address is already in use document: was received Nicolas PEREZ/PAR/HD/Corp by: at: 20/07/2004 09:53:01 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Logging with mod_jk
Hello Tim, I have not read your answer correctly, sorry. The (%a) was ignored by my eyes... 8-) Is it possible to use the Apache-Log-Variables for the mod_jk-log? I tried this, but then the apache says, that there is an error in that directive. JkRequestLogFormat "%a ." --> Syntax error on line 89 of /apache/conf/httpd.conf: JkRequestLogFormat format array NULL -Ursprüngliche Nachricht- Von: Tim Funk [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 16. Juli 2004 13:56 An: Tomcat Users List Betreff: Re: Logging with mod_jk The client IP is already known by apache (%a) Or via HttpServletRequest.getRemoteAddr() -Tim [EMAIL PROTECTED] wrote: > No hints? > > -Ursprüngliche Nachricht- > Betreff: *** Mail von extern mit internem Absender ***Logging with > mod_jk > > > Hello all, > > is it possible to log the Client-IP with mod_jk on Apache 1.3.x ?? > The is nothing about it in the Documentation. > I use the JkLogStampFormat-Directive. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]