Quantcast

JEE project

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

JEE project

Michel
Hello everybody,

I'm new maven user and I start in maven with a JEE project.
The project have 3 parts :
- ejb with persistance (JPA)
- web with JSF
- client connect with ejb by RMI

If I good understand I must create 3 modules for each parts and a
pom.xml to build an ear file.
I have choice : ejb-javaee6 and maven-archetype-webapp for 2 firsts
parts but I don't find an archetype for the client.

I have found an archetype named ear-javaee6, with this archetype can I
create my project ?

Thanks very much
_____________________
Michel BARRET

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: JEE project

Antonio Petrelli
2010/9/25 Michel <[hidden email]>:
> I'm new maven user and I start in maven with a JEE project.
> The project have 3 parts :
> - ejb with persistance (JPA)
> - web with JSF
> - client connect with ejb by RMI
>
> If I good understand I must create 3 modules for each parts and a
> pom.xml to build an ear file.

No:
1. a module for EJB (and, if you like it, a module for JPA package)
2. a module for web
3. a module for the EAR (packaging: ear)
4. for your convenience, a container project (packaging: pom) that
collects all of the above as modules.

> I have choice : ejb-javaee6 and maven-archetype-webapp for 2 firsts
> parts but I don't find an archetype for the client.

The EJB client can be automatically generated starting from the EJB:
http://maven.apache.org/plugins/maven-ejb-plugin/examples/generating-ejb-client.html

> I have found an archetype named ear-javaee6, with this archetype can I
> create my project ?

This is useful to create a module (or project) with ear packaging that
follows Java EE 6 (so you need a Java EE 6 capable server).

Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: JEE project

Michel
Thanks for your answer.

2010/9/26 Antonio Petrelli <[hidden email]>:

> 2010/9/25 Michel <[hidden email]>:
>> I'm new maven user and I start in maven with a JEE project.
>> The project have 3 parts :
>> - ejb with persistance (JPA)
>> - web with JSF
>> - client connect with ejb by RMI
>>
>> If I good understand I must create 3 modules for each parts and a
>> pom.xml to build an ear file.
>
> No:
> 1. a module for EJB (and, if you like it, a module for JPA package)
> 2. a module for web
> 3. a module for the EAR (packaging: ear)
> 4. for your convenience, a container project (packaging: pom) that
> collects all of the above as modules.

I have make juste EJB, Web and parent module for the moment when the
compiling of web project will works, I make the EAR module. (I don't
use the parent module for the moment)

>
>> I have choice : ejb-javaee6 and maven-archetype-webapp for 2 firsts
>> parts but I don't find an archetype for the client.
>
> The EJB client can be automatically generated starting from the EJB:
> http://maven.apache.org/plugins/maven-ejb-plugin/examples/generating-ejb-client.html

The EJB client is an application server, if I understand (like glassfish) ?

>> I have found an archetype named ear-javaee6, with this archetype can I
>> create my project ?
>
> This is useful to create a module (or project) with ear packaging that
> follows Java EE 6 (so you need a Java EE 6 capable server).

We use glassfish v3, but I don't understand how use glassfish plugin
or glassfish embedded plugin. I must use a glassfish installed on my
system ? I don't know how make it.

>
> Antonio
>

Thanks a lot of

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

_____________________
Michel BARRET

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: JEE project

Antonio Petrelli
2010/9/26 Michel <[hidden email]>:

> 2010/9/26 Antonio Petrelli <[hidden email]>:
>> 2010/9/25 Michel <[hidden email]>:
>>> I'm new maven user and I start in maven with a JEE project.
>>> The project have 3 parts :
>>> - ejb with persistance (JPA)
>>> - web with JSF
>>> - client connect with ejb by RMI
>>>
>>> If I good understand I must create 3 modules for each parts and a
>>> pom.xml to build an ear file.
>>
>> No:
>> 1. a module for EJB (and, if you like it, a module for JPA package)
>> 2. a module for web
>> 3. a module for the EAR (packaging: ear)
>> 4. for your convenience, a container project (packaging: pom) that
>> collects all of the above as modules.
>
> I have make juste EJB, Web and parent module for the moment when the
> compiling of web project will works, I make the EAR module. (I don't
> use the parent module for the moment)

You need it if you want to easily configure application.xml and for
library and module placement.

>>> I have choice : ejb-javaee6 and maven-archetype-webapp for 2 firsts
>>> parts but I don't find an archetype for the client.
>>
>> The EJB client can be automatically generated starting from the EJB:
>> http://maven.apache.org/plugins/maven-ejb-plugin/examples/generating-ejb-client.html
>
> The EJB client is an application server, if I understand (like glassfish) ?

No, the EJB client is the part of code that is required by the client.
Usually, the local and remote interfaces and all classes used in these
interfaces.

>>> I have found an archetype named ear-javaee6, with this archetype can I
>>> create my project ?
>>
>> This is useful to create a module (or project) with ear packaging that
>> follows Java EE 6 (so you need a Java EE 6 capable server).
>
> We use glassfish v3, but I don't understand how use glassfish plugin
> or glassfish embedded plugin. I must use a glassfish installed on my
> system ? I don't know how make it.

