You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by naciu <na...@gmail.com> on 2021/10/26 14:54:01 UTC

Please when use the openejb-core-hibernate pom.xml as dependency ??

https://github.com/apache/tomee/blob/master/utils/openejb-core-hibernate/pom.xml

hi guys.

Please some of you can explain me how and when  i can use this pom.xml 
into a web app,
  for use hibernate or also for get a tomee plus with hibernate from 
tomee-maven-plugin
using the openejb-core-hibernate pom.xml as dependency ?

i have already tried the instrucion like into tomee.pdf :

https://tomee.apache.org/developer/tools/maven/tomee.pdf

i used the following configuration:

<plugin>
<groupId>org.apache.tomee.maven</groupId>
<artifactId>tomee-maven-plugin</artifactId>
<version>7.1.4</version>
<configuration>
<tomeeClassifier>plus</tomeeClassifier>
<debug>false</debug>
<debugPort>5005</debugPort>
<args>-Dfoo=bar</args>
<config>${project.basedir}/src/test/tomee/conf</config>
<libs>
<lib>mysql:mysql-connector-java:5.1.20</lib>
</libs>
<webapps>
<webapp>org.superbiz:myapp:4.3?name=ROOT</webapp>
<webapp>org.superbiz:api:1.1</webapp>
</webapps>
<apps>
<app>org.superbiz:mybugapp:3.2:ear</app>
</apps>
<libs>
<lib>mysql:mysql-connector-java:5.1.21</lib>
<lib>unzip:org.superbiz:hibernate-bundle:4.1.0.Final:zip</lib>
<lib>remove:openjpa-</lib>
</libs>
</configuration>
</plugin>


but i get that error:
org.superbiz:hibernate-bundle:4.1.0.Final:zip is not evailable.

please how i can resolve?

i would get with tomee mavn plugin a tomee plus 7.1,4 but with hibernate 
and not openjpa.

the
utils/openejb-core-hibernate/pom.xml can help me for get tomee7.1.4 plus 
with hibernate?





-- 
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus

Re: Please when use the openejb-core-hibernate pom.xml as dependency ??

Posted by naciu <na...@gmail.com>.
Thank you.
But my question for the tomee guys is:

When  i can use this pom xml?

https://github.com/apache/tomee/blob/master/utils/openejb-core-hibernate/pom.xml



Il Mer 27 Ott 2021, 16:48 Gilberto Caetano de Andrade <gi...@gmail.com>
ha scritto:

> Normally I use the tomee-embedded-maven-plugin[1] as my development flow.
> To run it in production I use the tomee-maven-plugin[2] to build a fatjar.
>
> Regards,
> Gilberto
>
> [1] https://gist.github.com/gilbertoca/f10e7ef47c0802286a5cdc43b2375d8f
> [2] https://www.tomitribe.com/blog/tomee-fat-jar-deployments/
>
>
> On 2021/10/26 14:54:01, naciu <na...@gmail.com> wrote:
> >
> https://github.com/apache/tomee/blob/master/utils/openejb-core-hibernate/pom.xml
> >
> > hi guys.
> >
> > Please some of you can explain me how and when  i can use this pom.xml
> > into a web app,
> >   for use hibernate or also for get a tomee plus with hibernate from
> > tomee-maven-plugin
> > using the openejb-core-hibernate pom.xml as dependency ?
> >
> > i have already tried the instrucion like into tomee.pdf :
> >
> > https://tomee.apache.org/developer/tools/maven/tomee.pdf
> >
> > i used the following configuration:
> >
> > <plugin>
> > <groupId>org.apache.tomee.maven</groupId>
> > <artifactId>tomee-maven-plugin</artifactId>
> > <version>7.1.4</version>
> > <configuration>
> > <tomeeClassifier>plus</tomeeClassifier>
> > <debug>false</debug>
> > <debugPort>5005</debugPort>
> > <args>-Dfoo=bar</args>
> > <config>${project.basedir}/src/test/tomee/conf</config>
> > <libs>
> > <lib>mysql:mysql-connector-java:5.1.20</lib>
> > </libs>
> > <webapps>
> > <webapp>org.superbiz:myapp:4.3?name=ROOT</webapp>
> > <webapp>org.superbiz:api:1.1</webapp>
> > </webapps>
> > <apps>
> > <app>org.superbiz:mybugapp:3.2:ear</app>
> > </apps>
> > <libs>
> > <lib>mysql:mysql-connector-java:5.1.21</lib>
> > <lib>unzip:org.superbiz:hibernate-bundle:4.1.0.Final:zip</lib>
> > <lib>remove:openjpa-</lib>
> > </libs>
> > </configuration>
> > </plugin>
> >
> >
> > but i get that error:
> > org.superbiz:hibernate-bundle:4.1.0.Final:zip is not evailable.
> >
> > please how i can resolve?
> >
> > i would get with tomee mavn plugin a tomee plus 7.1,4 but with hibernate
> > and not openjpa.
> >
> > the
> > utils/openejb-core-hibernate/pom.xml can help me for get tomee7.1.4 plus
> > with hibernate?
> >
> >
> >
> >
> >
> > --
> > Questa e-mail è stata controllata per individuare virus con Avast
> antivirus.
> > https://www.avast.com/antivirus
> >
>

