JBoss Community

Validator problems

created by Martin Phillips in IronJacamar - View the full discussion

Hi guys,

 

I've been having a go at running the validator using the standalone ironjackamar and have run into a bit of a problem (on both windows and linux).

 

Firstly, the JEE classes are not in the classpath for the validator:

 

C:\jboss.ironjackamar\ironjacamar-1.0.0.Final\doc\validator>java -classpath ..\..\lib\ironjacamar-validator-cli.jar;..\.

.\lib\ironjacamar-common-spi.jar;..\..\lib\jboss-logging.jar;..\..\lib\jboss-common-core.jar;..\..\lib\ironjacamar-spec-

api.jar;..\..\lib\papaki-core.jar;..\..\lib\javassist.jar;..\..\lib\ironjacamar-common-impl.jar;..\..\lib\ironjacamar-co

mmon-impl-papaki.jar;..\..\lib\ironjacamar-common-api.jar;..\..\lib\ironjacamar-validator.jar org.jboss.jca.validator.cl

i.Main c:\test\MQRA\7.0.1-noclasspath\wmq.jmsra.rar

Exception in thread "main" java.lang.NoClassDefFoundError: javax/jms/JMSException

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Class.java:247)

        at org.jboss.jca.validator.Validation.createResourceAdapter(Validation.java:256)

        at org.jboss.jca.validator.Validation.validate(Validation.java:155)

        at org.jboss.jca.validator.cli.Main.main(Main.java:92)

Caused by: java.lang.ClassNotFoundException: javax.jms.JMSException

        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

        ... 5 more

 

 

I added them in using the JEE jar I used to create the RA and then ran into the following exception:

 

 

C:\jboss.ironjackamar\ironjacamar-1.0.0.Final\doc\validator>java -classpath ..\..\lib\ironjacamar-validator-cli.jar;..\.

.\lib\ironjacamar-common-spi.jar;..\..\lib\jboss-logging.jar;..\..\lib\jboss-common-core.jar;..\..\lib\ironjacamar-spec-

api.jar;..\..\lib\papaki-core.jar;..\..\lib\javassist.jar;..\..\lib\ironjacamar-common-impl.jar;..\..\lib\ironjacamar-co

mmon-impl-papaki.jar;..\..\lib\ironjacamar-common-api.jar;..\..\lib\ironjacamar-validator.jar;C:\k000\src\com.ibm.mq.con

nector\src\3rdparty\j2ee.jar org.jboss.jca.validator.cli.Main c:\test\MQRA\7.0.1-noclasspath\wmq.jmsra.rar

java.io.IOException: . can't be created

        at org.jboss.jca.validator.Validation.validate(Validation.java:171)

        at org.jboss.jca.validator.cli.Main.main(Main.java:92)

Validation unknown

 

 

On linux I was running as root, so there should be no file permission issues.

 

Any thoughts?

Reply to this message by going to Community

Start a new discussion in IronJacamar at Community