You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Vikas Sharma <vi...@gmail.com> on 2016/05/10 09:13:54 UTC

Fwd: webservice deployment on tomcat 1.7 with JAVA 1.8 is giving deployment errors

---------- Forwarded message ----------
From: Vikas Sharma <vi...@gmail.com>
Date: Tue, May 10, 2016 at 2:39 PM
Subject: webservice deployment on tomcat 1.7 with JAVA 1.8 is giving
deployment errors
To: users@tomcat.apache.org


10-May-2016 14:28:16.717 SEVERE [localhost-startStop-1]
org.apache.catalina.core.StandardContext.listenerStart Exception sending
context initialized event to listener instance of class
com.invisiblecrm.smartfolder.core.ws.ServiceLifeCycleServlet
 javax.xml.validation.SchemaFactoryConfigurationError: Provider for class
javax.xml.validation.SchemaFactory cannot be created
at javax.xml.validation.SchemaFactoryFinder.findServiceProvider(Unknown
Source)
at javax.xml.validation.SchemaFactoryFinder._newFactory(Unknown Source)
at javax.xml.validation.SchemaFactoryFinder.newFactory(Unknown Source)
at javax.xml.validation.SchemaFactory.newInstance(Unknown Source)
at
com.invisiblecrm.smartfolder.dfs.config.SfDfsConfigurationManagerImpl.<clinit>(SfDfsConfigurationManagerImpl.java:42)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
com.invisiblecrm.smartfolder.core.config.SfConfigurationManager.getInstance(SfConfigurationManager.java:89)
at
com.invisiblecrm.smartfolder.core.ws.ServiceLifeCycleServlet.contextInitialized(ServiceLifeCycleServlet.java:97)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4811)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5251)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.util.ServiceConfigurationError:
javax.xml.validation.SchemaFactory:
jar:file:/C:/Program%20Files%20(x86)/Apache%20Software%20Foundation/Tomcat%208.0/webapps/My-Documentum-for-Microsoft-Outlook-WebService-7.3.0/WEB-INF/lib/xerces-impl.jar!/META-INF/services/javax.xml.validation.SchemaFactory:1:
Illegal provider-class name: http\://
www.w3.org/2001/XMLSchema=com.sun.org.apache.xerces.internal.jaxp.validation.xs.SchemaFactoryImpl
at java.util.ServiceLoader.fail(Unknown Source)
at java.util.ServiceLoader.fail(Unknown Source)
at java.util.ServiceLoader.parseLine(Unknown Source)
at java.util.ServiceLoader.parse(Unknown Source)
at java.util.ServiceLoader.access$200(Unknown Source)
at java.util.ServiceLoader$LazyIterator.hasNextService(Unknown Source)
at java.util.ServiceLoader$LazyIterator.hasNext(Unknown Source)
at java.util.ServiceLoader$1.hasNext(Unknown Source)
at javax.xml.validation.SchemaFactoryFinder$2.run(Unknown Source)
at javax.xml.validation.SchemaFactoryFinder$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 18 more

10-May-2016 14:28:35.672 SEVERE [localhost-startStop-1]
org.apache.catalina.core.StandardContext.listenerStart Exception sending
context initialized event to listener instance of class
com.invisiblecrm.smartfolder.core.ws.ServiceLifeCycleServlet
 javax.xml.validation.SchemaFactoryConfigurationError: Provider for class