Re: Please when use the openejb-core-hibernate pom.xml as dependency ??

Posted by Gilberto Caetano de Andrade <gi...@gmail.com>.
Normally I use the tomee-embedded-maven-plugin[1] as my development flow. 
To run it in production I use the tomee-maven-plugin[2] to build a fatjar.

Regards,
Gilberto

[1] https://gist.github.com/gilbertoca/f10e7ef47c0802286a5cdc43b2375d8f
[2] https://www.tomitribe.com/blog/tomee-fat-jar-deployments/


On 2021/10/26 14:54:01, naciu <na...@gmail.com> wrote: 
> https://github.com/apache/tomee/blob/master/utils/openejb-core-hibernate/pom.xml
> 
> hi guys.
> 
> Please some of you can explain me how and when  i can use this pom.xml 
> into a web app,
>   for use hibernate or also for get a tomee plus with hibernate from 
> tomee-maven-plugin
> using the openejb-core-hibernate pom.xml as dependency ?
> 
> i have already tried the instrucion like into tomee.pdf :
> 
> https://tomee.apache.org/developer/tools/maven/tomee.pdf
> 
> i used the following configuration:
> 
> <plugin>
> <groupId>org.apache.tomee.maven</groupId>
> <artifactId>tomee-maven-plugin</artifactId>
> <version>7.1.4</version>
> <configuration>
> <tomeeClassifier>plus</tomeeClassifier>
> <debug>false</debug>
> <debugPort>5005</debugPort>
> <args>-Dfoo=bar</args>
> <config>${project.basedir}/src/test/tomee/conf</config>
> <libs>
> <lib>mysql:mysql-connector-java:5.1.20</lib>
> </libs>
> <webapps>
> <webapp>org.superbiz:myapp:4.3?name=ROOT</webapp>
> <webapp>org.superbiz:api:1.1</webapp>
> </webapps>
> <apps>
> <app>org.superbiz:mybugapp:3.2:ear</app>
> </apps>
> <libs>
> <lib>mysql:mysql-connector-java:5.1.21</lib>
> <lib>unzip:org.superbiz:hibernate-bundle:4.1.0.Final:zip</lib>
> <lib>remove:openjpa-</lib>
> </libs>
> </configuration>
> </plugin>
> 
> 
> but i get that error:
> org.superbiz:hibernate-bundle:4.1.0.Final:zip is not evailable.
> 
> please how i can resolve?
> 
> i would get with tomee mavn plugin a tomee plus 7.1,4 but with hibernate 
> and not openjpa.
> 
> the
> utils/openejb-core-hibernate/pom.xml can help me for get tomee7.1.4 plus 
> with hibernate?
> 
> 
> 
> 
> 
> -- 
> Questa e-mail è stata controllata per individuare virus con Avast antivirus.
> https://www.avast.com/antivirus
> 

Re: Please when use the openejb-core-hibernate pom.xml as dependency ??

Posted by naciu <na...@gmail.com>.
But for what use is the openejb-core-hibernate.?

Il Mer 27 Ott 2021, 19:48 Gilberto Caetano de Andrade <gi...@gmail.com>
ha scritto:

