Tomcat and JWSDP

2002-04-03 Thread Lenhart Stefan

Hi everyone!

I'm trying to develop a small WebService example and therefore use Sun's
Java WebService Development Pack which has a Tomcat version 4.something
distribution included.

Packaging the service class into a war file is no problem, and on startup
Tomcat extracts the war archive to the appropriate subdirectory of webapps.
No problem so far. But when I'm trying to access the webapp in my browser
(http://localhost:8080/kredit) I get a 404 error message although I've got
an index.html file in the /kredit directory.

I checked the log file, and found that on startup this error occurs:

2002-04-03 09:58:25 ContextConfig[/kredit] Parse error in application
web.xml
java.lang.Exception: Can't open config file:
java.io.ByteArrayInputStream@2ae94f due to: java.io.UTFDataFormatException:
invalid byte 1 of 1-byte UTF-8 sequence (0xfc)
at
org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:282)
at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.ja
va:256)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:824)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
224)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:155)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3345)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:324)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:155)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)


Anybody had this problem before? Any ideas?

Thx in advance!


Mit freundlichen Gruessen

Stefan Lenhart

R. Boeker Consulting GmbH
Ein Unternehmen der R. Boeker Unternehmensgruppe AG
RBU AG Zweigniederlassung Frankfurt
Mergenthalerallee 77
D-65760 Eschborn

Tel.:+49 (61 96) 4 70-883
Fax.:+49 (61 96) 4 70-8 90
E-Mail:  mailto:[EMAIL PROTECTED]
Internet: http://www.rbu.de

Diese eMail enthält möglicherweise vertrauliche und/oder rechtlich
geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder
diese eMail irrtümlich erhalten haben, informieren Sie bitte sofort den
Absender und vernichten diese eMail. Das unerlaubte Kopieren sowie die
unbefugte Weitergabe dieser eMail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorised copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: Deployment Question

2002-04-03 Thread Lenhart Stefan

Hi Neo!

If you haven't set the unpackWars attribute of your host element in
server.xml to false, Tomcat should be extracting the archives automatically
on startup. Just copy the archive file to your webapps directory and TC will
create a subdirectory with the archive's name in the work directory as soon
as you restart.

Cheers
Stefan

 -Ursprüngliche Nachricht-
 Von:  Neo Gigs [SMTP:[EMAIL PROTECTED]]
 Gesendet am:  Mittwoch, 3. April 2002 10:54
 An:   Tomcat Users List
 Betreff:  Deployment Question
 
 Hi there,
 
 How does I can deploy a EAR, WAR or JAR file into Tomcat server? Does
 there have any deployment tools available like deploytool that can
 deploy applications into J2EE server?
 
 Thanks
 
 Neo

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Problems with resources

2002-03-08 Thread Lenhart Stefan

--- NOTE: Sorry if you recieved this mail earlier today, but I'm not sure
whether it has been sent at all... ---

 Hi everybody!
 
 I linked Tomcat 4.0.3 with Apache 1.3.23 using the webapp module. My
 webapp is running perfectly using Tomcat, i.e. using the url
 http://myserver:8080/app. When using Apache (http://myserver/app),
 I get to view the intro page and can follow links there. But I do not get
 to see images located in the app/images directory, even though the browser
 seems to be searching in the correct directory. 
 
 Do I have to do any special setup, e.g. in server.xml?
 
 Many thanks!
 
 Stefan

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]