Manoj Kumar abc

Greenhorn
+ Follow
since Jul 09, 2015
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Manoj Kumar abc

I am working on migration project from websphere to jboss 6.3 eap. When i deploy my application on jboss, i am getting Parser exception as below:


18:41:51,567 ERROR [com.silvermoongroup.was.startup.ejb.EagerClassLoaderBean]
(ServerService Thread Pool -- 77) Error when initialising class: Unable to return
specified BeanFactory instance:
factory key [com.silvermoongroup.common], from group with resource name
[classpath:com/churchmutual/ocns/common/beanRefContext.xml];
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.silvermoongroup.common' defined in class path resource
[com/churchmutual/ocns/common/beanRefContext.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException: Could
not instantiate bean class
[org.springframework.context.support.ClassPathXmlApplicationContext]:
Constructor threw exception; nested exception is
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 37
in XML document from class path resource [com/silvermoongroup/base/tx/jee-
transaction-context.xml] is invalid; nested exception is
org.xml.sax.SAXParseException; lineNumber: 37; columnNumber: 82; cvc-elt.1:
Cannot find the declaration of element 'beans'.:
org.springframework.beans.factory.access.BootstrapException: Unable to return
specified BeanFactory instance: factory key [com.silvermoongroup.common], from
group with resource name
[classpath:com/churchmutual/ocns/common/beanRefContext.xml]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'com.silvermoongroup.common' defined in class path resource
[com/churchmutual/ocns/common/beanRefContext.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException: Could
not instantiate bean class
[org.springframework.context.support.ClassPathXmlApplicationContext]:
Constructor threw exception; nested exception is
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 37
in XML document from class path resource [com/silvermoongroup/base/tx/jee-
transaction-context.xml] is invalid; nested exception is
org.xml.sax.SAXParseException; lineNumber: 37; columnNumber: 82; cvc-elt.1:
Cannot find the declaration of element 'beans'.


So i changed beans xmlns to DTD like this:


<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">


to


<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN"
"http://www.springframework.org/dtd/spring-beans-2.0.dtd">


and it worked fine, there is no parsing exception as such.
But in one xml having transaction configuration like this:


<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd">


when i changed it to above mentioned DTD, it throwing exception.
org.xml.sax.SAXParseException; lineNumber: 12; columnNumber: 15; Document root element "tx:transaction", must match DOCTYPE root "beans".

Please help me to resolve this issue.
8 years ago
I am working on migration project from websphere to jboss 6.3 eap. When i deploy my application on jboss, i am getting Parser exception as below:


18:41:51,567 ERROR [com.silvermoongroup.was.startup.ejb.EagerClassLoaderBean]
(ServerService Thread Pool -- 77) Error when initialising class: Unable to return
specified BeanFactory instance:
factory key [com.silvermoongroup.common], from group with resource name
[classpath:com/churchmutual/ocns/common/beanRefContext.xml];
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.silvermoongroup.common' defined in class path resource
[com/churchmutual/ocns/common/beanRefContext.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException: Could
not instantiate bean class
[org.springframework.context.support.ClassPathXmlApplicationContext]:
Constructor threw exception; nested exception is
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 37
in XML document from class path resource [com/silvermoongroup/base/tx/jee-
transaction-context.xml] is invalid; nested exception is
org.xml.sax.SAXParseException; lineNumber: 37; columnNumber: 82; cvc-elt.1:
Cannot find the declaration of element 'beans'.:
org.springframework.beans.factory.access.BootstrapException: Unable to return
specified BeanFactory instance: factory key [com.silvermoongroup.common], from
group with resource name
[classpath:com/churchmutual/ocns/common/beanRefContext.xml]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'com.silvermoongroup.common' defined in class path resource
[com/churchmutual/ocns/common/beanRefContext.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException: Could
not instantiate bean class
[org.springframework.context.support.ClassPathXmlApplicationContext]:
Constructor threw exception; nested exception is
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 37
in XML document from class path resource [com/silvermoongroup/base/tx/jee-
transaction-context.xml] is invalid; nested exception is
org.xml.sax.SAXParseException; lineNumber: 37; columnNumber: 82; cvc-elt.1:
Cannot find the declaration of element 'beans'.


So i changed beans xmlns to DTD like this:


<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">


to


<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN"
"http://www.springframework.org/dtd/spring-beans-2.0.dtd">


and it worked fine, there is no parsing exception as such.
But in one xml having transaction configuration like this:


<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd">


when i changed it to above mentioned DTD, it throwing exception.
org.xml.sax.SAXParseException; lineNumber: 12; columnNumber: 15; Document root element "tx:transaction", must match DOCTYPE root "beans".

Please help me to resolve this issue.
8 years ago
I am working on migration project from websphere to jboss 6.3 eap. When i deploy my application on jboss, i am getting Parser exception as below:


18:41:51,567 ERROR [com.silvermoongroup.was.startup.ejb.EagerClassLoaderBean]
(ServerService Thread Pool -- 77) Error when initialising class: Unable to return
specified BeanFactory instance:
factory key [com.silvermoongroup.common], from group with resource name
[classpath:com/churchmutual/ocns/common/beanRefContext.xml];
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.silvermoongroup.common' defined in class path resource
[com/churchmutual/ocns/common/beanRefContext.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException: Could
not instantiate bean class
[org.springframework.context.support.ClassPathXmlApplicationContext]:
Constructor threw exception; nested exception is
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 37
in XML document from class path resource [com/silvermoongroup/base/tx/jee-
transaction-context.xml] is invalid; nested exception is
org.xml.sax.SAXParseException; lineNumber: 37; columnNumber: 82; cvc-elt.1:
Cannot find the declaration of element 'beans'.:
org.springframework.beans.factory.access.BootstrapException: Unable to return
specified BeanFactory instance: factory key [com.silvermoongroup.common], from
group with resource name
[classpath:com/churchmutual/ocns/common/beanRefContext.xml]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'com.silvermoongroup.common' defined in class path resource
[com/churchmutual/ocns/common/beanRefContext.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException: Could
not instantiate bean class
[org.springframework.context.support.ClassPathXmlApplicationContext]:
Constructor threw exception; nested exception is
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 37
in XML document from class path resource [com/silvermoongroup/base/tx/jee-
transaction-context.xml] is invalid; nested exception is
org.xml.sax.SAXParseException; lineNumber: 37; columnNumber: 82; cvc-elt.1:
Cannot find the declaration of element 'beans'.


So i changed beans xmlns to DTD like this:


<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">


to


<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN"
"http://www.springframework.org/dtd/spring-beans-2.0.dtd">


and it worked fine, there is no parsing exception as such.
But in one xml having transaction configuration like this:


<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd">


when i changed it to above mentioned DTD, it throwing exception.
org.xml.sax.SAXParseException; lineNumber: 12; columnNumber: 15; Document root element "tx:transaction", must match DOCTYPE root "beans".
I want permanent solution for this. Please help, thanks in advance.
If you need extra information please feel free to post here.
8 years ago