Tomcat 7 server fails to start up after adding web.xml and context.xml

4,557 views
Skip to first unread message

satr...@yahoo.com

unread,
Apr 1, 2013, 4:48:12 PM4/1/13
to waffle...@googlegroups.com
This is what I'm using right now:
Tomcat server v 7.0
Waffle 1.5 (using MixedAuthenticator)
JDK 1.7.0
Integrated Crystal Reports viewer

I need to make an internal website that can view different reports depending on log-in credentials. I have the Crystal Reports working just fine, so I moved to Waffle for log-in credentials. I had been running on Waffle 1.4 but the authentication constantly failed. I read that I should upgrade to 1.5. So I drag all the example files to my project directory and add the extra data in my web.xml (I have other data there I need for Crystal Reports viewer). And then the Tomcat server stopped working. I've cleaned it so much it probably sparkles, and still no go.

So I started adding files one by one to see what the problem was, and when I added the xml files (last), Tomcat started freaking out. The project will run without the xmls but the session data I need is missing.

Errors Tomcat spits out:
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/crystaltest]]
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
at java.util.concurrent.FutureTask.get(FutureTask.java:111)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/crystaltest]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
... 7 more
Caused by: java.lang.NullPointerException
at java.util.Hashtable.get(Hashtable.java:357)
at java.util.Properties.getProperty(Properties.java:951)
at org.apache.catalina.startup.ContextConfig.authenticatorConfig(ContextConfig.java:472)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:889)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:369)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5179)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 7 more

There are about 50 more errors after this, generally referring to threads, null pointers, and Catalina errors.
I updated my .jar files in the Tomcat directory as well when I upgraded.

Is there a way to fix this?

Daniel Doubrovkine

unread,
Apr 2, 2013, 7:34:56 AM4/2/13
to waffle...@googlegroups.com
These exceptions are in reverse order, what's the toppost "caused by". If you want, post the entire log somewhere or the complete exception stack.

--
You received this message because you are subscribed to the Google Groups "waffle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to waffle-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--

dB. | Moscow - Geneva - Seattle - New York
dblock.org - @dblockdotorg

satr...@yahoo.com

unread,
Apr 2, 2013, 11:33:58 AM4/2/13
to waffle...@googlegroups.com
Sorry about that. I'm used to seeing it as top message is the cause. Here's the full output message
Apr 02, 2013 8:25:51 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.7.0\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.7.0\jre\bin;C:/Program Files/Java/jre7/bin/client;C:/Program Files/Java/jre7/bin;C:/Program Files/Java/jre7/lib/i386;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\Perl\bin;C:\Program Files\Seagate Software\NOTES;C:\Program Files\Seagate Software\NOTES\DATA;C:\Program Files\Microsoft Office\OFFICE11\Business Contact Manager\IM;C:\Program Files\Microsoft SQL Server\80\Tools\Binn;C:\Program Files\Microsoft Office\OFFICE11\Business Contact Manager;C:\Program Files\Symantec\Norton Ghost 2003;C:\Program Files\Microsoft Network Monitor 3;C:\Program Files\jZip;C:\Program Files\QuickTime\QTSystem;C:\Program Files\IBM\Client Access\Emulator;C:\Program Files\IBM\Client Access\Shared;C:\Program Files\IBM\Client Access;E:\Program Files\Android\android-sdk\platform-tools;E:\Program Files\Android\android-sdk\tools;C:\Program Files\Java\jdk1.7.0\bin;E:\Samantha\j400 jars;.
Apr 02, 2013 8:25:51 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:crystaltest' did not find a matching property.
Apr 02, 2013 8:25:52 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Apr 02, 2013 8:25:52 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Apr 02, 2013 8:25:52 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1528 ms
Apr 02, 2013 8:25:52 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Apr 02, 2013 8:25:52 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.37
Apr 02, 2013 8:25:53 AM org.apache.catalina.util.SessionIdGenerator createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [109] milliseconds.
Apr 02, 2013 8:25:58 AM org.apache.catalina.core.ContainerBase startInternal
Apr 02, 2013 8:25:58 AM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
at java.util.concurrent.FutureTask.get(FutureTask.java:111)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.startup.Catalina.start(Catalina.java:684)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:456)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 7 more

Apr 02, 2013 8:25:58 AM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start: 
org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.startup.Catalina.start(Catalina.java:684)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:456)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 7 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 9 more
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 11 more

Apr 02, 2013 8:25:58 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 6727 ms

And once that's done exploding my console window, an error window pops up titled "Problem occurred"
"Server Tomcat was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor" 

Daniel Doubrovkine

unread,
Apr 2, 2013, 11:36:46 AM4/2/13
to waffle...@googlegroups.com
It looks like it's trying to get something from the authenticator configuration in your tomcat and fails, but it won't say what. So I would look for an issue in your .xml configuration - compare with the mixed authenticator demo. If you can't find it, post the changes you made to the configuration XMLs?

