Re: [Resin-interest] Hibernate and JPA (was Resin 4 and Java 8)

2015-04-07 Thread smallufo
Hi
I tried both this and the servlet-hack solution
But resin(4.0.40) complains




*xxx.jar!/META-INF/persistence.xml:4: persistence
xmlns=http://xmlns.jcp.org/xml/ns/persistence
http://xmlns.jcp.org/xml/ns/persistence is an unexpected top-level
tag.  **2: persistence
xmlns=http://xmlns.jcp.org/xml/ns/persistence
http://xmlns.jcp.org/xml/ns/persistence*







*3:  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
http://www.w3.org/2001/XMLSchema-instance4:
 xsi:schemaLocation=http://xmlns.jcp.org/xml/ns/persistence
http://xmlns.jcp.org/xml/ns/persistence
http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd
http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd
version=2.15: **persistence
xmlns=http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence is expected.*

*Syntax: persistence*


It seems resin mandates persistence.xml with the old namespace.
Defined in *com/caucho/amber/cfg/persistence-30.rnc and persistence-31.rnc*
,
and verify by *com/caucho/relaxng/VerifierHandlerImpl* .

Is it possible to turn it off ?



2015-03-27 8:35 GMT+08:00 Nam Nguyen n...@caucho.com:

 Thanks for the suggestion,

 I went ahead and added it for the upcoming 4.0.44 release.

 -- Nam

 On 3/26/15 10:00 AM, resin-interest-requ...@caucho.com wrote:
  It would also be nice if you could put:
 
  jvm-classpath${jvm_classpath}/jvm-classpath
 
  In the cluster-default.xml file, so that the only change necessary is to
  the resin.properties file.
 (*Chris*)


 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest

___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Hibernate and JPA (was Resin 4 and Java 8)

2015-04-07 Thread smallufo
My JPA is implemented by hibernate , managed by spring.
Is it possible to disable amber ?

2015-04-07 17:23 GMT+08:00 smallufo small...@gmail.com:

 Hi
 I tried both this and the servlet-hack solution
 But resin(4.0.40) complains




 *xxx.jar!/META-INF/persistence.xml:4: persistence
 xmlns=http://xmlns.jcp.org/xml/ns/persistence
 http://xmlns.jcp.org/xml/ns/persistence is an unexpected top-level
 tag.  **2: persistence
 xmlns=http://xmlns.jcp.org/xml/ns/persistence
 http://xmlns.jcp.org/xml/ns/persistence*







 *3:  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
 http://www.w3.org/2001/XMLSchema-instance4:
  xsi:schemaLocation=http://xmlns.jcp.org/xml/ns/persistence
 http://xmlns.jcp.org/xml/ns/persistence
 http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd
 http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd
 version=2.15: **persistence
 xmlns=http://java.sun.com/xml/ns/persistence
 http://java.sun.com/xml/ns/persistence is expected.*

 *Syntax: persistence*


 It seems resin mandates persistence.xml with the old namespace.
 Defined in *com/caucho/amber/cfg/persistence-30.rnc and
 persistence-31.rnc* ,
 and verify by *com/caucho/relaxng/VerifierHandlerImpl* .

 Is it possible to turn it off ?



 2015-03-27 8:35 GMT+08:00 Nam Nguyen n...@caucho.com:

 Thanks for the suggestion,

 I went ahead and added it for the upcoming 4.0.44 release.

 -- Nam

 On 3/26/15 10:00 AM, resin-interest-requ...@caucho.com wrote:
  It would also be nice if you could put:
 
  jvm-classpath${jvm_classpath}/jvm-classpath
 
  In the cluster-default.xml file, so that the only change necessary is to
  the resin.properties file.
 (*Chris*)


 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Hibernate and JPA (was Resin 4 and Java 8)

2015-03-26 Thread Nam Nguyen
Thanks for the suggestion,

I went ahead and added it for the upcoming 4.0.44 release.

-- Nam

On 3/26/15 10:00 AM, resin-interest-requ...@caucho.com wrote:
 It would also be nice if you could put:

 jvm-classpath${jvm_classpath}/jvm-classpath

 In the cluster-default.xml file, so that the only change necessary is to
 the resin.properties file.
(*Chris*)


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Hibernate and JPA (was Resin 4 and Java 8)

2015-03-25 Thread Chris Pratt
It would also be nice if you could put:

jvm-classpath${jvm_classpath}/jvm-classpath

In the cluster-default.xml file, so that the only change necessary is to
the resin.properties file.
  (*Chris*)

On Wed, Mar 25, 2015, 5:24 PM Nam Nguyen n...@caucho.com wrote:

 Thanks Chris,

 Good news that jvm-classpath is working for you.  I've add a request
 to update the docs:

 http://bugs.caucho.com/view.php?id=5872

 -- Nam

 On 3/25/15 10:00 AM, resin-interest-requ...@caucho.com wrote:
  Message: 2
  Date: Wed, 25 Mar 2015 05:51:10 +
  From: Chris Prattthechrispr...@gmail.com
  Subject: Re: [Resin-interest] [Resin] Resin 4 and Java 8
  To: General Discussion for the Resin application server
resin-interest@caucho.com
  Message-ID:
CAALdY0wf=6bcdZ1KBQTXk4sT6iXr_UFfsGhsfs35if45uq6K_Q@mail.
 gmail.com
  Content-Type: text/plain; charset=utf-8
 
  My bad, I had it set up wrong.  But, for anyone trying to get it working,
  this worked:
 
 
  1. Download the Hibernate JPA 2.1 API jar file from MavenCentral (
  http://mvnrepository.com/artifact/org.hibernate.javax.
 persistence/hibernate-jpa-2.1-api/1.0.0.Final)
  and copy it into the ext-lib directory
  2. Edit cluster-default.xml and add
  jvm-classpath${jvm_classpath}/jvm-classpath on line 55 (inside
 the
  server-default element, right after jvm-mode just to keep like
 things
  together)
  3. Edit resin.properties and add jvm_classpath:
  ext-lib/hibernate-jpa-2.1-api-1.0.0.Final.jar on line 92 (again,
 right
  after jvm_mode)
  4. Start it up and it should work

 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest

___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest