Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
5.0.18: Windows XP Pro vs Windows 2000

5.0.18: Windows XP Pro vs Windows 2000

2004-01-24       - By Remy Maucherat

 Back
Reply:     1     2     3     4  

Merrill Cornish wrote:
> I have Windows XP Pro at home and Windows 2000 at work.  I run Tomcat on
> both of them, and I try to keep identical environments on both.  
> However,  it's not easy.
>
> Under 5.0.16, I would run it as a server on XP, but not 2000.  Under
> 5.0.18, I got it running as a server on 2000 immediately while XP took
> many installs, uninstalls, reboots and what not.  (I still don't know
> what I finally did to get it to work.)
>
> After getting 5.0.18 to run under XP, I tried launching my application.  
> Entering "http://localhost/timesheet" into the browser got a Page Not
> Found and did not resolve to "https://localhost/timesheet/login.jsp" as
> it should.  Examining the log showed that the
> "localhost-timesheet_log.txt" log file defined in the <Context> element
> for the timesheet application in server.xml didn't exist either.  Tomcat
> seemed to be ignoring my application and its context even when I tried
> using the same conf\server.xml and conf\web.xml files that had worked on
> Windows 2000.
>
> The stdout.logdid exist and showed that the various example contexts
> (servlet-examples, jsp-examples, balancer, etc.) had been initialized
> even though mine application hadn't.  There were no error messages.  
> Then I noticed that the samples didn't have a <Context> element in the
> server.xml file.  Instead, they had a *.xml file in their application
> directory with ONLY the <Context> element in it (i.e., not a well-formed
> XML file).
>
> When I made a copy of  my application's <Context> element shown below
> and put it in "...\webapps\timesheet\timesheet.xml" it worked.

No, it does not. .xml files in the Host appBase will be ignored. Don't
try to start relying right away on paranormal explanations right away ;)
I use XP, BTW.

> I've read the 5.0.18 release notes, the FAQ on the Jakarta website, and
> the tomcat-docs distributed with 5.0.18.  I can't find a reference to
> these fragment files except for the mention of "Context Descriptions"
> under Deployer.  However, those files are nested under the conf
> directory rather than under the application context.
>
> Why does 5.0.18 recognize my application's <Context> element in the
> server.xml file on Windows 2000 but will only recognize it in a
> timesheet.xml file in my application directory on Windows XP?  What is
> the value of having three possible locations for the same information?
> Where can I find it documented?

You need to put your Context elements in XML files next to the ones for
the manager and admin, and it will work ok.

--
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
R�my Maucherat
Senior Developer & Consultant
JBoss Group (Europe) S�RL
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)