Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
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
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
Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
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
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
-none-

-none-

2007-09-03       - By Tom?s Tormo

 Back
Hi

 I'm quite noob about tomcat topic. I'm using tomcat 5.028 in Ubuntu
6.10 and I would like to find an anwer to my question about web services
because i'm not able to solve it. I've written a java applicattion wich
uses a wrapper to communicate with an applicattion written in C, wich is
the "core" of my applicattion. Both the wrapper and the core are third
party applicattions, and because of that i don't have the source code, I
just have the API.

The third party sent me an example application wich uses the core. And,
as I could see in the script wich lauches the application, this folder
should be added to the classpath in order to be able to be located by
the wrapper applicattion. The documentation of the wrapper just says
that this folder has to exist with an specific name.

My problem is that my applicattion works fine launched from shell (it
founds the folder and uses the core perfectly) but it doesn't work as a
webservice. It is not able to find the resource folder (let's call it
"cfg"). As I can see in the catalina log, the application tries to load
the resources (via ClassLoader I guess) and then launches an exception
saying that is not able to find it. The client  gets a HTTPErrorCode0.

I've tried a lot of ways to solve it: I tried to launch tomcat with the
classpath modified from the shell itself(making it point to the folder),
tried to export the classpath from startup.sh script, tried to export
the classpath from catalina.sh script, tried to modify the CATALINA_OPTS
variable, tried to put the folder in both lib and classes folders of the
webservice folder... but nothing worked.

Please.. could you help me to solve this problem? I think I've tried all
the options that came to my mind (except declaring a resource in
server.xml file, altought I don't know If this wrapper uses JNDI to
access to the resource..).I hope I explained myself well.  As I think
you can see, I'm quite noob with tomcat, so please don't be so hard with
your answers... :'-p

Thank you very much!

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.