Do you mean this?
https://maven-glassfish-plugin.dev.java.net/
If you need it, use it, but it seems that you don't need it for normal
development. Anyway for questions about that plugin, ask its group.

Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: JEE project

Michel
2010/9/26 Antonio Petrelli <[hidden email]>:

> 2010/9/26 Michel <[hidden email]>:
>> 2010/9/26 Antonio Petrelli <[hidden email]>:
>>> 2010/9/25 Michel <[hidden email]>:
>>>> I'm new maven user and I start in maven with a JEE project.
>>>> The project have 3 parts :
>>>> - ejb with persistance (JPA)
>>>> - web with JSF
>>>> - client connect with ejb by RMI
>>>>
>>>> If I good understand I must create 3 modules for each parts and a
>>>> pom.xml to build an ear file.
>>>
>>> No:
>>> 1. a module for EJB (and, if you like it, a module for JPA package)
>>> 2. a module for web
>>> 3. a module for the EAR (packaging: ear)
>>> 4. for your convenience, a container project (packaging: pom) that
>>> collects all of the above as modules.
>>
>> I have make juste EJB, Web and parent module for the moment when the
>> compiling of web project will works, I make the EAR module. (I don't
>> use the parent module for the moment)
>
> You need it if you want to easily configure application.xml and for
> library and module placement.

You tells of ear module or parent module ? Where can I find
information on the parent pom.xml ?

>>>> I have choice : ejb-javaee6 and maven-archetype-webapp for 2 firsts
>>>> parts but I don't find an archetype for the client.
>>>
>>> The EJB client can be automatically generated starting from the EJB:
>>> http://maven.apache.org/plugins/maven-ejb-plugin/examples/generating-ejb-client.html
>>
>> The EJB client is an application server, if I understand (like glassfish) ?
>
> No, the EJB client is the part of code that is required by the client.
> Usually, the local and remote interfaces and all classes used in these
> interfaces.

Ok I will try to improve my knowledge of this with jyour link (and google).

>>>> I have found an archetype named ear-javaee6, with this archetype can I
>>>> create my project ?
>>>
>>> This is useful to create a module (or project) with ear packaging that
>>> follows Java EE 6 (so you need a Java EE 6 capable server).
>>
>> We use glassfish v3, but I don't understand how use glassfish plugin
>> or glassfish embedded plugin. I must use a glassfish installed on my
>> system ? I don't know how make it.
>
> Do you mean this?
> https://maven-glassfish-plugin.dev.java.net/
> If you need it, use it, but it seems that you don't need it for normal
> development. Anyway for questions about that plugin, ask its group.

Yes I have see this website. What is the normal way to work in JEE
project if don't use a application server ? Where can I find
information about this ?

> Antonio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: JEE project

Antonio Petrelli
2010/9/27 Michel <[hidden email]>:

> 2010/9/26 Antonio Petrelli <[hidden email]>:
>> 2010/9/26 Michel <[hidden email]>:
>>> 2010/9/26 Antonio Petrelli <[hidden email]>:
>>>> 2010/9/25 Michel <[hidden email]>:
>>>>> I'm new maven user and I start in maven with a JEE project.
>>>>> The project have 3 parts :
>>>>> - ejb with persistance (JPA)
>>>>> - web with JSF
>>>>> - client connect with ejb by RMI
>>>>>
>>>>> If I good understand I must create 3 modules for each parts and a
>>>>> pom.xml to build an ear file.
>>>>
>>>> No:
>>>> 1. a module for EJB (and, if you like it, a module for JPA package)
>>>> 2. a module for web
>>>> 3. a module for the EAR (packaging: ear)
>>>> 4. for your convenience, a container project (packaging: pom) that
>>>> collects all of the above as modules.
>>>
>>> I have make juste EJB, Web and parent module for the moment when the
>>> compiling of web project will works, I make the EAR module. (I don't
>>> use the parent module for the moment)
>>
>> You need it if you want to easily configure application.xml and for
>> library and module placement.
>
> You tells of ear module or parent module ?

EAR Module.
> Where can I find
> information on the parent pom.xml ?

http://docs.codehaus.org/display/MAVENUSER/Multi-modules+projects

>>>>> I have found an archetype named ear-javaee6, with this archetype can I
>>>>> create my project ?
>>>>
>>>> This is useful to create a module (or project) with ear packaging that
>>>> follows Java EE 6 (so you need a Java EE 6 capable server).
>>>
>>> We use glassfish v3, but I don't understand how use glassfish plugin
>>> or glassfish embedded plugin. I must use a glassfish installed on my
>>> system ? I don't know how make it.
>>
>> Do you mean this?
>> https://maven-glassfish-plugin.dev.java.net/
>> If you need it, use it, but it seems that you don't need it for normal
>> development. Anyway for questions about that plugin, ask its group.
>
> Yes I have see this website. What is the normal way to work in JEE
> project if don't use a application server ?

The way I told you before: ejb+web+libraries (es. JPA)+ear+container
project (parent pom).

> Where can I find
> information about this ?

http://docs.codehaus.org/display/MAVENUSER/Developing+JEE+projects+with+Maven

Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: JEE project

