Re: debuging servlets
test... sorry,new email - Original Message - From: renyu teng [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, November 23, 2001 5:10 PM Subject: debuging servlets I am a new guy to servlet jsp stuffs. could anyone tell me how to debug a servlet if this servlet is used by tomcat? any tools to do this? thanks. teng __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Return Telnet result in Jsp how?
If you only need to authenticate a user, and where you have the telnet service or daemon exists a pop3 server, you can create a java class that attempts to authenticate to the pop3 daemon. If the user and password where good it returns OK , otherwise returns NOT OK. import java.io.*; import java.net.*; class POP3UserValidation { public static void main(String[] args) { if (args.length != 2) { System.out.println(Usage: java POP3UserValidation username , password ); System.exit(0); } POP3UserValidation PUV = new POP3UserValidation(); String userStatus = ; try { userStatus = PUV.checkUser(args[0], args[1]) ? OK : NOT OK; } catch ( Exception e) { e.printStackTrace(); } System.out.println(User is + userStatus); } public boolean checkUser( String user, String pass) throws IOException { Socket s = new Socket(yourpopserver.yourdomain.com, 110); BufferedReader in = new BufferedReader( new InputStreamReader(s.getInputStream())); BufferedWriter out = new BufferedWriter( new OutputStreamWriter(s.getOutputStream())); int msgnr = 0; String resp; receive(in); send(out, USER + user); resp = receive(in); if ( resp.substring(0,4).equals(-ERR)) { return false; } send(out, PASS + pass); resp = receive(in); if ( resp.substring(0,4).equals(-ERR)) { return false; } send(out, QUIT ); return true; } private void send(BufferedWriter out, String s) throws IOException { out.write(s+\n); out.flush(); } private String receive(BufferedReader in) throws IOException { return in.readLine(); } } -Mensaje original- De: Miao, Franco CAWS:EX [mailto:[EMAIL PROTECTED]] Enviado el: Viernes, 23 de Noviembre de 2001 03:08 p.m. Para: 'Tomcat Users List' CC: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' Asunto: Return Telnet result in Jsp how? Hi there, I got a project need to do with Jsp, which let user input their userID and password in Jsp, then Jsp talk to backend Telnet server, and return the login result in Jsp or Html format, further more it also can let user run more query command. Anyone can give me some idea for this? Thanks! Franco -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: HELP! Can't start up TC 4.0.1 on jdk 1.3.11_01 in Window 2K.
vernon, sounds like you havent configured the path for jdk1.3.1_01 yet. thats about the only thing that i could imagine..if you have configured the path for both tomcat and jdk1.3.1_01 with : set JAVA_HOME= c:\jdk1.3.1_01..(for instance) - Original Message - From: Vernon Wu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 23, 2001 1:36 PM Subject: HELP! Can't start up TC 4.0.1 on jdk 1.3.11_01 in Window 2K. Due to some problems on running TC 4.0.1, I get a suggestion from the Sun support to use the new jdk 1.3.1_01. Now, I can't start up the TC. After I issue the startup command, an exception occurs. I am unable to see what the exception is. The catalina window only stays for a very few seconds. Do anyone know how to handle this problem. Thanks in advance. Vernon -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Installing/Running Tomact
Sanjay, Its pretty easy..I did all this just yesterday. Downloaded 4.01. Cleand my machine of the jdk and jsdk and all that stuff. Cleaned the classpath, JAVA_HOME variables. installed jdk1.3 ( previously i was on 1.2.2 ) unzipped tomcat's zip and put it on c: set java_home to c:\jdk1.3 set catalina_home to C:\jakarta-tomcat-4.0.1 ( tomcat dir ) turned off pws and my previous servlet container opened cmd prompt and gave the command %catalina_home%/bin/startup and bingo!! it worked. all the examples are working absolutely fine. also, tried putting the snoop servlet in a jar and tested it. created mywebapp and put the snoop servlet jar and tested it. once i was comfy with the way tomcat handles jars,etc, i deployed my application and its working flawlessly. The only thing now i am trying to do is redirect the stderr which is appearing on the cmd prompt to some file. tomcat is putting all my logging directly on the cmd prompt. but overall, its pretty easy. i got started much quickly than i thought i would . just follow the steps mentioned in the documentation religiously and it should most probably work. u wont need anything extra to run the examples, atleast. try once more and let me know if u face any specific problems. luck amol - Original Message - From: Sanjay bahal [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 23, 2001 9:42 PM Subject: Installing/Running Tomact Hi, I can not seem to be able to run Tomact. I have tried Tomact_3_2, Tomact_3_3, Tomact_4_01.nothing works. Is it really so difficult? On : 3_2 I used to get the sealing violation error- I tried the various sugestions on the site- nothing worked. On 3_3 I can not even grab the error msg. On 4_01 I get an error- I can not grab the error msg- My system classpath is: CLASSPATH=.;c:\jdk1.3\lib\rt.jar;c:\xerces\xerces.jar;c:\soap\lib\soap.jar;c :\xml\jaxp.jar;c:\xml\parser.jar;c:\xml\xalan.jar;c:\wstk\uddi4j\lib\uddi4j. jar;c:\wstk\wsdli4j\lib\wsdl4j.jar;c:\wstk\lib\wstk.jar;c:\wstk\lib\xss4j.ja r;c:\wstk\soap\lib\mail.jar;c:\wstk\soap\lib\activation.jar;c:\webservices\c lasses;c:\jsse\lib\jcert.jar;c:\jsse\lib\jnet.jar;c:\jsse\lib\jsse.jar;c:\ax is\lib\axis.jar; do we need all the xml parser files- I have jaxp, parser, xalan, xerces? I g\have tried adding and removing files and cahnging the order etc- Nothing seems to work. I am on win98, jdk1.3 Thanks a lot guys, Sanjay __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Return Telnet result in Jsp how?
Hi there, I got a project need to do with Jsp, which let user input their userID and password in Jsp, then Jsp talk to backend Telnet server, and return the login result in Jsp or Html format, further more it also can let user run more query command. Anyone can give me some idea for this? Thanks! Franco -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Return Telnet result in Jsp how?
any web site as sample / doc reference ? thanks! Franco -Original Message- From: Huaxin [mailto:[EMAIL PROTECTED]] Sent: Friday, November 23, 2001 1:08 PM To: Tomcat Users List Subject: Re: Return Telnet result in Jsp how? You should use a legacy system driver to do this. one example would be BlackSmith at Celcorp, they have a Java interface for it, good for me (VT100, IBM 3725) On Fri, 23 Nov 2001, Miao, Franco CAWS:EX wrote: Hi there, I got a project need to do with Jsp, which let user input their userID and password in Jsp, then Jsp talk to backend Telnet server, and return the login result in Jsp or Html format, further more it also can let user run more query command. Anyone can give me some idea for this? Thanks! Franco -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
freebsd 4.1.1 + JDK 1.1.8 + which tomcat version?
Hi, On a semi-dedicated freebsd 4.1.1 server I have installed jdk 1.1.8 which seems to be the last official port for freebsd. I am running apache and wish to install tomcat. Since I am running an older jdk version (1.1.8), I am a bit in doubt which tomcat version to go for. I would welcome any advice. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: HELP! Can't start up TC 4.0.1 on jdk 1.3.11_01 in Window 2K.
Thanks Ben. The cause in fact is the catalina home environment variable was not set. Strang enough, tc 4 runs on jdk 1.3.02 in Window 2K, without the catalina home environment variable, using the tomat home instead. I guess once the catalina environment variable is set, the tomcat home environment variable is not needed any more. Thanks. Vernon 11/23/2001 2:43:45 PM, ben [EMAIL PROTECTED] wrote: vernon, sounds like you havent configured the path for jdk1.3.1_01 yet. thats about the only thing that i could imagine..if you have configured the path for both tomcat and jdk1.3.1_01 with : set JAVA_HOME= c:\jdk1.3.1_01..(for instance) - Original Message - From: Vernon Wu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 23, 2001 1:36 PM Subject: HELP! Can't start up TC 4.0.1 on jdk 1.3.11_01 in Window 2K. Due to some problems on running TC 4.0.1, I get a suggestion from the Sun support to use the new jdk 1.3.1_01. Now, I can't start up the TC. After I issue the startup command, an exception occurs. I am unable to see what the exception is. The catalina window only stays for a very few seconds. Do anyone know how to handle this problem. Thanks in advance. Vernon -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: URL for JavaBean tutorial
try http://java.sun.com/docs/books/tutorial/ I hope you will find something usefull. regards, [EMAIL PROTECTED] -Original Message- From: Law Kim Soon [mailto:[EMAIL PROTECTED]] Sent: 24. nóvember 2001 15:22 To: [EMAIL PROTECTED] Subject: URL for JavaBean tutorial Hi all, I'm looking for tutorial sites that can help me to write beans for my application.Thanks -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP Someone just told me that when you close your browser, your JSP session (login in this case) is not ended, so that if you start up another browser and go to your site, the JSP engine still thinks your logged on. Is this true? If so, how to end that session before shutting down the browser? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=550560 I'm quite new to XML and JSP so here goes. I want to pass an XML message to a jsp via the URL (i.e. GET method). My questions: 1) What will the actual URL end up looking like? 2) How can my jsp retrieve the XML? (I know how to retrieve XML from a file in the jsp, but don't know how to retrieve the XML from the URL). A quick example would be greatly appreciated. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=550558 What are the differences between JSP 1.1 and JSP 1.2? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=550555 Can my JSP application validate users against an LDAP server which contains the userid's and passwords for all the employees? If so, how can I connect with the LDAP server and perform this authentication? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=550549 ++ Servlets FAQ: http://www.jguru.com/faq/Servlets How to get the values of the variables in a different session? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=559280 ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat How to run Tomcat as a background service from a telnet session? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=556838 Tomcat + Apache + Cocoon Performance bottleneckp How to find out the bottleneck is on Apache or tomcat or Cocoon? What can we do to improve the performance? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=552095 DTD for Tomcat 4.0.1 Does anyone know where I can obtain the DTD for Tomcat 4.0.1's server.xml ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=552077 Different webapps using different log4j.properties file. p http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=550391 You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: can't redirect default logging
This stuff sends anything written to System.out or System.err to the catalina.out file. Right now, this destination is not configurable, so you'll just need to modify catalina.sh to change where it goes. Craig On Wed, 21 Nov 2001, Updike, Clark wrote: Date: Wed, 21 Nov 2001 17:54:52 -0500 From: Updike, Clark [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: can't redirect default logging I'm trying to configure all Tomcat 4 logging to go to a particular location on our unix server. I did not give Tomcat write permissions to $CATALINA_HOME thinking that none would be required if I reset all logging directories in server.xml to the writeable location I specified. But when I run Tomcat, I get the following error: touch: 0652-046 Cannot create /usr/jakarta-tomcat-4.0/logs/catalina.out. The file access permissions do not allow the specified action. /usr/jakarta-tomcat-4.0/bin/catalina.sh[204]: /usr/jakarta-tomcat-4.0/logs/catalina.out: 0403-005 Cannot create the spec ified file. Inside catalina.sh, around line 204, I see the following (### comments are mine): CODE: elif [ $1 = start ] ; then ### if you are starting Tomcat shift touch $CATALINA_BASE/logs/catalina.out ### WHY??? I don't want to log there!!! snip... org.apache.catalina.startup.Bootstrap $@ start \ $CATALINA_BASE/logs/catalina.out 21 ### error because can't create the file END CODE: Why does catalina.sh automatically log there even when you are trying to send all logging elsewhere? TIA, Clark -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: TC4, does it reuse / pool custom tags?
On 22 Nov 2001, Peter Mutsaers wrote: Date: 22 Nov 2001 15:00:41 +0100 From: Peter Mutsaers [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: TC4, does it reuse / pool custom tags? Hello, I was wondering if TC4 ever reuses instances of custom tags. It looks like I get a new instance each time. At the moment, it does not reuse custom tag instances. There is some work going on to improve the overall performance of the code generated for JSP pages, and this is one of the areas being investigated. -- Peter Mutsaers | Dübendorf| UNIX - Live free or die [EMAIL PROTECTED] | Switzerland | Sent via FreeBSD 4.4-stable Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: jsp:directive.include directove does not work...
It's not clear from your test case, but is the *entire* page written in the XML syntax, including the outermost jsp:root element? This is required for Tomcat to recognize *anything* in XML syntax -- because that is the way the JSP Specification requires things to work. Craig On Fri, 23 Nov 2001, Coetmeur, Alain wrote: Date: Fri, 23 Nov 2001 19:17:37 +0100 From: Coetmeur, Alain [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: jsp:directive.include directove does not work... I have migrated some jsp from Inprise App Server to tomcat 4.0 (catalina) with jboss sthod static include directives were not recognised jsp:directive.include file=inc_header.jsp / the %@ include file=... % works well anyway... Is it a bug ? if true, it should be corrected and sent to the dev team? who should I contact... who 5.1.3 The jsp:directive.include element The jsp:directive.include element is used to substitute text and/or code at JSP page translation-time. This element can appear anywhere within a JSP document. Its syntax is: jsp:directive.include file=relativeURLspec flush=true|false / The interpretation of a jsp:directive.include element is as in Section 2.10.3. jsp1.1 spec say: The include Directive In the XML document corresponding to JSP pages, the include directive is represented using the syntax: jsp:directive.include file= relativeURLspec flush=true|false / Examples Below are two examples, one in JSP syntax, the other using XML syntax: %@ include file=copyright.hmtl % jsp:directive.include file=htmldocs/logo.html / jsp1.2 say: 5.1.3 The jsp:directive.include element The jsp:directive.include element is used to substitute text and/or code at JSP page translation-time. This element can appear anywhere within a JSP document. Its syntax is: jsp:directive.include file=relativeURLspec flush=true|false / The interpretation of a jsp:directive.include element is as in Section 2.10.3. -- Alain Coetmeur -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: freebsd 4.1.1 + JDK 1.1.8 + which tomcat version?
On Sun, 25 Nov 2001, Jamesbond wrote: Date: Sun, 25 Nov 2001 03:23:11 +0100 From: Jamesbond [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: freebsd 4.1.1 + JDK 1.1.8 + which tomcat version? Hi, On a semi-dedicated freebsd 4.1.1 server I have installed jdk 1.1.8 which seems to be the last official port for freebsd. I am running apache and wish to install tomcat. Since I am running an older jdk version (1.1.8), I am a bit in doubt which tomcat version to go for. I would welcome any advice. You aren't going to be able to run Tomcat 4 on this, because it requires a Java2 (JDK 1.2 or later platform). Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Problem with tomcat and xalan
Hi all, I get the next message with : trasform.tras(streamsource, streamresult); Someone knows what i can fix this. I added grant permissions to modifythreadgruop in catalina.policy but ths still. Or I should change xerces version or something. Thanks access denied (java.lang.RuntimePermission modifyThreadGroup); Line#: 1; Column#: -1 javax.xml.transform.TransformerException: access denied (java.lang.RuntimePermission modifyThreadGroup) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:667) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1147) at BusquedaServlet.doPost(BusquedaServlet.java:84) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:254) at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:198) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:177) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:255) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:882) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:225) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:882) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2227) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:229) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:882) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:162) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:882) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:875) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:952) at java.lang.Thread.run(Thread.java:484) ANAHI AVALOS RUBIO From: Göran Byström [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: JDBC-jsp examples Where? (and or JdbcOdbc ) Date: Sat, 24 Nov 2001 00:10:42 +0100 Hello, Try this, for a pretty good tutor.. http://www.devshed.com/Server_Side/Java/JSP/JSP5/page1.html regards, göran. At 13:20 2001-11-23 -0700, you wrote: Does anyone have some simple pages I can steal the code from or know of a location where I can find some source? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: the classloader doesn't like XML in TC 3.2.3 and TC 4.0
More on... http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/msg37534.html I am having the same problem when trying to use xalan within tomcat 4.0.1 Xalan includes a xerces.jar file which I copied to $CATALINA_HOME/webapps/mywebapp/WEB-INF/lib ... 1 - If placing crimson.jar and jaxp.jar files in the above directory is the solution, where can I get those versions? 2 - It seems that jasper in tomcat 4.0.1 is using xerces.jar instead of crimson.jar , am I right ? 3 - I hope somebody in this beautiful world will sometime write an article or book on conflicting issues between xml parsers when using tomcat. Just kidding. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Two instance servlet during startup
Hi ! I am load servlet on startup. servlet servlet-nameMailingListServlet/servlet-name servlet-classservlets.MailingListServlet/servlet-class init-param param-nameperiod/param-name param-value20/param-value /init-param load-on-startup/load-on-startup /servlet But tomcat load two instance this servlet !!! In what there can be a problem ? I am using Windows 2000 + Java 1.3 + Tomcat 4.0.1. P.S. Tomcat start two instance of any servlets with startup.
RE: SSL Problems with Tomcat 4.0.1 on Linux with Sun and IBM Jvms
Hi, it's me again. I just solved my LinkageError problem by remoing an old jar file that contained some previous obscure version of an XML parser. So there were TWO XML Parsers on my classpath, which is not a good idea and caused the crash. It probably is the same pattern with your URL LinakgeError problem and all I can say now is : check your jars twice for duplicated classes. -Original Message- From: robin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 20, 2001 10:10 To: Tomcat Users List Subject: SSL Problems with Tomcat 4.0.1 on Linux with Sun and IBM Jvms Hi, Thanks to a replyI received yesterday, I managed to get tomcat 4.0.1 working with IBM JDK 1.3. I then followed the tomcat ssl howto literally, keeping the keystore in the standard place with the standard password. The server won't start properly under the IBM JDM 1.3.0 - I get: Apache Tomcat/4.0.1 Catalina.start: LifecycleException: start: : java.lang.LinkageError: Class java/net/URL violates loader constraints LifecycleException: start: : java.lang.LinkageError: Class java/net/URL violates loader constraints Under the Sun JDK 1.2.2, the server starts ok and works fine on port 8080. On port 8443 with the https:// protocol prefix, Internet explorer shows a padlock, and just never finishes loading the page. Netscape produces an error box saying, Netscape and this server cannot communicate securely because they have no common encryption algorithm(s) The platform in Linux 2.2-12 on a pentium III. I'm left with the feeling that I'm missing something really obvious. Can anyone offer me any advise? Thanks. -Robin Barooah -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: freebsd 4.1.1 + JDK 1.1.8 + which tomcat version?
On Sun, Nov 25, 2001 at 03:23:11AM +0100, Jamesbond wrote: Since I am running an older jdk version (1.1.8), I am a bit in doubt which tomcat version to go for. I think Tomcat 3.3 has maintained 1.1 compatibility. --Jeff -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Emulating JServ's session.topleveldomain with Catalina
Craig R. McClanahan [EMAIL PROTECTED] writes: On Wed, 21 Nov 2001, Daniel Rall wrote: Using Tomcat 4.0.1, is there any way to emulate JServ's session.topleveldomain context configuration? # Set the domain= header that gets sent with the cookie. This is # entirely optional # Default: null # this is needed when we vhost to avoid multiple login session.topleveldomain=.foo.com I would like all requests to the set of virtual hosts represented by the glob *.foo.com to share the same session ID. Unfortunately, implementing this functionality would violate the Servlet spec's requirements about sessions being scoped to a single ServletContext. Even if you were willing to do this, you're going to run into lots of technical problems due to the fact that each webapp is loaded by it's own classloader -- trying to access a session attribute loaded from a different webapp will throw ClassNotFoundException errors at you. I wasn't clear enough in my original query -- I don't want to scope one session to multiple contexts, but to a single context accessed by multiple host names which correspond to the same physical host (the default host in server.xml). So, if the DNS for both baz.foo.com and bar.foo.com resolves to the same IP, a request to /myapp for baz.foo.com will create a session with a JSESSIONID cookie domain of .foo.com, allowing requests to bar.foo.com (or any other DNS mappings) to /myapp servlet context to share the same HttpSession. I took a stab at implementing this as a Valve, with some success. My original thought was to groom the JSESSIONID cookies in the request and response -- however, they never seem to show up (i.e. I never have any cookies available from HttpRequest::getCookies() or HttpResponse::getCookies()). Perhaps I just attached the Valve at the wrong spot (in the config file)? Because I haven't been able to access the JSESSIONID cookies, I end up getting a two cookies written on the original request, one for the first host requested (baz.foo.com), and another from my Valve for .foo.com (also from the first request). I get the desired result from this (unfortunately with an extra cookie set for baz.foo.com), but am curious why I those JSESSIONID cookies haven't turned up. Any comments would be appreciated. Dan /* * $Header: $ * $Revision: $ * $Date: $ * * * * The Apache Software License, Version 1.1 * * Copyright (c) 1999 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright *notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright *notice, this list of conditions and the following disclaimer in *the documentation and/or other materials provided with the *distribution. * * 3. The end-user documentation included with the redistribution, if *any, must include the following acknowlegement: * This product includes software developed by the *Apache Software Foundation (http://www.apache.org/). *Alternately, this acknowlegement may appear in the software itself, *if and wherever such third-party acknowlegements normally appear. * * 4. The names The Jakarta Project, Tomcat, and Apache Software *Foundation must not be used to endorse or promote products derived *from this software without prior written permission. For written *permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called Apache *nor may Apache appear in their names without prior written *permission of the Apache Group. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * http://www.apache.org/. * */ package