Web App authentication
Hi, Is it possible to have a web app that uses both FORM and BASIC authentication or can only 1 be used ? Thanks Matt _ On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
MIME Types
Hi, Does anyone know the mime type for WAR files. I foud somewhere on the web that JAR files have a mime type of application/java-archive but cant find any info on WAR files. Thanks. Matt _ It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
isErrorPage=true NOT WORKING?
Hi, I have a web app inside which I have an errorPage.jsp file. My web.xml file defines: error-page exception-typejava.lang.Throwable/exception-type locationerrorPage.jsp/location /error-page And my errorPage.jsp is as follows: %@ page isErrorPage=true % %@ import=java.io.*;% html link rel=STYLESHEET type=text/css href=styles/common.css / headtitleTOKENS Offline Order Error/title/head body pfont class=TitleFontError/font/p pfont class=TextFontAn error occurred performing the last operation./font/p pfont class=TextFontPlease press the back button and try again. Alternatively contact the System Administrator./font/p textarea rows=15 cols=80%exception.printStackTrace(new java.io.PrintWriter(out, true));%/textarea /body /html However when I encounter a java.io.FileNotFoundException: c:\solttma\orders\administrator.21-Jul-03.txt (The system cannot find the path specified) exception I get the old tomcat error page and not the error page I created? Any ideas? Thanks Matt _ Express yourself with cool emoticons - download MSN Messenger today! http://www.msn.co.uk/messenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: isErrorPage=true NOT WORKING?
BTW the exception is being thrown from a method inside a servlet as follows: public synchronized void writeOrder(HttpServletRequest request) throws IOException { Date d = new Date(); DateFormat df = DateFormat.getDateInstance(); String fileName = (request.getRemoteUser() + . + df.format(d)); //Create FileWriter for append. FileWriter fw = new FileWriter(ordersDir + System.getProperty(file.separator) + fileName + .txt, true); PrintWriter pw = new PrintWriter(fw); pw.println(orderString(request)); //Close the file. fw.close(); } From: Matthew Oatham [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: isErrorPage=true NOT WORKING? Date: Mon, 21 Jul 2003 17:04:57 +0100 Hi, I have a web app inside which I have an errorPage.jsp file. My web.xml file defines: error-page exception-typejava.lang.Throwable/exception-type locationerrorPage.jsp/location /error-page And my errorPage.jsp is as follows: %@ page isErrorPage=true % %@ import=java.io.*;% html link rel=STYLESHEET type=text/css href=styles/common.css / headtitleTOKENS Offline Order Error/title/head body pfont class=TitleFontError/font/p pfont class=TextFontAn error occurred performing the last operation./font/p pfont class=TextFontPlease press the back button and try again. Alternatively contact the System Administrator./font/p exception.printStackTrace(new java.io.PrintWriter(out, true));% /body /html However when I encounter a java.io.FileNotFoundException: c:\solttma\orders\administrator.21-Jul-03.txt (The system cannot find the path specified) exception I get the old tomcat error page and not the error page I created? Any ideas? Thanks Matt _ Express yourself with cool emoticons - download MSN Messenger today! http://www.msn.co.uk/messenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of 56k? Get a FREE BT Broadband connection http://www.msn.co.uk/specials/btbroadband - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Keep generated jsp - servlet
Oh yes I remember now! I asked this question here as I am running Jboss and Tomcat. When run with Jboss Tomcat doesn't keep the generated servlet src in the same way! Does anyone know how to achive this in jboss? Thanks Matt. - Original Message - From: John Turner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 2:12 PM Subject: Re: Keep generated jsp - servlet All of the Java source for compiled JSPs is kept in Tomcat's work directory, by virtual host name, then by JSP name. Run the JSP once, then look in the work directory to see the Java source. It will stay there until either the JSP source changes, or Tomcat is restarted and the work directory is cleared. John On Tue, 25 Mar 2003 14:12:01 -, Matthew Oatham [EMAIL PROTECTED] wrote: Hi, Is there an option I can set to keep the java src generated from the runtime compilation of jsp's. I want to compare these with those that jspc produce when pre compiling. When running some pre complied jsp's (CLASS files) I get the error: # HotSpot Virtual Machine Error, Internal Error # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Error ID: 52454C4F4341544F520E43505001E4 # # Problematic Thread: prio=5 tid=0xb116960 nid=0x86c runnable If anyone knows a solution to either problems I would be more than greatful! Thanks. matt -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - 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]
jspc and index.jsp
Hi, I have managed to pre-compile my jsp's down to class files and put them in web-inf/classes. I have this entry in web.xml welcome-file-list welcome-fileindex.jsp/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.html/welcome-file /welcome-file-list I have the servlet WEB-INF/classes/index.class I have the mapping: servlet servlet-nameindex/servlet-name servlet-classindex/servlet-class /servlet servlet-mapping servlet-nameindex/servlet-name url-pattern/index.jsp/url-pattern /servlet-mapping when I hit my application instead of seeing the contents of index.jsp I get a directory listing of the location where index.jsp should be but isn't because it is now a class in web-inf/classes. Any ideas? Thanks. Matt.
Keep generated jsp - servlet
Hi, Is there an option I can set to keep the java src generated from the runtime compilation of jsp's. I want to compare these with those that jspc produce when pre compiling. When running some pre complied jsp's (CLASS files) I get the error: # HotSpot Virtual Machine Error, Internal Error # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Error ID: 52454C4F4341544F520E43505001E4 # # Problematic Thread: prio=5 tid=0xb116960 nid=0x86c runnable If anyone knows a solution to either problems I would be more than greatful! Thanks. matt
Re: jspc and index.jsp
Arrrgg! Also when I have .. frame name=topFrame scrolling=0 src=jsp/index.jsp NORESIZE With the mapping servlet servlet-namejsp.index/servlet-name servlet-classjsp.index/servlet-class /servlet servlet-mapping servlet-namejsp.index/servlet-name url-patternjsp/index.jsp/url-pattern /servlet-mapping I don't get to see jsp/indesx.jsp instead I get a directory listing! I also changed the above to servlet-mapping servlet-namejsp.index/servlet-name url-pattern/jsp/index.jsp/url-pattern /servlet-mapping and frame name=topFrame scrolling=0 src=/jsp/index.jsp NORESIZE Still no luck! Is this something to with the uriroot or uribase attributes at compile time! Do I need to be setting these! Thanks. Matt - Original Message - From: Lee Peik Feng [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 10:29 AM Subject: Re: jspc and index.jsp If not mistaken, Files that you set under welcome-file-list must be physically exist. else, you need to type http://localhost:8080/your-webapp/index.jsp as this is what we set in servlet-mapping servlet-mapping servlet-nameindex/servlet-name url-pattern/index.jsp/url-pattern /servlet-mapping another workaround would be create a dummy index.html file that has the below code meta http-equiv=refresh content=0; url=index.jsp - Original Message - From: Matthew Oatham [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 6:15 PM Subject: jspc and index.jsp Hi, I have managed to pre-compile my jsp's down to class files and put them in web-inf/classes. I have this entry in web.xml welcome-file-list welcome-fileindex.jsp/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.html/welcome-file /welcome-file-list I have the servlet WEB-INF/classes/index.class I have the mapping: servlet servlet-nameindex/servlet-name servlet-classindex/servlet-class /servlet servlet-mapping servlet-nameindex/servlet-name url-pattern/index.jsp/url-pattern /servlet-mapping when I hit my application instead of seeing the contents of index.jsp I get a directory listing of the location where index.jsp should be but isn't because it is now a class in web-inf/classes. Any ideas? Thanks. Matt. - 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]
jspC
Hi, I am trying to run the jspc command and am experiencing some problems! I get errors about classes not being found, is there any way to reference classes from the CLASSPATH in the jspc task or do I have to put all the class files needed by the web app in the WEB-INF/classes / WEB-INF/lib directories? Thanks. Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTP 500-Internal Server Error
Is LoginServlet.class in WEB-INF/classes ? Does LoginServlet.class import any helper classes from third party aplications? If so are these JAR files in WEB-INF/lib ? If you are using the specified context is your application under the dir webapps/Test ? Are you accessing the servlet on http://domain:port/Test/LoginServlet ? Not sure if any of this will help but younever know!!! Matt. - Original Message - From: pcampaigne [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 4:13 PM Subject: Re: HTTP 500-Internal Server Error Hi, I found some more information about my problem, the root cause is ClassNotFoundException: com.op.test.LoginServlet but I have the web.xml entry shown below, and also the following context entry in server.xml !-- Test Context -- Context path=/Test docBase=Test debug=100 privileged=true/ I don't get it?? Phil - Original Message - From: pcampaigne [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 6:59 AM Subject: HTTP 500-Internal Server Error Hi, I'm trying to setup database access with a simple test application using tomcat 4.0.6. When my servlet gets executed I get the 500 browser error, Wrapper cannot find servlet class com.op.test.LoginServlet or a class it depends on 1. Does anyone know why? 2. Is there any way to get more useful error messages? Thanks, Phil Campaigne I have the following entry in my web.xml file to address this: serlvet servlet-nameLoginServlet/servlet-name display-nameLoginServlet/display-name servlet-classcom.op.test.LoginServlet/servlet-class init-param-namedebug/param-name param-value2/param-value init-param /servlet servlet-mapping servlet-nameLoginServlet/servlet-name url-patternLoginServlet/url-pattern /servlet-mapping - 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]
JspC
Hi, I have managed to run the jsp compiler jspc.bat against a bunch of jsp files. This produced a load of java servlet code that I now need to compile with javac - correct? However when I compile these source files generated from jspc I get the following error: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable) if (pageContext != null) pageContext.handlePageException(t); ^ Has anyone come across this before? Is there anything I can do to solve the problem? Whilst on the same note: These jsps where stored in two directories i.e. / /secure but when I run jspc the out put is in one directory i.e. / - is this correct? What do I need to do to the web.xml file to deploy these compiled jsp' ? What happens when a jsp has the following or similar ... jsp:include page=/secure/commonDisplay.jsp/ the file /secure/commonDisplay.jsp doesn't really exist in that form, now it is a class file, and as I said above resides in / do I need to change the jsp:include / tag on every jsp page or can I add some kind of alias in web.xml to map /secure/commonDisplay.jsp to the class file produced in / Hope this makes sense. Your help is most appreciated. Regards. Matt
JspC
Hi, I have managed to run the jsp compiler jspc.bat against a bunch of jsp files. This produced a load of java servlet code that I now need to compile with javac - correct? However when I compile these source files generated from jspc I get the following error: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable) if (pageContext != null) pageContext.handlePageException(t); ^ Has anyone come across this before? Is there anything I can do to solve the problem? Whilst on the same note: These jsps where stored in two directories i.e. / /secure but when I run jspc the out put is in one directory i.e. / - is this correct? What do I need to do to the web.xml file to deploy these compiled jsp' ? What happens when a jsp has the following or similar ... jsp:include page=/secure/commonDisplay.jsp/ the file /secure/commonDisplay.jsp doesn't really exist in that form, now it is a class file, and as I said above resides in / do I need to change the jsp:include / tag on every jsp page or can I add some kind of alias in web.xml to map /secure/commonDisplay.jsp to the class file produced in / Hope this makes sense. Your help is most appreciated. Regards. Matt
Default Web application
Hi, How do I get my web application to load from www.url.com instead of www.url.com/webApp is there an entry in the server.xml where I specify this, i.e. a directory path to webApp ?. I have searched the Tomcat documentation but I've had no luck and can't be sure I'm looking in the right place! Thanks. Matt. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
testing tomcat
Hi, I have tomcat up and running on Solaris. The only access I have to this machine is via Telnet. Is there any tools I can install on Solaris to test that Tomcat is running and able to server pages. I know I could use a browser and hit the URL but the machine is behind a NAT box so before I blame the IP address mapping I want to be sure that Tomcat is up and running on the IP address I told it to start on Hope that makes sense. Many thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Solaris 2.6
Hi, I have installed Tomcat 4.0.3 (jakarta-tomcat-4.0.3.tar.gz) on Solaris 2.6. When running shutdown.sh the following exception is thrown: Bootstrap: Class loader creation threw exception java.lang.NoClassDefFoundError: java/util/ArrayList at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(Compiled Code) at org.apache.catalina.startup.Bootstrap.main(Compiled Code) I believe the machine is running Java 1.3.1. Has anyone come across this problem before? Many thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Multiple IP addresses
Hi, I am running Tomcat on a machine with multiple IP addresses, how do I tell Tomcat which of these addresses it should be running on? Do I add the IP address to the connector tag in server.xml? i.e.: Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6 address=ip address/ Many thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Java version
Hi, I've downloaded Tomcat 4.0.3 for Solaris 2.6 but not sure it's starting up correctly, when I run shutdown.sh I get a Java exception. My first thought is the JVM version does anyone know which version Tomcat 4.0.3 needs? I'm using 1.1.3. Many thanks Matt. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Java version
Yea I've got 1.1.3 just read in RUNNING.txt that 1.2 at the least is required. Thanks. -Original Message- From: Heap, John [mailto:[EMAIL PROTECTED]] Sent: 13 June 2002 14:30 To: 'Tomcat Users List' Subject: RE: Java version do you mean jvm 1.1.3 or 1.3.1 ? if the former I suspect thats the problem. John. -Original Message- From: Matthew Oatham [mailto:[EMAIL PROTECTED]] Sent: 13 June 2002 14:34 To: '[EMAIL PROTECTED]' Subject: Java version Hi, I've downloaded Tomcat 4.0.3 for Solaris 2.6 but not sure it's starting up correctly, when I run shutdown.sh I get a Java exception. My first thought is the JVM version does anyone know which version Tomcat 4.0.3 needs? I'm using 1.1.3. Many thanks Matt. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Common Services Agency Disclaimer The information contained in this message may be confidential or legally privileged and is intended for the addressee only. If you have received this message in error or there are any problems please notify the originator immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. _ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
IP address mapping
Hi, Thanks for all your help so far but I'm afraid I'm going to annoy you all again! I am starting Tomcat on a machine with multiple IP addresses, I have added: Connector className=org.apache.catalina.connector.http.HttpConnector port=80 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6 address=172.16.54.180/ To server.xml however when starting up the following is written to the logs: 2002-06-13 16:55:25 HttpConnector Opening server socket on host IP address 172.16.54.180 2002-06-13 16:55:26 HttpConnector No host IP address matching 172.16.54.180, opening on all addresses Can anyone tell me what this means, does it simply mean I have the IP address wrong or does it mean I have done something else wrong, do I need to add config params elsewhere etc... Many thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat behind a NAT box
I am running Tomcat on a machine with multiple IP addresses, not only that but the machine is behind a NAT box each internal IP address has a 1:1 mapping with an external address. When I start tomcat I put the internal IP address I want the server to start on in server.xml e.g. Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6 address=INTERNAL IP ADDRESS/ However when I start Tomcat I get the following output in the logs: 2002-06-13 16:55:25 HttpConnector Opening server socket on host IP address 172.16.54.180 2002-06-13 16:55:26 HttpConnector No host IP address matching 172.16.54.180, opening on all addresses Has anyone tried this configuration? Does Tomcat do some kind of lookup on startup? Should I be using the internal or external IP address? Thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]