tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: Cannot rid of expired Certificate ...
Date Mon, 23 Jan 2012 12:45:18 GMT
Andrew Erskine wrote:
> -----Original Message-----
> From: André Warnier [mailto:aw@ice-sa.com]
> Sent: 23 January 2012 10:46
> To: Tomcat Users List
> Subject: Re: Cannot rid of expired Certificate ...
> 
> Andrew Erskine wrote:
> ...
>> Not sure what APR is ?
>>
> To save someone else the time :
> 
> See : http://apr.apache.org/
> 
> In essence, "APR" is a software library which contains a number of TCP-socket-related
functions which /can/ be used by software applications (such as Apache httpd and Tomcat),
as a replacement for similar platform-specific functions, to provide more uniformity.
> 
> In the case of Tomcat : by default, Tomcat, for its Connectors, uses the network-related
functions provided by the Java JVM (e.g., to open a listening socket for a Connector).
> However, if Tomcat detects the availability of the APR library when it starts, it will
switch to using this library instead.
> The APR implementation is supposed to be more efficient and faster.
> 
> The importance of this, in the current context, is that there is a difference regarding
SSL (HTTPS) : the standard JVM functions use the Java JVM's implementation of SSL, while APR
functions use the OpenSSL library.  This matters because the relevant Connector attributes
are different in each case (and also probably where the software looks for "things" like keystore
etc..).
> 
> You can see if on your system Tomcat has found (and is using) the APR library or not,
by examining the Tomcat logfiles : at startup, Tomcat will print a warning if it did not find
APR.
> 
> So I've deleted my certificate again and created a new certificate ..
> 
> D:\win32app\Spectrum\Java\jre\bin>keytool -list -keystore d:\win32app\Spectrum\custom\keystore\cacerts
> Enter keystore password:
> 
> Keystore type: JKS
> Keystore provider: SUN
> 
> Your keystore contains 4 entries
> 
> root, Oct 21, 2011, trustedCertEntry,
> Certificate fingerprint (MD5): BB:EA:B2:25:64:36:99:85:77:32:BA:B3:76:E6:F6:1A
> ehrp-2e2-site1, Jan 12, 2012, trustedCertEntry,
> Certificate fingerprint (MD5): 3B:14:71:2C:15:7D:79:81:7C:D6:B7:CE:35:0E:43:80
> spectrum-92, Jan 19, 2012, PrivateKeyEntry,
> Certificate fingerprint (MD5): DF:BA:0D:35:8D:45:E0:79:62:6B:C7:ED:D6:B7:86:8E
> tomcatss1, Oct 21, 2011, PrivateKeyEntry,
> Certificate fingerprint (MD5): DF:7D:58:4B:D1:5A:A5:AF:68:C6:5E:F4:77:7D:0D:FB
> 
> D:\win32app\Spectrum\Java\jre\bin>keytool -delete -keystore d:\win32app\Spectrum\custom\keystore\cacerts
-alias spectrum-92
> Enter keystore password:
> 
> D:\win32app\Spectrum\Java\jre\bin>keytool -list -keystore d:\win32app\Spectrum\custom\keystore\cacerts
> Enter keystore password:
> 
> Keystore type: JKS
> Keystore provider: SUN
> 
> Your keystore contains 3 entries
> 
> root, Oct 21, 2011, trustedCertEntry,
> Certificate fingerprint (MD5): BB:EA:B2:25:64:36:99:85:77:32:BA:B3:76:E6:F6:1A
> ehrp-2e2-site1, Jan 12, 2012, trustedCertEntry,
> Certificate fingerprint (MD5): 3B:14:71:2C:15:7D:79:81:7C:D6:B7:CE:35:0E:43:80
> tomcatss1, Oct 21, 2011, PrivateKeyEntry,
> Certificate fingerprint (MD5): DF:7D:58:4B:D1:5A:A5:AF:68:C6:5E:F4:77:7D:0D:FB
> 
> D:\win32app\Spectrum\Java\jre\bin>keytool -genkey -alias spectrum-92 -keyalg RSA -keystore
d:\win32app\Spectrum\custom\keystore
> keytool error: java.lang.Exception: Keystore file exists, but is empty: d:\win32app\Spectrum\custom\keystore
> 
> D:\win32app\Spectrum\Java\jre\bin>keytool -genkey -alias spectrum-92 -keyalg RSA -keystore
d:\win32app\Spectrum\custom\keystore\cacerts
> Enter keystore password:
> What is your first and last name?
>   [Unknown]:  spectrum-92
> What is the name of your organizational unit?
>   [Unknown]:
> What is the name of your organization?
>   [Unknown]:
> What is the name of your City or Locality?
>   [Unknown]:
> What is the name of your State or Province?
>   [Unknown]:
> What is the two-letter country code for this unit?
>   [Unknown]:
> Is CN=spectrum-92, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown correct?
>   [no]:  yes
> 
> Enter key password for <spectrum-92>
>         (RETURN if same as keystore password):
> 
> D:\win32app\Spectrum\Java\jre\bin>keytool -list -keystore d:\win32app\Spectrum\custom\keystore\cacerts
> Enter keystore password:
> 
> Keystore type: JKS
> Keystore provider: SUN
> 
> Your keystore contains 4 entries
> 
> root, Oct 21, 2011, trustedCertEntry,
> Certificate fingerprint (MD5): BB:EA:B2:25:64:36:99:85:77:32:BA:B3:76:E6:F6:1A
> ehrp-2e2-site1, Jan 12, 2012, trustedCertEntry,
> Certificate fingerprint (MD5): 3B:14:71:2C:15:7D:79:81:7C:D6:B7:CE:35:0E:43:80
> spectrum-92, Jan 23, 2012, PrivateKeyEntry,
> Certificate fingerprint (MD5): 8F:26:60:6B:9E:01:64:5E:CB:73:8A:BC:4E:3E:AF:AB
> tomcatss1, Oct 21, 2011, PrivateKeyEntry,
> Certificate fingerprint (MD5): DF:7D:58:4B:D1:5A:A5:AF:68:C6:5E:F4:77:7D:0D:FB
> 
> D:\win32app\Spectrum\Java\jre\bin>
> 
> Heres my server.xml ..
> 
> 
>     <Connector
>            port="443" minProcessors="5" maxProcessors="75"
>            enableLookups="true" disableUploadTimeout="true"
>            acceptCount="100" debug="0" scheme="https" secure="true"
>            clientAuth="false" sslProtocol="TLS"
>            ciphers="SSL_RSA_WITH_RC4_128_MD5,SSL_RSA_WITH_RC4_128_SHA,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_DSS_WITH_AES_128_CBC_SHA,SSL_RSA_WITH_3DES_EDE_CBC_SHA,SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA,SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA"
>            keystoreFile="<SPECROOT>/custom/keystore/cacerts"
>            keystorePass="changeit">
>      </Connector>
> 
> Reboot tomcat (stdout.log)
> 
> Jan 23, 2012 10:58:37 AM (main) (org.apache.coyote.http11.Http11BaseProtocol) - (INFO)
- Initializing Coyote HTTP/1.1 on http-80
> Jan 23, 2012 10:58:39 AM (main) (org.apache.coyote.http11.Http11BaseProtocol) - (INFO)
- Initializing Coyote HTTP/1.1 on http-443
> Jan 23, 2012 10:58:39 AM (main) (org.apache.catalina.startup.Catalina) - (INFO) - Initialization
processed in 3422 ms
> Jan 23, 2012 10:58:39 AM (main) (org.apache.catalina.realm.JAASRealm) - (INFO) - Set
JAAS app name Catalina
> Jan 23, 2012 10:58:39 AM (main) (org.apache.catalina.core.StandardService) - (INFO) -
Starting service Tomcat-Standalone
> Jan 23, 2012 10:58:39 AM (main) (org.apache.catalina.core.StandardEngine) - (INFO) -
Starting Servlet Engine: Apache Tomcat/5.5.30
> Jan 23, 2012 10:58:39 AM (main) (org.apache.catalina.core.StandardHost) - (INFO) - XML
validation disabled
> Jan 23, 2012 10:58:40 AM (main) (org.apache.catalina.startup.HostConfig) - (INFO) - Deploying
web application archive axis2.war
> Jan 23, 2012 10:58:47 AM (main) (org.apache.axis2.deployment.ClusterBuilder) - (INFO)
- Clustering has been disabled
> Jan 23, 2012 10:58:48 AM (main) (org.apache.axis2.deployment.ModuleDeployer) - (INFO)
- Deploying module: addressing-1.5.4 - file:/D:/win32app/Spectrum/tomcat/webapps/axis2/WEB-INF/modules/addressing-1.5.4.mar
> Jan 23, 2012 10:58:48 AM (main) (org.apache.axis2.deployment.ModuleDeployer) - (INFO)
- Deploying module: metadataExchange-1.5.4 - file:/D:/win32app/Spectrum/tomcat/webapps/axis2/WEB-INF/modules/mex-1.5.4.mar
> Jan 23, 2012 10:58:48 AM (main) (org.apache.axis2.deployment.ModuleDeployer) - (INFO)
- Deploying module: mtompolicy-1.5.4 - file:/D:/win32app/Spectrum/tomcat/webapps/axis2/WEB-INF/modules/mtompolicy-1.5.4.mar
> Jan 23, 2012 10:58:48 AM (main) (org.apache.axis2.deployment.ModuleDeployer) - (INFO)
- Deploying module: ping-1.5.4 - file:/D:/win32app/Spectrum/tomcat/webapps/axis2/WEB-INF/modules/ping-1.5.4.mar
> Jan 23, 2012 10:58:48 AM (main) (org.apache.axis2.deployment.ModuleDeployer) - (INFO)
- Deploying module: script-1.5.4 - file:/D:/win32app/Spectrum/tomcat/webapps/axis2/WEB-INF/modules/scripting-1.5.4.mar
> Jan 23, 2012 10:58:48 AM (main) (org.apache.axis2.deployment.ModuleDeployer) - (INFO)
- Deploying module: soapmonitor-1.5.4 - file:/D:/win32app/Spectrum/tomcat/webapps/axis2/WEB-INF/modules/soapmonitor-1.5.4.mar
> Jan 23, 2012 10:58:52 AM (main) (org.apache.axis2.deployment.ServiceDeployer) - (INFO)
- Deploying Web service: DataSourceWS.aar - file:/D:/win32app/Spectrum/tomcat/webapps/axis2/WEB-INF/services/DataSourceWS.aar
> Jan 23, 2012 10:58:52 AM (main) (org.apache.axis2.deployment.ServiceDeployer) - (INFO)
- Deploying Web service: ProductSync2WS.aar - file:/D:/win32app/Spectrum/tomcat/webapps/axis2/WEB-INF/services/ProductSync2WS.aar
> Jan 23, 2012 10:58:52 AM (main) (org.apache.axis2.deployment.ServiceDeployer) - (INFO)
- Deploying Web service: version.aar - file:/D:/win32app/Spectrum/tomcat/webapps/axis2/WEB-INF/services/version.aar
> Jan 23, 2012 10:58:53 AM (main) (org.apache.axis2.transport.http.AxisServlet) - (WARN)
- No transportReceiver for org.apache.axis2.transport.http.AxisServletListener found. An instance
for HTTP will be configured automatically. Please update your axis2.xml file!
> Jan 23, 2012 10:58:53 AM (HttpListener-8443-1) (org.apache.axis2.transport.http.server.DefaultConnectionListener)
- (INFO) - Listening on port 8443
> Jan 23, 2012 10:58:53 AM (main) (org.apache.catalina.startup.HostConfig) - (INFO) - Deploying
web application archive introscope-wssdk-consumer.war
> Jan 23, 2012 10:58:53 AM (main) (IscopeWebServiceClient) - (INFO) - Initialized ConsumerStartupServlet
> Jan 23, 2012 10:59:27 AM - FrontEndUpdateWatcherManager: Reap: 120000 Expire: 240000
Delay: 10800000
> Jan 23, 2012 10:59:28 AM (main) (org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/spectrum])
- (INFO) - Initializing Spring FrameworkServlet 'NetqosIntegrationBootstrapServlet'
> Jan 23, 2012 10:59:28 AM (main) (com.ca.im.netqos.integration.web.servlet.NetqosIntegrationBootstrapServlet)
- (INFO) - FrameworkServlet 'NetqosIntegrationBootstrapServlet': initialization started
> Jan 23, 2012 10:59:28 AM (main) (com.ca.im.netqos.integration.web.servlet.NetqosIntegrationBootstrapServlet)
- (INFO) - FrameworkServlet 'NetqosIntegrationBootstrapServlet': initialization completed
in 16 ms
> Jan 23, 2012 10:59:28 AM (main) (org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/spectrum])
- (INFO) - Initializing Spring FrameworkServlet 'SRMBootstrapServlet'
> Jan 23, 2012 10:59:28 AM (main) (com.aprisma.spectrum.app.repmgr.web.servlet.SRMBootstrapServlet)
- (INFO) - FrameworkServlet 'SRMBootstrapServlet': initialization started
> Jan 23, 2012 10:59:28 AM (main) (com.aprisma.spectrum.app.repmgr.web.servlet.SRMBootstrapServlet)
- (INFO) - FrameworkServlet 'SRMBootstrapServlet': initialization completed in 0 ms
> Jan 23, 2012 10:59:28 AM (SRM/Startup/Container) (RepMgr) - (INFO) - Report Manager waiting
on MySQL initialization.
> Jan 23, 2012 11:01:18 AM (SRM/Startup/Container) (RepMgr) - (INFO) - MySQL Initialization
complete.  Report Manager continuing.
> Jan 23, 2012 11:01:21 AM (PoolThread-1: GlobalPool => SLMStatWatcher.init) (SLM_STAT_DB)
- (INFO) - Service Manager waiting on MySQL initialization.
> Jan 23, 2012 11:01:21 AM (PoolThread-1: GlobalPool => SLMStatWatcher.init) (SLM_STAT_DB)
- (INFO) - MySQL Initialization complete.  Service Manager continuing.
> Jan 23, 2012 11:01:23 AM - ERROR:  reading file custom-privileges.xmlorg.jdom.input.JDOMParseException:
Error on line 75 of document file:/D:/win32app/Spectrum/custom/console/config/custom-privileges.xml:
Invalid byte 1 of 1-byte UTF-8 sequence.
>         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:501)
>         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:847)
>         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:826)
>         at com.aprisma.spectrum.app.web.security.GlobalAccessPrivilegeManager.readPrivFile(GlobalAccessPrivilegeManager.java:2517)
>         at com.aprisma.spectrum.app.web.security.GlobalAccessPrivilegeManager.getRegisteredPrivileges(GlobalAccessPrivilegeManager.java:2458)
>         at com.aprisma.spectrum.app.web.security.GlobalAccessPrivilegeManager.<init>(GlobalAccessPrivilegeManager.java:252)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>         at com.aprisma.spectrum.app.util.context.ContextFactory.constructContextObject(ContextFactory.java:411)
>         at com.aprisma.spectrum.app.util.context.ContextFactory.getContextObject(ContextFactory.java:174)
>         at com.aprisma.spectrum.app.web.security.BackEndUserSecurityDataModel.start(BackEndUserSecurityDataModel.java:184)
>         at com.aprisma.spectrum.app.util.context.ContextFactory.threadSafeStartContextObject(ContextFactory.java:275)
>         at com.aprisma.spectrum.app.util.context.ContextFactory.getContextObject(ContextFactory.java:179)
>         at com.aprisma.spectrum.app.alarm.web.model.AbstractFrontEndAlarmDataModel.<init>(AbstractFrontEndAlarmDataModel.java:62)
>         at com.aprisma.spectrum.app.notifier.AlarmNotifier.<init>(AlarmNotifier.java:153)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>         at com.aprisma.spectrum.app.util.context.ContextFactory.constructContextObject(ContextFactory.java:411)
>         at com.aprisma.spectrum.app.util.context.ContextFactory.getContextObject(ContextFactory.java:174)
>         at com.aprisma.spectrum.app.notifier.servlet.AlarmNotifierServlet.init(AlarmNotifierServlet.java:74)
>         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
>         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
>         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
>         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
>         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
>         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
>         at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:980)
>         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:943)
>         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
>         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1203)
>         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
>         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
>         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
>         at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>         at org.apache.catalina.core.StandardService.start(StandardService.java:448)
>         at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
> Caused by: org.apache.xerces.impl.io.MalformedByteSequenceException: Invalid byte 1 of
1-byte UTF-8 sequence.
>         at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
>         at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
>         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
>         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>         at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
>         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489)
>         ... 49 more
> Caused by: org.apache.xerces.impl.io.MalformedByteSequenceException: Invalid byte 1 of
1-byte UTF-8 sequence.
>         at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown Source)
>         at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
>         at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
>         at org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown Source)
>         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknown
Source)
>         ... 57 more
> Caused by: org.apache.xerces.impl.io.MalformedByteSequenceException: Invalid byte 1 of
1-byte UTF-8 sequence.
>         at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
>         at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
>         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
>         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>         at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
>         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489)
>         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:847)
>         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:826)
>         at com.aprisma.spectrum.app.web.security.GlobalAccessPrivilegeManager.readPrivFile(GlobalAccessPrivilegeManager.java:2517)
>         at com.aprisma.spectrum.app.web.security.GlobalAccessPrivilegeManager.getRegisteredPrivileges(GlobalAccessPrivilegeManager.java:2458)
>         at com.aprisma.spectrum.app.web.security.GlobalAccessPrivilegeManager.<init>(GlobalAccessPrivilegeManager.java:252)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>         at com.aprisma.spectrum.app.util.context.ContextFactory.constructContextObject(ContextFactory.java:411)
>         at com.aprisma.spectrum.app.util.context.ContextFactory.getContextObject(ContextFactory.java:174)
>         at com.aprisma.spectrum.app.web.security.BackEndUserSecurityDataModel.start(BackEndUserSecurityDataModel.java:184)
>         at com.aprisma.spectrum.app.util.context.ContextFactory.threadSafeStartContextObject(ContextFactory.java:275)
>         at com.aprisma.spectrum.app.util.context.ContextFactory.getContextObject(ContextFactory.java:179)
>         at com.aprisma.spectrum.app.alarm.web.model.AbstractFrontEndAlarmDataModel.<init>(AbstractFrontEndAlarmDataModel.java:62)
>         at com.aprisma.spectrum.app.notifier.AlarmNotifier.<init>(AlarmNotifier.java:153)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>         at com.aprisma.spectrum.app.util.context.ContextFactory.constructContextObject(ContextFactory.java:411)
>         at com.aprisma.spectrum.app.util.context.ContextFactory.getContextObject(ContextFactory.java:174)
>         at com.aprisma.spectrum.app.notifier.servlet.AlarmNotifierServlet.init(AlarmNotifierServlet.java:74)
>         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
>         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
>         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
>         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
>         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
>         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
>         at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:980)
>         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:943)
>         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
>         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1203)
>         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
>         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
>         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
>         at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>         at org.apache.catalina.core.StandardService.start(StandardService.java:448)
>         at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
> Caused by: org.apache.xerces.impl.io.MalformedByteSequenceException: Invalid byte 1 of
1-byte UTF-8 sequence.
>         at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown Source)
>         at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
>         at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
>         at org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown Source)
>         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknown
Source)
>         ... 57 more
> Caused by: org.apache.xerces.impl.io.MalformedByteSequenceException: Invalid byte 1 of
1-byte UTF-8 sequence.
>         at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown Source)
>         at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
>         at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
>         at org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown Source)
>         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknown
Source)
>         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
>         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>         at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
>         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489)
>         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:847)
>         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:826)
>         at com.aprisma.spectrum.app.web.security.GlobalAccessPrivilegeManager.readPrivFile(GlobalAccessPrivilegeManager.java:2517)
>         at com.aprisma.spectrum.app.web.security.GlobalAccessPrivilegeManager.getRegisteredPrivileges(GlobalAccessPrivilegeManager.java:2458)
>         at com.aprisma.spectrum.app.web.security.GlobalAccessPrivilegeManager.<init>(GlobalAccessPrivilegeManager.java:252)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>         at com.aprisma.spectrum.app.util.context.ContextFactory.constructContextObject(ContextFactory.java:411)
>         at com.aprisma.spectrum.app.util.context.ContextFactory.getContextObject(ContextFactory.java:174)
>         at com.aprisma.spectrum.app.web.security.BackEndUserSecurityDataModel.start(BackEndUserSecurityDataModel.java:184)
>         at com.aprisma.spectrum.app.util.context.ContextFactory.threadSafeStartContextObject(ContextFactory.java:275)
>         at com.aprisma.spectrum.app.util.context.ContextFactory.getContextObject(ContextFactory.java:179)
>         at com.aprisma.spectrum.app.alarm.web.model.AbstractFrontEndAlarmDataModel.<init>(AbstractFrontEndAlarmDataModel.java:62)
>         at com.aprisma.spectrum.app.notifier.AlarmNotifier.<init>(AlarmNotifier.java:153)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>         at com.aprisma.spectrum.app.util.context.ContextFactory.constructContextObject(ContextFactory.java:411)
>         at com.aprisma.spectrum.app.util.context.ContextFactory.getContextObject(ContextFactory.java:174)
>         at com.aprisma.spectrum.app.notifier.servlet.AlarmNotifierServlet.init(AlarmNotifierServlet.java:74)
>         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
>         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
>         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
>         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
>         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
>         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
>         at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:980)
>         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:943)
>         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
>         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1203)
>         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
>         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
>         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
>         at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>         at org.apache.catalina.core.StandardService.start(StandardService.java:448)
>         at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
> 
> And when I go back into my browser remove any trusted certificates and try and access
my site and it still says my certificate has expired ?
> 
> Any ideas ?
> 
Well, the above log line :

Jan 23, 2012 11:01:23 AM - ERROR:  reading file 
custom-privileges.xmlorg.jdom.input.JDOMParseException: Error on line 75 of document 
file:/D:/win32app/Spectrum/custom/console/config/custom-privileges.xml: Invalid byte 1 of

1-byte UTF-8 sequence.

seems to indicate a solid error hapenning while reading the indicated file.
I don't know if this has anything to do with the basic issue you are having, but don't you

want to correct it first ?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message