Michel
2010/9/27 Antonio Petrelli <[hidden email]>:

> 2010/9/27 Michel <[hidden email]>:
>> 2010/9/26 Antonio Petrelli <[hidden email]>:
>>> 2010/9/26 Michel <[hidden email]>:
>>>> 2010/9/26 Antonio Petrelli <[hidden email]>:
>>>>> 2010/9/25 Michel <[hidden email]>:
>>>>>> I'm new maven user and I start in maven with a JEE project.
>>>>>> The project have 3 parts :
>>>>>> - ejb with persistance (JPA)
>>>>>> - web with JSF
>>>>>> - client connect with ejb by RMI
>>>>>>
>>>>>> If I good understand I must create 3 modules for each parts and a
>>>>>> pom.xml to build an ear file.
>>>>>
>>>>> No:
>>>>> 1. a module for EJB (and, if you like it, a module for JPA package)
>>>>> 2. a module for web
>>>>> 3. a module for the EAR (packaging: ear)
>>>>> 4. for your convenience, a container project (packaging: pom) that
>>>>> collects all of the above as modules.
>>>>
>>>> I have make juste EJB, Web and parent module for the moment when the
>>>> compiling of web project will works, I make the EAR module. (I don't
>>>> use the parent module for the moment)
>>>
>>> You need it if you want to easily configure application.xml and for
>>> library and module placement.
>>
>> You tells of ear module or parent module ?
>
> EAR Module.
>> Where can I find
>> information on the parent pom.xml ?
>
> http://docs.codehaus.org/display/MAVENUSER/Multi-modules+projects

Thank you I have create an parent pom and I créate my ".jar" (ejb) and
my ".war" with it.
The two last point is :
 - the packaging of the two archive in ".ear" (or in ".war" (I read
it's possible with JEE6 in a book))
 - launch the application

>>>>>> I have found an archetype named ear-javaee6, with this archetype can I
>>>>>> create my project ?
>>>>>
>>>>> This is useful to create a module (or project) with ear packaging that
>>>>> follows Java EE 6 (so you need a Java EE 6 capable server).
>>>>
>>>> We use glassfish v3, but I don't understand how use glassfish plugin
>>>> or glassfish embedded plugin. I must use a glassfish installed on my
>>>> system ? I don't know how make it.
>>>
>>> Do you mean this?
>>> https://maven-glassfish-plugin.dev.java.net/
>>> If you need it, use it, but it seems that you don't need it for normal
>>> development. Anyway for questions about that plugin, ask its group.
>>
>> Yes I have see this website. What is the normal way to work in JEE
>> project if don't use a application server ?
>
> The way I told you before: ejb+web+libraries (es. JPA)+ear+container
> project (parent pom).
>
>> Where can I find
>> information about this ?
>
> http://docs.codehaus.org/display/MAVENUSER/Developing+JEE+projects+with+Maven

Thanks for the URL and your help.

Now I am on a good way to success the mavenise the project. I will
read multiple doc to find the last answer.

> Antonio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: JEE project

Antonio Petrelli
2010/9/28 Michel <[hidden email]>:
> Thank you I have create an parent pom and I créate my ".jar" (ejb) and
> my ".war" with it.

Remember that, for the EJB project, the packaging must be "ejb".

> The two last point is :
>  - the packaging of the two archive in ".ear" (or in ".war" (I read
> it's possible with JEE6 in a book))

Sorry? I can't understand the question.

>  - launch the application

You can use Cargo Maven plugin:
http://cargo.codehaus.org/Maven2+plugin
Or specific plugins for your container.
Or you can simply run the script of your container ;-)

Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: JEE project

Michel
2010/9/28 Antonio Petrelli <[hidden email]>:

> 2010/9/28 Michel <[hidden email]>:
>> Thank you I have create an parent pom and I créate my ".jar" (ejb) and
>> my ".war" with it.
>
> Remember that, for the EJB project, the packaging must be "ejb".
>
>> The two last point is :
>>  - the packaging of the two archive in ".ear" (or in ".war" (I read
>> it's possible with JEE6 in a book))
>
> Sorry? I can't understand the question.

It's not a question. I wanted use the web profile of JEE6 but I have
discover that it's impossible use RMI with it (we developpe an Java
client who must communicate with the EJBs by RMI). Now I can create a
ear file (with ear module).

>>  - launch the application
>
> You can use Cargo Maven plugin:
> http://cargo.codehaus.org/Maven2+plugin
> Or specific plugins for your container.
> Or you can simply run the script of your container ;-)

I choice the glassfish (always) because we must use glassfish in finally.
I have succed to use (launch and deploye my ear) glassfish embedded plugin :)

Now my problem is in execution. In web browser I have
"org.apache.jasper.runtime does not exist" and "org.glassfish.jsp.api
does not exist". I think is because I made declare the dependency in
Web module, but I don't find how fix it.
The pom.xml is here http://pastebin.com/q7jG4gBH. I try to change
scope (provide <-> compile) and to find better dependency on
mvnrepository.com. But I have always same message.

Thanks a lot of for your help

> Antonio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...