Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2007

Tip: Looking for answers? Try searching our database.

AJP Connector on Tomcat

Thread view: 
Armel HERVE - 11 May 2007 09:40 GMT
Hi there,

I'm trying to use connector between Apache and Tomcat 5.5.
Do to that, I've added some lines to server.xml:
      <Connector
          address="192.168.2.101" port="8009"
          protocol="AJP/1.3"
          tomcatAuthentication="false" />

When I start Tomcat (on Windows XP, for test purposes), I obtain a stack
trace error:
java.lang.reflect.InvocationTargetException
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.apache.catalina.startup.Bootstrap.start
(Bootstrap.java:294)
       at org.apache.catalina.startup.Bootstrap.main
(Bootstrap.java:432)
Caused by: javax.xml.parsers.FactoryConfigurationError: Provider
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not f
ound
       at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown
Source)
       at org.apache.commons.modeler.util.DomUtil.readXml
(DomUtil.java:284)
...

This error disappears if I remove inserted lines.
Does anybody can hel me ?

Thanks for your answers

Armel
Armel HERVE - 11 May 2007 10:36 GMT
> Hi there,
>
[quoted text clipped - 32 lines]
>
> Armel

Actually, I have the same problem on Fedora...

Armel
rng - 11 May 2007 13:12 GMT
copy/paste whole server.xml
Armel HERVE - 11 May 2007 15:31 GMT
> copy/paste whole server.xml

I have found what's wrong: tomcat does not have xerces installed. If I
put xercesimpl.jar in {tomcat_home}/server/lib, all works fine.

for information, this is my server.xml:

<Server port="8005" shutdown="SHUTDOWN">
 <Service name="Catalina">
      <Connector
          address="192.168.2.101" port="8009"
          protocol="AJP/1.3"
          tomcatAuthentication="false" />

   <!-- Define the top level container in our container hierarchy -->
   <Engine name="Catalina" defaultHost="192.168.2.101">
      <Host
          name="192.168.2.101" appBase="/d:/ProgramShop/server"
          unpackWARs="false" autoDeploy="false"
          xmlValidation="false" xmlNamespaceAware="false">
    <Valve className="org.apache.catalina.valves.AccessLogValve"
        directory="logs"  prefix="localhost_access_log."
suffix=".txt" pattern="combined" resolveHosts="false"/>

     </Host>
   </Engine>
 </Service>
</Server>

Thanks

Armel
Arne Vajhøj - 12 May 2007 00:59 GMT
> I have found what's wrong: tomcat does not have xerces installed. If I
> put xercesimpl.jar in {tomcat_home}/server/lib, all works fine.

Tomcat should not need Xerces there.

Are you by any chance running Tomcat on an old Java version
without builtin XML parser ?

Arne


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.