Using older Xerces JAR

2003-04-03 Thread bahbahbooie
I have an XML parsing application that was working fine using Tomcat 3.2.4 
in-process with Apache.
The app. consists of a servlet that receives XML data, parses it and then 
generates an XML response.
I had Xerces version 1.4.4 specified in the in-process classpath in 
workers.properties.

I have moved to Tomcat 4.1.24 out-of-process and my XML parsing app. no 
longer works.
I get a VerifyError each time I try to use the 
setErrorHandler(org.xml.sax.ErrorHandler) method.

I have the same Xerces 1.4.4 JAR file in my webapp/WEB-INF/lib directory 
but I'm not sure if it is being loaded.

I am using JSDK 1.3.

I am stumped by this VerifyError so any help is *greatly* appreciated.

Thanks. 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Using older Xerces JAR

2003-04-03 Thread bahbahbooie
I see that Tomcat has it's own Xerces JAR files (xercesImpl.jar and 
xmlParserAPIs.jar) in the $CATALINA_HOME/common/endorsed directory.
It does not seem like a good idea to *replace* those files with my own.
The documentation at 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
says:
xerces.jar - The XML parser that is visible by default to Tomcat internal 
classes and to web applications. This can be overridden, for a particular 
web application, by including your desired parser in /WEB-INF/lib.

I am trying to use my old xerces.jar file in webapp/WEB-INF/lib but it 
does not get loaded.  It looks like the classes in common/endorsed are used.
The XMLParser class is in the org.apache.xerces.parsers in the Tomcat 
xercesImpl.jar file but is in the org.apache.xerces.framework package in 
Xerces 1.4.4.  This seems to be the cause of the VerifyError.

Is there any way I can use my old Xerces 1.4.4 JAR file for only this 
application?

Is this another documentation bug or am I reading it wrong?
Please help!  These documentation bugs are driving me nuts!
Thanks.

At 02:08 PM 4/3/2003 +0200, xyber wrote:
tomcat version 4.1 has his own xerces.jar (and xercesImpl), which is xerces 2.
your app is maybe use a xerces1-only function.
replace tomcat's xerces.jar with own old

xyb

[EMAIL PROTECTED] wrote:

I have an XML parsing application that was working fine using Tomcat 
3.2.4 in-process with Apache.
The app. consists of a servlet that receives XML data, parses it and then 
generates an XML response.
I had Xerces version 1.4.4 specified in the in-process classpath in 
workers.properties.

I have moved to Tomcat 4.1.24 out-of-process and my XML parsing app. no 
longer works.
I get a VerifyError each time I try to use the 
setErrorHandler(org.xml.sax.ErrorHandler) method.

I have the same Xerces 1.4.4 JAR file in my webapp/WEB-INF/lib 
directory but I'm not sure if it is being loaded.

I am using JSDK 1.3.

I am stumped by this VerifyError so any help is *greatly* appreciated.

Thanks.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: DriverManager.getConnection(jdbc:jtds:sqlserver://127.0.0.1:1443/Services..... Failured... Please, help me!

2003-04-03 Thread bahbahbooie
Are you providing a user name and password?
I am not familiar with this driver, but with the IBM DB2 driver a property 
of prompt=false is also needed.

At 12:40 PM 4/3/2003 -0600, Victor Gonzalez wrote:
The message is...

java.sql.SQLException: Connection refused: connect
at net.sourceforge.jtds.jdbc.TdsConnection.allocateTds(Unknown
Source)
at net.sourceforge.jtds.jdbc.TdsConnection.init(Unknown
Source)
at net.sourceforge.jtds.jdbc.Driver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at foo.Arteli.init(Arteli.java:25)
at org.apache.jsp.Arteli_jsp._jspService(Arteli_jsp.java:52)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
Somebody why??

The files is:
Empresa.java
public class Empresa {
  String foo = Not Connected;
  int bar = -1;
  Connection conn;
  public void init() {
try{
  conn = null;
  Class.forName(net.sourceforge.jtds.jdbc.Driver);
  Connection conn =
DriverManager.getConnection(jdbc:jtds:sqlserver://127.0.0.1:1443/Servic
es,sa,);
  Statement stmt = conn.createStatement();
  ResultSet rst = stmt.executeQuery(SELECT * FROM consecutivos);
  if(rst.next()){
foo=rst.getString(1);
bar=rst.getInt(2);
  }
  conn.close();
}
catch(Exception e){
  e.printStackTrace();
}
  }
  public String getFoo() { return foo; }
  public int getBar() { return bar;}
}


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]