--
You received this message because you are subscribed to the Google Groups "waffle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to waffle-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

satr...@yahoo.com

unread,
Apr 2, 2013, 12:24:42 PM4/2/13
to waffle...@googlegroups.com
Context.xml is the same
<?xml version='1.0' encoding='utf-8'?>
<Context>
  <Valve className="waffle.apache.MixedAuthenticator" principalFormat="fqn" roleFormat="both" allowGuestLogin="false" />
  <Realm className="waffle.apache.WindowsRealm" />
</Context>


I had to merge web.xml with my current one to ensure Crystal Reports would continue to work. I've tested that section out with a separate jsp page and it runs just fine.

web.xml
<?xml version="1.0" encoding="UTF-8"?>
id="WebApp_ID" version="3.0">
  <display-name>crystaltest</display-name>
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
  </welcome-file-list>
  <!--  Crystal Reports -->
  <servlet>
    <servlet-name>CrystalReportViewerServlet</servlet-name>
    <servlet-class>com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>CrystalReportViewerServlet</servlet-name>
    <url-pattern>/CrystalReportViewerHandler</url-pattern>
  </servlet-mapping>
  <context-param>
    <param-name>crystal_image_uri</param-name>
    <param-value>/crystalreportviewers</param-value>
  </context-param>
  <context-param>
    <param-name>crystal_image_use_relative</param-name>
    <param-value>webapp</param-value>
  </context-param>
  
  <!-- Waffle -->
  <security-role>
  <role-name>Everyone</role-name>
