Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Deploying WebPad as a webapp in tomcat

Reply
Thread Tools

Deploying WebPad as a webapp in tomcat

 
 
Keith Beef
Guest
Posts: n/a
 
      05-10-2007
Hello, all.

I have a bit of a problem with something I'm trying to do with Java,
Windows XP and Tomcat...

I'm using Tomcat to deploy Lucene as a search engine, and I also want to
deply a Sun application called WebPad (a sort of minimal text editor).

I've got Lucene working, Tomcat is working, but I can't get WebPad to work
with Tomcat. As a stand-alone Java application ti works fine, though.

I've been following the instructions that came with the download, viz:

set TOMCAT_HOME, JAVA_HOME, PATH and ANT_HOME to the correct values.

Go to the directory in the webpad directory that contains the build.xml
file and update the properties describing the path to the following files:
jnlp-servlet.jar
servlet.jar
jnlp.jar
xlan.jar
jh.jar

jar -cvf ../webpad.war .

This gives me the webpad.war file to be deployed.

Rename the webpad directory to webpad__build-dir (see below).

Now, when I start Tomcat, I expect the webpad.war file to be "expanded"
just as the lucene.war file was...

Indeed, this happens, creating a directory named webpad (which is why I
renamed the other directory after using Ant to build the .war file).

BUT...

In the DOS command prompt window, I see a lot of messages, complaining
about errors.

I see after lots of lines that begin:

at org.apache.catalina.startup.........

and

at org.apache.catalina.core........

these lines (verbatim):

Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> publish in servlet mapping
at org.apache.catalina.core.StandardContext.addServle tMapping(StandardContext.java:2385)
at org.apache.catalina.core.StandardContext.addServle tMapping(StandardContext.java:2361)
.... 46 more

Now I know that Tomcat is picky, and wants UNIX-style directory separators
even though this is being deployed on a Windows OS (i.e. / and not \).

So that was my first thought: that I'd somehow badly specified a path
somewhere. But I can't find it....

Has anybody run into similar problems, or is anybody able to shed some
light on the meaning of this error?

Any help would be gratefully appreciated.


Beef.


sorry to cross-post, but I've set an FU2 header...
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where to start with a webapp that is not really a webapp Andrew Java 7 06-28-2009 08:42 PM
What should I do webapp or webservice + webapp? jhooper71@yahoo.com ASP .Net 6 02-10-2006 02:07 PM
Tomcat question - running tomcat webapp from root Sean Berry Java 3 12-19-2005 07:19 PM
Problem of deploying webapp on IIS production server =?Utf-8?B?VG9t?= ASP .Net 0 06-24-2004 08:19 AM
deploying and re-deploying ASP.Net applications =?Utf-8?B?VG9tIE4=?= ASP .Net 2 02-04-2004 09:31 PM



Advertisments