> Tomee comes with 4 flavors: microprofile, webprofile, plume and plus [1].
> Each one comes with defaults java ee api implementation and you can
> customize you option.
> For example, I choose webprofile and than I've replaced the JSF,
> Validation and JPA api - so I've customized it.
> For customization, the tomee project created such abstractions to help the
> integration:
> tomee-mojarra
> openejb-core-eclipselink
>
> So, you should use the lib (openejb-core-hibernate), not the pom.xml to
> make your customization.
>
> Hth,
>
> Gilberto
>
> [1] http://tomee.apache.org/comparison.html
>
> On 2021/10/27 15:41:14, naciu <na...@gmail.com> wrote:
> > Ok But this pom.xml when i can use it?
> >
> > Il Mar 26 Ott 2021, 16:54 naciu <na...@gmail.com> ha scritto:
> >
> > >
> > >
> https://github.com/apache/tomee/blob/master/utils/openejb-core-hibernate/pom.xml
> > >
> > > hi guys.
> > >
> > > Please some of you can explain me how and when  i can use this pom.xml
> > > into a web app,
> > >  for use hibernate or also for get a tomee plus with hibernate from
> > > tomee-maven-plugin
> > > using the openejb-core-hibernate pom.xml as dependency ?
> > >
> > > i have already tried the instrucion like into tomee.pdf :
> > >
> > > https://tomee.apache.org/developer/tools/maven/tomee.pdf
> > >
> > > i used the following configuration:
> > >
> > > <plugin>
> > > <groupId>org.apache.tomee.maven</groupId>
> > > <artifactId>tomee-maven-plugin</artifactId>
> > > <version>7.1.4</version>
> > > <configuration>
> > > <tomeeClassifier>plus</tomeeClassifier>
> > > <debug>false</debug>
> > > <debugPort>5005</debugPort>
> > > <args>-Dfoo=bar</args>
> > > <config>${project.basedir}/src/test/tomee/conf</config>
> > > <libs>
> > > <lib>mysql:mysql-connector-java:5.1.20</lib>
> > > </libs>
> > > <webapps>
> > > <webapp>org.superbiz:myapp:4.3?name=ROOT</webapp>
> > > <webapp>org.superbiz:api:1.1</webapp>
> > > </webapps>
> > > <apps>
> > > <app>org.superbiz:mybugapp:3.2:ear</app>
> > > </apps>
> > > <libs>
> > > <lib>mysql:mysql-connector-java:5.1.21</lib>
> > > <lib>unzip:org.superbiz:hibernate-bundle:4.1.0.Final:zip</lib>
> > > <lib>remove:openjpa-</lib>
> > > </libs>
> > > </configuration>
> > > </plugin>
> > >
> > >
> > > but i get that error:
> > > org.superbiz:hibernate-bundle:4.1.0.Final:zip is not evailable.
> > >
> > > please how i can resolve?
> > >
> > > i would get with tomee mavn plugin a tomee plus 7.1,4 but with
> hibernate
> > > and not openjpa.
> > >
> > > the
> > > utils/openejb-core-hibernate/pom.xml can help me for get tomee7.1.4
> plus
> > > with hibernate?
> > >
> > >
> > >
> > >
> > >
> > > <
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
> Mail
> > > priva di virus. www.avast.com
> > > <
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
> >
> > > <#m_-2701380692736520617_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> > >
> >
>

Re: Please when use the openejb-core-hibernate pom.xml as dependency ??

Posted by Gilberto Caetano de Andrade <gi...@gmail.com>.
Tomee comes with 4 flavors: microprofile, webprofile, plume and plus [1].
Each one comes with defaults java ee api implementation and you can customize you option.
For example, I choose webprofile and than I've replaced the JSF, Validation and JPA api - so I've customized it.
For customization, the tomee project created such abstractions to help the integration:
tomee-mojarra
openejb-core-eclipselink

So, you should use the lib (openejb-core-hibernate), not the pom.xml to make your customization.

Hth,

Gilberto

[1] http://tomee.apache.org/comparison.html