</security-role>
<security-constraint>
    <display-name>Waffle Security Constraint</display-name>
    <web-resource-collection>
      <web-resource-name>Protected Area</web-resource-name>
      <url-pattern>/*</url-pattern>
      <http-method>DELETE</http-method>
      <http-method>GET</http-method>
      <http-method>POST</http-method>
      <http-method>PUT</http-method>
    </web-resource-collection>
    <auth-constraint>
      <role-name>Everyone</role-name>
    </auth-constraint>
  </security-constraint>
  <security-constraint>
    <display-name>Login Page</display-name>
    <web-resource-collection>
      <web-resource-name>Unprotected Login Page</web-resource-name>
      <url-pattern>/login.jsp</url-pattern>
    </web-resource-collection>
  </security-constraint>
  <error-page>
   <error-code>401</error-code>
   <location>/401.html</location>
  </error-page>
  <login-config>
     <form-login-config>
<form-login-page>/login.jsp</form-login-page>  
<form-error-page>/error.html</form-error-page>  
</form-login-config>
  </login-config>
</web-app>

Daniel Doubrovkine

unread,
Apr 2, 2013, 1:31:11 PM4/2/13
to waffle...@googlegroups.com
I really don't see anything wrong. I would go back to the Waffle mixed authenticator sample - does that work?

Modify it introducing your crystal reports stuff then.

satr...@yahoo.com

unread,
Apr 2, 2013, 2:17:45 PM4/2/13
to waffle...@googlegroups.com
Right? It's pretty much the same setup I had when I was using Waffle 1.4, but for some reason 1.5 won't work. I only upgraded to 1.5 because I was reading that it would solve my authentication fail.

I tried to build a web project with just waffle and it spit out the same errors in addition to this:
Apr 02, 2013 11:13:00 AM org.apache.catalina.startup.Catalina load
WARNING: Catalina.start using conf/server.xml: Error at (128, 120) : waffle.apache.MixedAuthenticator
Apr 02, 2013 11:13:00 AM org.apache.catalina.startup.Catalina start
SEVERE: Cannot start server. Server instance is not configured.

Daniel Doubrovkine

unread,
Apr 2, 2013, 2:25:38 PM4/2/13
to waffle...@googlegroups.com
Make sure you only have non-waffle and waffle-tomcat7.jar in the binaries and remove other waffle-tomcat* or waffle-jetty* files? The demo that comes with Waffle works with Tomcat 7, I am pretty sure, but I can try myself sometime this week again.

satr...@yahoo.com

unread,
Apr 2, 2013, 2:50:54 PM4/2/13
to waffle...@googlegroups.com
I actually didn't have the waffle-tomcat7.jar in my directory. I dropped it in so the only waffle files I have in my tomcat lib are jna, platform, waffle-jna, and waffle-tomcat7. It didn't seem to help much more than before. It's now spilling out new errors, complaining about something called xerces.

Apr 02, 2013 11:41:39 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.7.0\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.7.0\jre\bin;C:/Program Files/Java/jre7/bin/client;C:/Program Files/Java/jre7/bin;C:/Program Files/Java/jre7/lib/i386;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\Perl\bin;C:\Program Files\Seagate Software\NOTES;C:\Program Files\Seagate Software\NOTES\DATA;C:\Program Files\Microsoft Office\OFFICE11\Business Contact Manager\IM;C:\Program Files\Microsoft SQL Server\80\Tools\Binn;C:\Program Files\Microsoft Office\OFFICE11\Business Contact Manager;C:\Program Files\Symantec\Norton Ghost 2003;C:\Program Files\Microsoft Network Monitor 3;C:\Program Files\jZip;C:\Program Files\QuickTime\QTSystem;C:\Program Files\IBM\Client Access\Emulator;C:\Program Files\IBM\Client Access\Shared;C:\Program Files\IBM\Client Access;E:\Program Files\Android\android-sdk\platform-tools;E:\Program Files\Android\android-sdk\tools;C:\Program Files\Java\jdk1.7.0\bin;E:\Samantha\j400 jars;.
Apr 02, 2013 11:41:40 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:crystaltest' did not find a matching property.
Apr 02, 2013 11:41:40 AM org.apache.tomcat.util.digester.Digester startElement
SEVERE: Begin event threw error
java.lang.NoClassDefFoundError: com/google/common/cache/CacheBuilder
at waffle.windows.auth.impl.WindowsAuthProviderImpl.<init>(Unknown Source)
at waffle.windows.auth.impl.WindowsAuthProviderImpl.<init>(Unknown Source)
at waffle.apache.WaffleAuthenticatorBase.<init>(Unknown Source)
at waffle.apache.MixedAuthenticator.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:145)
at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:506)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1302)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2715)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:568)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1537)
at org.apache.catalina.startup.Catalina.load(Catalina.java:610)
at org.apache.catalina.startup.Catalina.load(Catalina.java:658)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Caused by: java.lang.ClassNotFoundException: com.google.common.cache.CacheBuilder
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 32 more

java.lang.NoClassDefFoundError: com/google/common/cache/CacheBuilder
at waffle.windows.auth.impl.WindowsAuthProviderImpl.<init>(Unknown Source)
at waffle.windows.auth.impl.WindowsAuthProviderImpl.<init>(Unknown Source)
at waffle.apache.WaffleAuthenticatorBase.<init>(Unknown Source)
at waffle.apache.MixedAuthenticator.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:145)
at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:506)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1302)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2715)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:568)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1537)
at org.apache.catalina.startup.Catalina.load(Catalina.java:610)
at org.apache.catalina.startup.Catalina.load(Catalina.java:658)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Caused by: java.lang.ClassNotFoundException: com.google.common.cache.CacheBuilder
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 32 more

I'm not even sure what a xerces is, other than from mythology.
I tried removing all waffle jars except waffle-tomcat7 and I still get all these errors.

Thanks so much for your time and help. 

Daniel Doubrovkine

unread,
Apr 2, 2013, 3:14:25 PM4/2/13
to waffle...@googlegroups.com
There's an error about com/google/common/cache/CacheBuilder

That's from guava-13.0.1.jar, you need that. You need the following files:

guava*
jcl*
jna*
logback*
platform*
slf4j*
waffle-jna*
waffle-tomcat7.jar

satr...@yahoo.com

unread,
Apr 2, 2013, 4:12:23 PM4/2/13
to waffle...@googlegroups.com
Awesome, that reduces the number of errors I'm getting. I've added all the jars to my tomcat. However, I'm getting this one over and over again.
Caused by: java.lang.ClassNotFoundException: waffle.windows.auth.IWindowsAuthProvider
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 27 more
All the jars are showing up in my library list in Eclipse. 

Daniel Doubrovkine

unread,
Apr 2, 2013, 4:23:17 PM4/2/13
to waffle...@googlegroups.com
This is in waffle-jna.jar. It's possible that this one needs to be in a different class loader, so in Tomcat's lib, not in the app's (or vice-versa).

satr...@yahoo.com

unread,
Apr 2, 2013, 4:46:03 PM4/2/13
to waffle...@googlegroups.com
Whoops I forgot the waffle-jna jar. That works. Even the authentication works! But only for the waffle-only test. I'm still having trouble with it working with the crystal reports info in the web.xml, but it is running. Just not very well.

Thanks so incredibly much for your help.

Daniel Doubrovkine

unread,
Apr 2, 2013, 4:48:56 PM4/2/13
to waffle...@googlegroups.com
Can you please contribute some improvements in the Docs around this? Maybe into here: https://github.com/dblock/waffle/blob/master/Docs/tomcat/TomcatMixedSingleSignOnAndFormAuthenticatorValve.md ?

satr...@yahoo.com

unread,
Apr 2, 2013, 6:18:43 PM4/2/13
to waffle...@googlegroups.com
Absolutely. I'll see what I can add.
Reply all
Reply to author
Forward
0 new messages