Classpath setting

2001-05-22 Thread Manuel Melle Ocariz

Hi there,

does anybody know if it's possible to load an App's specific *.jar files  into the 
classpath before the %TOMCAT_HOME%\lib ones?

Thanks in advance,

Manuel.




Re: servlet deployment

2001-05-22 Thread Manuel Melle Ocariz

You have to create a web.xml file in your Web-inf folder. This file should lokk like 
this:

!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN 
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
web-app
servlet
servlet-nameHelloWorld/servlet-name
servlet-classdummy.HelloWorld/servlet-class
/servlet
servlet-mapping
servlet-nameHelloWorld/servlet-name
url-pattern/HelloWorld/*/url-pattern
/servlet-mapping
welcome-file-list
welcome-file
index.html
/welcome-file
/welcome-file-list
/web-app

As you can see, this file specifies the servlet name and maps it to an url pattern. In 
your html you just have to write i.e:

form action=HelloWorld

This should work.

Manuel Melle Ocáriz
Software AG - E-Business Competence Center
[EMAIL PROTECTED]





classpath

2001-05-22 Thread Manuel Melle Ocariz

Hi all,

I'm still having problems with classpath setting so I'll explain my particular case:

I have two apps that use different versions of xalan and xerces. In this jar files 
there is a javax.xml.parsers.SAXParser class. I'm trying to deploy them into Tomcat 
3.2.1 but when I try to run the one with the newest version I get the following 
message:

javax.xml.transform.TransformerConfigurationException: Namespace not supported by 
SAXParser at 
org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactor
yImpl.java:815)

I found out this was because in TOMCAT's jaxp.jar file there's an elder version of 
this SAXParser.class. So I thought the only way of solving this was loading different 
versions for each app and removing the one resident in %TOMCAT_HOME%\lib, but when I 
tryed to restart TOMCAT it didn't work. I guess this is becouse TOMCAT needs an XML 
parser to parse all xml-based configuration files, so I feel forced to chose from one 
of the two versions, for though you can specify new jars to add to the app's 
classpath, is the first one loaded the one used at runtime.

Any idea (appart from a new TOMCAT for each app)?

Thanks in adv

 

Manuel Melle Ocáriz
Software AG - E-Business Competence Center
[EMAIL PROTECTED]





Re: How do i unsubscribe!!

2001-04-25 Thread Manuel Melle Ocariz

try sending an e-mail to:

[EMAIL PROTECTED]

Manuel Melle Ocáriz
Software AG - E-Business Competence Center
[EMAIL PROTECTED]





Adding modules

2001-04-25 Thread Manuel Melle Ocariz

Hi there,

I m an Apache Web/Jserv user trying to migrate to Tomcat. I already have Tomcat 
running on my system, but I use a database that requires a special module to be loaded 
on the server. With Apache this was easy, I just had to add the following portion of 
code to the httpd.conf file:

LoadModule  ino_module modules/ApacheModuleIno.dll

If possible, what is the way of doing that in Tomcat?

Thanks and regards,

Manuel Melle Ocáriz
Software AG - E-Business Competence Center
[EMAIL PROTECTED]





Re: Adding modules

2001-04-25 Thread Manuel Melle Ocariz

Thanks Sam, I ve already tried that way and it works, maybe my question wasn't clear, 
sorry. I m trying to do it without Apache. Actually Tomcat doesn't need Apache for 
serving static content as HTML so why can't I also load my module without Apache?. 
Maybe I don't have concepts clear enough,

Thanks again,




Manuel Melle Ocáriz
Software AG - E-Business Competence Center
[EMAIL PROTECTED]





Re: Adding modules

2001-04-25 Thread Manuel Melle Ocariz

It's not a relational DB but an XML one. Configuring Apache in the right way (that is, 
loading the module) allows my application to query the DB via http in the way:

http://hostname:port/databaseType/databaseName?_query 

This would return an XML document. My question is if it is possible to tell Tomcat to 
manage this kind of requests with the appropriate module and without running Apache.

Thanks

Manuel Melle Ocáriz
Software AG - E-Business Competence Center
[EMAIL PROTECTED]





Re: Adding modules

2001-04-25 Thread Manuel Melle Ocariz

Thanks Sam

Manuel Melle Ocáriz
Software AG - E-Business Competence Center
[EMAIL PROTECTED]





RE: Adding modules

2001-04-25 Thread Manuel Melle Ocariz

Thanks all of you

Manuel Melle Ocáriz
Software AG - E-Business Competence Center
[EMAIL PROTECTED]