DNS resolve issue?
Hello everyone, I have an interesting problem that I figure has come up many times before. The list archives seem to be down at the moment so I'm going to post it here. Forgive me if this has been answered previously. From my local W2K machine, I can ping webserver. I can also ping blah.webserver.company.firm In addition, I can get to a .html file using http://webserver:8080/project/jsp/myJsp.jsp or using http://region.webserver.company.firm:8080/project/jsp/myJsp.jsp Now, here comes the problem. http://webserver:8080/project/servlet/project.servlet.Login works http://region.webserver.company.firm:8080/project/servlet/project.servlet.Login does not work Since I can ping and hit JSP pages with both hostnames and fully qualified hostnames, it seems like an issue with configuring servlets in Tomcat. Perhaps Tomcat resolves the non-working example internally such that webserver becomes the fully qualified hostname and then reads like http://region.region.webserver.company.firm .company.firm:8080/project/servlet/project.servlet.Login In any event, the error is that the page cannot be found when I use fully qualified hostnames with Servlets. Has anyone else ran into this? If so, I'd greatly appreciate any help you could offer. Thanks! __ Joseph Chandler Software Engineer Franke Holding USA 305 Tech Park Drive La Vergne, TN 37086 USA Switchboard: +1-615-287-8243 Fax: +1-615-287-8343 mailto:[EMAIL PROTECTED] http://www.franke.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
DNS resolve issue? (Updated)
Oh, I should have also pointed out that my servlet classes such as project.servlet.Login are located in the project/WEB-INF/project/servlet/login directory and not in project/servlet Thanks! __ Joseph Chandler Software Engineer Franke Holding USA 305 Tech Park Drive La Vergne, TN 37086 USA Switchboard: +1-615-287-8243 Fax: +1-615-287-8343 mailto:[EMAIL PROTECTED] http://www.franke.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Frustrated
. /WEB-INF/lib/ - This directory contains JAR files that contain Java class files (and associated resources) required for your application, such as third party class libraries or JDBC drivers. When you install an application into Tomcat (or any other 2.2/2.3-compatible server), the classes in the WEB-INF/classes/ directory, as well as all classes in JAR files found in the WEB-INF/lib/ directory, are made visible to other classes within your particular web application. Thus, if you include all of the required library classes in one of these places (be sure to check licenses for redistribution rights for any third party libraries you utilize), you will simplify the installation of your web application -- no adjustment to the system class path (or installation of global library files in your server) will be necessary. Much of this information was extracted from Chapter 9 of the Servlet API Specification, version 2.3, which you should consult for more details. __ Joseph Chandler Software Engineer Franke Holding USA 305 Tech Park Drive La Vergne, TN 37086 USA Switchboard: +1-615-287-8243 Fax: +1-615-287-8343 mailto:[EMAIL PROTECTED] http://www.franke.com Gary Weinfurther To: [EMAIL PROTECTED] gary@keysoftinc cc: .comSubject: Frustrated 02/18/2002 01:44 PM Please respond to Tomcat Users List I'm trying to install Tomcat 4.0.1 with IIS 5.0. I have been in the computer biz for decades, but I have never come across a piece of software so complicated and frustrating as Tomcat. I have the example apps working, and I've been able to get the manager app working, but I am at a complete loss as to how to get one of my own apps working. I've tried installing my app under ROOT, under webapp, and I've tried installing it using the manager app. None of these seems to work. I'm trying to install the ora application from the O'Reilly book Java Server Pages. I can install it using the manager app, but it refuses to start. It will show up when I issue the list command, but it is not running. When I issue the start command, I get: FAIL - Application at context path /ora could not be started FAIL - Encountered exception java.lang.IllegalStateException: standardHost.start /ora: LifecycleException: Container 1. Where should I be putting this application? 2. How can I start it? --- ...Gary [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles
reloadable=true in 4.01
Hi guys, After looking at the examples context in server.xml and reading this, I have tried the following config. Context path=/myApp docBase=myApp debug=0 privileged=true reloadable=true / This is supposed to reload a servlet if the file has changed. Currently, the page never loads when I change the class file after Tomcat has started and loaded the first version of the class. When I first tried to get this going a week ago or so, I got a null pointer exception. Although, I don't have the actual exception to paste at this time unfortunately. This is with Tomcat 4.01. Does anyone have this working? I did not see this question in the archives of this mailing list so I assume it works for most people since this is probably the first thing anyone does when setting up Tomcat during the development phase. :-) Thanks, __ Joseph Chandler Software Engineer Franke Holding USA 305 Tech Park Drive La Vergne, TN 37086 USA Switchboard: +1-615-287-8243 Fax: +1-615-287-8343 mailto:[EMAIL PROTECTED] http://www.franke.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
reloadable=true exception is
Here is the exception. At first, I thought it might be due to the 1.4beta3 class file bytecode or something. However, a recompile under 1.3.1_01 yeilded the same result. The exception is not thrown to the page, but to standard output on the server. Hope this helps. Thanks again. Starting service Tomcat-Apache Apache Tomcat/4.0.1 WebappClassLoader: Resource '/WEB-INF/classes/pbs/servlet/www/PartsPictureInfo Servlet.class' was modified; Date is now: Fri Jan 04 10:30:06 CST 2002 Was: Fri Jan 04 10:28:08 CST 2002 WebappClassLoader: Resource '/WEB-INF/classes/pbs/servlet/www/PartsPictureInfo Servlet.class' was modified; Date is now: Fri Jan 04 10:31:37 CST 2002 Was: Fri Jan 04 10:30:06 CST 2002 java.lang.ClassFormatError: pbs/servlet/www/PartsPictureInfoServlet (Extra bytes at the end of the class file) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:493) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11 1) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp ClassLoader.java:1534) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa der.java:852) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1273) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1156) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:80 1) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex t.java:3267) at org.apache.catalina.core.StandardContext.reload(StandardContext.java: 2480) at org.apache.catalina.loader.WebappContextNotifier.run(WebappLoader.jav a:1315) at java.lang.Thread.run(Thread.java:484) __ Joseph Chandler Software Engineer Franke Holding USA 305 Tech Park Drive La Vergne, TN 37086 USA Switchboard: +1-615-287-8243 Fax: +1-615-287-8343 mailto:[EMAIL PROTECTED] http://www.franke.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Drive Mapping with drive letters
That fixed it :) If you are ever in Tennessee, I'm going to have to buy you a cold one. Thanks! __ Joseph Chandler Software Engineer Franke Holding USA 305 Tech Park Drive La Vergne, TN 37086 USA Switchboard: +1-615-287-8243 Fax: +1-615-287-8343 mailto:[EMAIL PROTECTED] http://www.franke.com Craig R. McClanahan To: Tomcat Users List [EMAIL PROTECTED] craigmcc@apacc: che.org Subject: Re: Drive Mapping with drive letters 01/03/2002 01:29 PM Please respond to Tomcat Users List On Thu, 3 Jan 2002 [EMAIL PROTECTED] wrote: Date: Thu, 3 Jan 2002 13:15:15 -0600 From: [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Drive Mapping with drive letters Hi, I am using Tomcat 4.01 standalone on a win2000 box and need to map a network drive as a context so that I can see the stuff with relative paths. Can I do something like the tag below? The doc has lots of examples but none that deal with drive letters (probably since it's a win32 only thing). Context path=F:/myapp/pics docBase=pictures debug=0 privileged =true / Could someone correct this or point me to some documentation that I may have overlooked? Try turning things around a little, and you will do better: Context path=/pictures docBase=F:/myapp/pics ... / The path attribute is the context path of the webapp (so its contents would be vislble via URLs like http://localhost:8080/pictures/foo.gif;), while the docBase attribute is the relative or absolute pathname to the base directory for this web application. See the Server Configuration Reference documentation included with Tomcat for more details on all the server.xml settings. It's also available online: http://jakarta.apache.org/tomcat/tomcat-4.0-docs/config/ Joseph Chandler Craig McClanahan -- 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]