On 2021/10/27 15:41:14, naciu <na...@gmail.com> wrote: 
> Ok But this pom.xml when i can use it?
> 
> Il Mar 26 Ott 2021, 16:54 naciu <na...@gmail.com> ha scritto:
> 
> >
> > https://github.com/apache/tomee/blob/master/utils/openejb-core-hibernate/pom.xml
> >
> > hi guys.
> >
> > Please some of you can explain me how and when  i can use this pom.xml
> > into a web app,
> >  for use hibernate or also for get a tomee plus with hibernate from
> > tomee-maven-plugin
> > using the openejb-core-hibernate pom.xml as dependency ?
> >
> > i have already tried the instrucion like into tomee.pdf :
> >
> > https://tomee.apache.org/developer/tools/maven/tomee.pdf
> >
> > i used the following configuration:
> >
> > <plugin>
> > <groupId>org.apache.tomee.maven</groupId>
> > <artifactId>tomee-maven-plugin</artifactId>
> > <version>7.1.4</version>
> > <configuration>
> > <tomeeClassifier>plus</tomeeClassifier>
> > <debug>false</debug>
> > <debugPort>5005</debugPort>
> > <args>-Dfoo=bar</args>
> > <config>${project.basedir}/src/test/tomee/conf</config>
> > <libs>
> > <lib>mysql:mysql-connector-java:5.1.20</lib>
> > </libs>
> > <webapps>
> > <webapp>org.superbiz:myapp:4.3?name=ROOT</webapp>
> > <webapp>org.superbiz:api:1.1</webapp>
> > </webapps>
> > <apps>
> > <app>org.superbiz:mybugapp:3.2:ear</app>
> > </apps>
> > <libs>
> > <lib>mysql:mysql-connector-java:5.1.21</lib>
> > <lib>unzip:org.superbiz:hibernate-bundle:4.1.0.Final:zip</lib>
> > <lib>remove:openjpa-</lib>
> > </libs>
> > </configuration>
> > </plugin>
> >
> >
> > but i get that error:
> > org.superbiz:hibernate-bundle:4.1.0.Final:zip is not evailable.
> >
> > please how i can resolve?
> >
> > i would get with tomee mavn plugin a tomee plus 7.1,4 but with hibernate
> > and not openjpa.
> >
> > the
> > utils/openejb-core-hibernate/pom.xml can help me for get tomee7.1.4 plus
> > with hibernate?
> >
> >
> >
> >
> >
> > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> Mail
> > priva di virus. www.avast.com
> > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
> > <#m_-2701380692736520617_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> >
> 

Re: Please when use the openejb-core-hibernate pom.xml as dependency ??

Posted by naciu <na...@gmail.com>.
Ok But this pom.xml when i can use it?

Il Mar 26 Ott 2021, 16:54 naciu <na...@gmail.com> ha scritto:

>
> https://github.com/apache/tomee/blob/master/utils/openejb-core-hibernate/pom.xml
>
> hi guys.
>
> Please some of you can explain me how and when  i can use this pom.xml
> into a web app,
>  for use hibernate or also for get a tomee plus with hibernate from
> tomee-maven-plugin
> using the openejb-core-hibernate pom.xml as dependency ?
>
> i have already tried the instrucion like into tomee.pdf :
>
> https://tomee.apache.org/developer/tools/maven/tomee.pdf
>
> i used the following configuration:
>
> <plugin>
> <groupId>org.apache.tomee.maven</groupId>
> <artifactId>tomee-maven-plugin</artifactId>
> <version>7.1.4</version>
> <configuration>
> <tomeeClassifier>plus</tomeeClassifier>
> <debug>false</debug>
> <debugPort>5005</debugPort>
> <args>-Dfoo=bar</args>
> <config>${project.basedir}/src/test/tomee/conf</config>
> <libs>
> <lib>mysql:mysql-connector-java:5.1.20</lib>
> </libs>
> <webapps>
> <webapp>org.superbiz:myapp:4.3?name=ROOT</webapp>
> <webapp>org.superbiz:api:1.1</webapp>
> </webapps>
> <apps>
> <app>org.superbiz:mybugapp:3.2:ear</app>
> </apps>
> <libs>
> <lib>mysql:mysql-connector-java:5.1.21</lib>
> <lib>unzip:org.superbiz:hibernate-bundle:4.1.0.Final:zip</lib>
> <lib>remove:openjpa-</lib>
> </libs>
> </configuration>
> </plugin>
>
>
> but i get that error:
> org.superbiz:hibernate-bundle:4.1.0.Final:zip is not evailable.
>
> please how i can resolve?
>
> i would get with tomee mavn plugin a tomee plus 7.1,4 but with hibernate
> and not openjpa.
>
> the
> utils/openejb-core-hibernate/pom.xml can help me for get tomee7.1.4 plus
> with hibernate?
>
>
>
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> Mail
> priva di virus. www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
> <#m_-2701380692736520617_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>