javax.xml.validation.SchemaFactory cannot be created
at javax.xml.validation.SchemaFactoryFinder.findServiceProvider(Unknown
Source)
at javax.xml.validation.SchemaFactoryFinder._newFactory(Unknown Source)
at javax.xml.validation.SchemaFactoryFinder.newFactory(Unknown Source)
at javax.xml.validation.SchemaFactory.newInstance(Unknown Source)
at
com.invisiblecrm.smartfolder.dfs.config.SfDfsConfigurationManagerImpl.<clinit>(SfDfsConfigurationManagerImpl.java:42)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
com.invisiblecrm.smartfolder.core.config.SfConfigurationManager.getInstance(SfConfigurationManager.java:89)
at
com.invisiblecrm.smartfolder.core.ws.ServiceLifeCycleServlet.contextInitialized(ServiceLifeCycleServlet.java:97)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4811)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5251)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1092)
at
org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1834)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.util.ServiceConfigurationError:
javax.xml.validation.SchemaFactory:
jar:file:/C:/Program%20Files%20(x86)/Apache%20Software%20Foundation/Tomcat%208.0/webapps/My-Documentum-for-Microsoft-Outlook-WebService-7.3.0/WEB-INF/lib/xerces-impl.jar!/META-INF/services/javax.xml.validation.SchemaFactory:1:
Illegal provider-class name: http\://
www.w3.org/2001/XMLSchema=com.sun.org.apache.xerces.internal.jaxp.validation.xs.SchemaFactoryImpl
at java.util.ServiceLoader.fail(Unknown Source)
at java.util.ServiceLoader.fail(Unknown Source)
at java.util.ServiceLoader.parseLine(Unknown Source)
at java.util.ServiceLoader.parse(Unknown Source)
at java.util.ServiceLoader.access$200(Unknown Source)
at java.util.ServiceLoader$LazyIterator.hasNextService(Unknown Source)
at java.util.ServiceLoader$LazyIterator.hasNext(Unknown Source)
at java.util.ServiceLoader$1.hasNext(Unknown Source)
at javax.xml.validation.SchemaFactoryFinder$2.run(Unknown Source)
at javax.xml.validation.SchemaFactoryFinder$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 22 more


-- 
Vikas sharma
9008000682
"Cogito Ergo Sum!!"



-- 
Vikas sharma
9008000682
"Cogito Ergo Sum!!"

Re: webservice deployment on tomcat 1.7 with JAVA 1.8 is giving deployment errors

Posted by Vikas Sharma <vi...@gmail.com>.
You are absolutely correct. I used java 1.8 compatible class from apache xcerses.jar. Now it deploys fine.

Thanks and regards,
Vikas

On 10-May-2016, at 10:08 PM, Konstantin Kolinko <kn...@gmail.com> wrote:

2016-05-10 17:34 GMT+03:00 Christopher Schultz <ch...@christopherschultz.net>:
> 
> Looks like the real error is:
> 
>> Caused by: java.util.ServiceConfigurationError:
>> javax.xml.validation.SchemaFactory:
> jar:file:/C:/Program%20Files%20(x86)/Apache%20Software%20Foundation/Tomc
> at%208.0/webapps/My-Documentum-for-Microsoft-Outlook-WebService-7.3.0/WE
> B-INF/lib/xerces-impl.jar!/META-INF/services/javax.xml.validation.Schema
> Factory:1:
>> Illegal provider-class name: http\://
> www.w3.org/2001/XMLSchema=com.sun.org.apache.xerces.internal.jaxp.valida
> tion.xs.SchemaFactoryImpl
> 
> Find the place where you have that odd provider class name and change
> it to be a legitimate Java class. (Just a guess).
> 
> - -chris


The class name "com.sun.org.apache.xerces.internal.jaxp.validation.xs.SchemaFactoryImpl"
is odd. It looks like
internal copy of Apache Xerces library as was used by an (old) JRE.
It is as if someone is trying to bundle a JRE class within a web
application.

1. Redistributing JRE classes in such way is wrong.

2. You can get the real Xerces-J  XML parser library here:
http://xerces.apache.org/xerces2-j/
http://xerces.apache.org/mirrors.cgi

Best regards,
Konstantin Kolinko

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


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


Re: Fwd: webservice deployment on tomcat 1.7 with JAVA 1.8 is giving deployment errors

Posted by Konstantin Kolinko <kn...@gmail.com>.
2016-05-10 17:34 GMT+03:00 Christopher Schultz <ch...@christopherschultz.net>:
>
> Looks like the real error is:
>
>> Caused by: java.util.ServiceConfigurationError:
>> javax.xml.validation.SchemaFactory:
>>
> jar:file:/C:/Program%20Files%20(x86)/Apache%20Software%20Foundation/Tomc
> at%208.0/webapps/My-Documentum-for-Microsoft-Outlook-WebService-7.3.0/WE
> B-INF/lib/xerces-impl.jar!/META-INF/services/javax.xml.validation.Schema
> Factory:1:
>> Illegal provider-class name: http\://
>>
> www.w3.org/2001/XMLSchema=com.sun.org.apache.xerces.internal.jaxp.valida
> tion.xs.SchemaFactoryImpl
>
> Find the place where you have that odd provider class name and change
> it to be a legitimate Java class. (Just a guess).
>
> - -chris


