-
1. Re: Problem using Modeshape 3.6.0 JCA adapter
rhauch Dec 9, 2013 9:58 AM (in response to aditbhiday)Can you share all or part of your configuration files? Also, while our JCA adapter does include Infinispan 5.2.x, we've not released anything that uses Infinispan 6.x JARs. Are you placing ISPN JARs on the class path as well? That may be a problem in the JCA adapter on Glassfish, since Glassfish (IIUC) does not have really have isolated class loaders. Note that none of the ModeShape releases are ready to use Infinispan 6; that will come with ModeShape 4.0 early next year.
-
2. Re: Problem using Modeshape 3.6.0 JCA adapter
oleg.kulikov Dec 9, 2013 12:38 PM (in response to aditbhiday)Hi Adit, let me try to reproduce your problem with Glassfish. I will do a test and report.
--Oleg
-
3. Re: Problem using Modeshape 3.6.0 JCA adapter
aditbhiday Dec 9, 2013 3:59 PM (in response to aditbhiday)Thank you for your responses. Am attaching the configuration files, which were used. Both these configuration files reside in "C:/modeshapeRepository" on the Windows filesystem of a machine I am using. Actually, am not placing the ISPN jars separately in the class path of the Glassfish server, but could that be a possible workaround to our problem, since the Infinispan forums say, that this error is due to Infinispan jars being inside another archive file, which in our case happens to be the JCA rar file. Would it help if I place the Infinispan jars separately on the server class path and remove the jars from the JCA .rar file ...?
-
infinispan-config.xml 1.8 KB
-
modeshapeconfig.json.zip 517 bytes
-
-
4. Re: Problem using Modeshape 3.6.0 JCA adapter
oleg.kulikov Dec 10, 2013 1:46 PM (in response to aditbhiday)Hi Adit, I have just finished test of the JCA adaptor with glassfish. Everythings is working smooth for me, the only underwater stone was how to specify url for repository URL property of the RA (with file:// prefix is working for me).
Can you please specify more details how are you deploying adaptor so we can find the difference?
--Oleg
-
5. Re: Problem using Modeshape 3.6.0 JCA adapter
aditbhiday Dec 10, 2013 6:11 PM (in response to aditbhiday)Hi. I had used the file:// prefix also, while specifying the url for the respository and yet it gave problems both times that I tried it on Glassfish 3.1.2. Did you happen to use the same version of Glassfish or a later version perhaps for this ...?
Let me give it a try again here and then write a full post with details.
-
6. Re: Problem using Modeshape 3.6.0 JCA adapter
aditbhiday Dec 10, 2013 9:54 PM (in response to aditbhiday)I use the following URL to specify the path to the file, since I am developing on Windows: file:/C:/modeshapeRepository/modeshapeconfig.json .
I seem to be getting the same errors, which were there previously. Additionally, there was another thing that I had not mentioned earlier. After creating the connection pool for the modeshape jca rar file, when I ping the connection pool through the admin console, then an error is thrown saying " the repository <name of the modeshape repository> has already been deployed". Additionally, I have a JNDI name which points to this connection pool. When I create and deploy the modeshape-jca-example (which is a part of the sample Modeshape applications in Github), then I get the errors mentioned in my first post, on accessing the Modeshape repository through JNDI.
Do you happen to be getting any of the errors that I mentioned above ...? -
7. Re: Problem using Modeshape 3.6.0 JCA adapter
oleg.kulikov Dec 10, 2013 11:24 PM (in response to aditbhiday)Initialy I tryied with Glassfish 4 (no problem) and when I am trying GlassFish 3.1.2.2(build 5) I am getting exception java.lang.ClassCastException: org.modeshape.jca.JcrRepositoryHandle cannot be cast to javax.jcr.Repository what is definitely not true. However, in all cases repository starts successfully. Let me try to digg a bit more.
-
8. Re: Problem using Modeshape 3.6.0 JCA adapter
oleg.kulikov Dec 11, 2013 3:29 AM (in response to oleg.kulikov)Resolved problem with class cast exception and now got exception with infinispan similar to the original post. Trying to resolve the problem.
-
9. Re: Problem using Modeshape 3.6.0 JCA adapter
oleg.kulikov Dec 11, 2013 10:06 AM (in response to oleg.kulikov)Hi Adit,
I am able to deploy JCA on GlassFish 3.1.2 now. It will work if inside rar leave only modeshape-jca.jar and rest jars move domain/lib folder. You can try this way also.
--Oleg
-
10. Re: Problem using Modeshape 3.6.0 JCA adapter
aditbhiday Dec 11, 2013 9:34 PM (in response to aditbhiday)Modeshape 3.6.0.Final JCA adapter works fine with the above mentioned workaround.
Thanks a lot Oleg and Randall for your help on this. Cheers!