The class name "com.sun.org.apache.xerces.internal.jaxp.validation.xs.SchemaFactoryImpl"
 is odd. It looks like
internal copy of Apache Xerces library as was used by an (old) JRE.
It is as if someone is trying to bundle a JRE class within a web
application.

1. Redistributing JRE classes in such way is wrong.

2. You can get the real Xerces-J  XML parser library here:
http://xerces.apache.org/xerces2-j/
http://xerces.apache.org/mirrors.cgi

Best regards,
Konstantin Kolinko

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


Re: Fwd: webservice deployment on tomcat 1.7 with JAVA 1.8 is giving deployment errors

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Vikas,

On 5/10/16 5:13 AM, Vikas Sharma wrote:
> ---------- Forwarded message ---------- From: Vikas Sharma
> <vi...@gmail.com> Date: Tue, May 10, 2016 at 2:39 PM Subject:
> webservice deployment on tomcat 1.7 with JAVA 1.8 is giving 
> deployment errors To: users@tomcat.apache.org
> 
> 
> 10-May-2016 14:28:16.717 SEVERE [localhost-startStop-1] 
> org.apache.catalina.core.StandardContext.listenerStart Exception
> sending context initialized event to listener instance of class 
> com.invisiblecrm.smartfolder.core.ws.ServiceLifeCycleServlet 
> javax.xml.validation.SchemaFactoryConfigurationError: Provider for
> class javax.xml.validation.SchemaFactory cannot be created at
> javax.xml.validation.SchemaFactoryFinder.findServiceProvider(Unknown
>
> 
Source)
> at javax.xml.validation.SchemaFactoryFinder._newFactory(Unknown
> Source) at
> javax.xml.validation.SchemaFactoryFinder.newFactory(Unknown
> Source) at javax.xml.validation.SchemaFactory.newInstance(Unknown
> Source) at 
> com.invisiblecrm.smartfolder.dfs.config.SfDfsConfigurationManagerImpl.
<clinit>(SfDfsConfigurationManagerImpl.java:42)
>
> 
at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Unknown Source) at 
> com.invisiblecrm.smartfolder.core.config.SfConfigurationManager.getIns
tance(SfConfigurationManager.java:89)
>
> 
at
> com.invisiblecrm.smartfolder.core.ws.ServiceLifeCycleServlet.contextIn
itialized(ServiceLifeCycleServlet.java:97)
>
> 
at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext
.java:4811)
>
> 
at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext
.java:5251)
>
> 
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
> at 
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.j
ava:1408)
>
> 
at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.j
ava:1398)
>
> 
at java.util.concurrent.FutureTask.run(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
> Source) at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
> at java.lang.Thread.run(Unknown Source) Caused by:
> java.util.ServiceConfigurationError: 
> javax.xml.validation.SchemaFactory: 
> jar:file:/C:/Program%20Files%20(x86)/Apache%20Software%20Foundation/To
mcat%208.0/webapps/My-Documentum-for-Microsoft-Outlook-WebService-7.3.0/
WEB-INF/lib/xerces-impl.jar!/META-INF/services/javax.xml.validation.Sche
maFactory:1:
>
> 
Illegal provider-class name: http\://
> www.w3.org/2001/XMLSchema=com.sun.org.apache.xerces.internal.jaxp.vali
dation.xs.SchemaFactoryImpl
>
> 
at java.util.ServiceLoader.fail(Unknown Source)
> at java.util.ServiceLoader.fail(Unknown Source) at
> java.util.ServiceLoader.parseLine(Unknown Source) at
> java.util.ServiceLoader.parse(Unknown Source) at
> java.util.ServiceLoader.access$200(Unknown Source) at
> java.util.ServiceLoader$LazyIterator.hasNextService(Unknown
> Source) at java.util.ServiceLoader$LazyIterator.hasNext(Unknown
> Source) at java.util.ServiceLoader$1.hasNext(Unknown Source) at
> javax.xml.validation.SchemaFactoryFinder$2.run(Unknown Source) at
> javax.xml.validation.SchemaFactoryFinder$2.run(Unknown Source) at
> java.security.AccessController.doPrivileged(Native Method) ... 18
> more
> 
> 10-May-2016 14:28:35.672 SEVERE [localhost-startStop-1] 
> org.apache.catalina.core.StandardContext.listenerStart Exception
> sending context initialized event to listener instance of class 
> com.invisiblecrm.smartfolder.core.ws.ServiceLifeCycleServlet 
> javax.xml.validation.SchemaFactoryConfigurationError: Provider for
> class javax.xml.validation.SchemaFactory cannot be created at
> javax.xml.validation.SchemaFactoryFinder.findServiceProvider(Unknown
>
> 
Source)
> at javax.xml.validation.SchemaFactoryFinder._newFactory(Unknown
> Source) at
> javax.xml.validation.SchemaFactoryFinder.newFactory(Unknown
> Source) at javax.xml.validation.SchemaFactory.newInstance(Unknown
> Source) at 
> com.invisiblecrm.smartfolder.dfs.config.SfDfsConfigurationManagerImpl.
<clinit>(SfDfsConfigurationManagerImpl.java:42)
>
> 
at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Unknown Source) at 
> com.invisiblecrm.smartfolder.core.config.SfConfigurationManager.getIns
tance(SfConfigurationManager.java:89)
>
> 
at
> com.invisiblecrm.smartfolder.core.ws.ServiceLifeCycleServlet.contextIn
itialized(ServiceLifeCycleServlet.java:97)
>
> 
at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext
.java:4811)
>
> 
at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext
.java:5251)
>
> 
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
> at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.
java:725)
>
> 
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:70
1)
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
>
> 
at
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java
:1092)
>
> 
at
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.
java:1834)
>
> 
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
> at java.util.concurrent.FutureTask.run(Unknown Source) at
> java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source) at java.lang.Thread.run(Unknown Source) Caused by:
> java.util.ServiceConfigurationError: 
> javax.xml.validation.SchemaFactory: 
> jar:file:/C:/Program%20Files%20(x86)/Apache%20Software%20Foundation/To
mcat%208.0/webapps/My-Documentum-for-Microsoft-Outlook-WebService-7.3.0/
WEB-INF/lib/xerces-impl.jar!/META-INF/services/javax.xml.validation.Sche
maFactory:1:
>
> 
Illegal provider-class name: http\://
> www.w3.org/2001/XMLSchema=com.sun.org.apache.xerces.internal.jaxp.vali
dation.xs.SchemaFactoryImpl
>
> 
at java.util.ServiceLoader.fail(Unknown Source)
> at java.util.ServiceLoader.fail(Unknown Source) at
> java.util.ServiceLoader.parseLine(Unknown Source) at
> java.util.ServiceLoader.parse(Unknown Source) at
> java.util.ServiceLoader.access$200(Unknown Source) at
> java.util.ServiceLoader$LazyIterator.hasNextService(Unknown
> Source) at java.util.ServiceLoader$LazyIterator.hasNext(Unknown
> Source) at java.util.ServiceLoader$1.hasNext(Unknown Source) at
> javax.xml.validation.SchemaFactoryFinder$2.run(Unknown Source) at
> javax.xml.validation.SchemaFactoryFinder$2.run(Unknown Source) at
> java.security.AccessController.doPrivileged(Native Method) ... 22
> more

Looks like the real error is:

> Caused by: java.util.ServiceConfigurationError: 
> javax.xml.validation.SchemaFactory:
> 
jar:file:/C:/Program%20Files%20(x86)/Apache%20Software%20Foundation/Tomc
at%208.0/webapps/My-Documentum-for-Microsoft-Outlook-WebService-7.3.0/WE
B-INF/lib/xerces-impl.jar!/META-INF/services/javax.xml.validation.Schema
Factory:1:
> Illegal provider-class name: http\://
> 
www.w3.org/2001/XMLSchema=com.sun.org.apache.xerces.internal.jaxp.valida
tion.xs.SchemaFactoryImpl

Find the place where you have that odd provider class name and change
it to be a legitimate Java class. (Just a guess).

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlcx8XwACgkQ9CaO5/Lv0PBRxQCglc9EhAeAFvUpnxIUPIMLoVN7
TJUAniJJbFizNN1zzfsIarjuTk2d5/uE
=jz99
-----END PGP SIGNATURE-----

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