EAR-Deployment Version 3.1

View: New views
11 Messages — Rating Filter:   Alert me  

EAR-Deployment Version 3.1

by Cyrill Rüttimann-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I just tried to deploy my enterprise application with the new feature  
found in version 3.1 of the mevenide with Netbeans 6.1 RC2.  
Unfortunately, the application did not startup. Following the stack  
trace of the startup which shows that there are some problems with the  
classpath. I have attached two screenshots:

1) The Netbeas-Screenshot shows the structure generated by mevenide.

2)  The MacOS X-Screenshot shows the exploded ear in the glassfish  
domain when I deploy the maven generated EAR through the deployment  
manager.

At the moment I have no glue how the dist directory will be deployed  
to glassfish. If you can give me some pointers I will try to track  
down the problem. If I compare the two structures, they are very  
different.


Regards,

Cyrill

Cannot load org.jboss.seam.servlet.SeamFilter reason :  
org.jboss.seam.servlet.SeamFilter
java.lang.ClassNotFoundException: org.jboss.seam.servlet.SeamFilter
        at  
com
.sun
.enterprise.loader.EJBClassLoader.findClassData(EJBClassLoader.java:718)
        at  
com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:
631)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at  
com
.sun
.enterprise
.deployment
.annotation.impl.ModuleScanner.getElements(ModuleScanner.java:174)
        at  
com
.sun
.enterprise
.deployment
.annotation
.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:127)
        at  
com
.sun
.enterprise
.deployment.archivist.Archivist.processAnnotations(Archivist.java:445)
        at  
com
.sun
.enterprise
.deployment.archivist.Archivist.readAnnotations(Archivist.java:346)
        at  
com
.sun
.enterprise
.deployment
.archivist.Archivist.readDeploymentDescriptors(Archivist.java:318)
        at  
com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:
213)
        at  
com
.sun
.enterprise
.deployment
.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:
763)
        at  
com
.sun
.enterprise
.deployment
.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:
744)
        at  
com
.sun
.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:
349)
        at  
com
.sun
.enterprise
.deployment.backend.ModuleDeployer.loadDescriptors(ModuleDeployer.java:
423)
        at  
com
.sun
.enterprise
.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:157)
        at  
com
.sun
.enterprise
.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:
179)
        at  
com
.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:
191)
        at  
com
.sun
.enterprise
.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:
108)
        at  
com
.sun
.enterprise
.deployment
.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
        at  
com
.sun
.enterprise
.deployment
.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279)
        at  
com
.sun
.enterprise
.deployment
.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788)
        at  
com
.sun
.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
        at  
com
.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:
223)
Unresolved <ejb-link>: CustomerRegistrationBean
Exception occured in J2EEC Phasejava.lang.RuntimeException: Error:  
Unresolved <ejb-link>: CustomerRegistrationBean
com.sun.enterprise.deployment.backend.IASDeploymentException: Error  
loading deployment descriptors for module  
[com.hcrtraining_TrainingPlatform_ear_1.0-SNAPSHOT] -- Error:  
Unresolved <ejb-link>: CustomerRegistrationBean
        at  
com
.sun
.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:
390)
        at  
com
.sun
.enterprise
.deployment.backend.ModuleDeployer.loadDescriptors(ModuleDeployer.java:
423)
        at  
com
.sun
.enterprise
.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:157)
        at  
com
.sun
.enterprise
.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:
179)
        at  
com
.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:
191)
        at  
com
.sun
.enterprise
.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:
108)
        at  
com
.sun
.enterprise
.deployment
.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
        at  
com
.sun
.enterprise
.deployment
.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279)
        at  
com
.sun
.enterprise
.deployment
.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788)
        at  
com
.sun
.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
        at  
com
.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:
223)
Caused by: java.lang.RuntimeException: Error: Unresolved <ejb-link>:  
CustomerRegistrationBean
        at  
com
.sun
.enterprise
.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:530)
        at  
com
.sun
.enterprise
.deployment.WebBundleDescriptor.visit(WebBundleDescriptor.java:1406)
        at  
com
.sun
.enterprise
.deployment.archivist.WebArchivist.validate(WebArchivist.java:188)
        at  
com
.sun
.enterprise
.deployment
.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:
790)
        at  
com
.sun
.enterprise
.deployment
.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:
744)
        at  
com
.sun
.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:
349)
        ... 10 more
Initializing Sun's JavaServer Faces implementation (1.2_04-b20-p03)  
for context ''




---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

netbeans.jpg (95K) Download Attachment
macosx.jpg (191K) Download Attachment

Re: EAR-Deployment Version 3.1

by Wouter van Reeven :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

On Sun, Apr 27, 2008 at 02:54:37PM +0200, Cyrill Rüttimann wrote:
> Cannot load org.jboss.seam.servlet.SeamFilter reason :  
> org.jboss.seam.servlet.SeamFilter
> java.lang.ClassNotFoundException: org.jboss.seam.servlet.SeamFilter

Looks like you're missing some Seam jars in your deployment ear. Did you add
dependencies on Seam in your web module?


HTH, Wouter van Reeven

--

People: "If she weighs the same as a Duck, she's made of wood!"
Sir Bedevere: "And therefore...?"

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: EAR-Deployment Version 3.1

by Cyrill Rüttimann-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

On 27.04.2008, at 17:25, Wouter van Reeven wrote:

> Hi,
>
> On Sun, Apr 27, 2008 at 02:54:37PM +0200, Cyrill Rüttimann wrote:
>> Cannot load org.jboss.seam.servlet.SeamFilter reason :
>> org.jboss.seam.servlet.SeamFilter
>> java.lang.ClassNotFoundException: org.jboss.seam.servlet.SeamFilter
>
> Looks like you're missing some Seam jars in your deployment ear. Did  
> you add
> dependencies on Seam in your web module?

The web module only has the web module specific libraries defined as a  
direct dependency. The other libraries are inherited from the ear. The  
ClassNotFoundExceptions are from a library which should/is included in  
the EAR. In the Netbeans Screenshot - it's the exploded ejb-jar "jboss-
seam-2.0.1-GA_jar".

The dist directory is missing a lot of libraries, but maybe they are  
inherited from the "Runtime Libraries"?


Regards,

Cyrill
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: EAR-Deployment Version 3.1

by Bugzilla from mkleint@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Do you have a sample project demonstrating the problem?

from the  screenshot I have one comment.
How come you have the dist/gfdeploy folder with all the libraries and
stuff in the src/main folder? isn't that supposed to be something
built by maven in the target/ folder?

Milos

On Sun, Apr 27, 2008 at 10:31 PM, Cyrill Rüttimann <ruettimac@...> wrote:

> Hello,
>
>
>  On 27.04.2008, at 17:25, Wouter van Reeven wrote:
>
>
> > Hi,
> >
> > On Sun, Apr 27, 2008 at 02:54:37PM +0200, Cyrill Rüttimann wrote:
> >
> > > Cannot load org.jboss.seam.servlet.SeamFilter reason :
> > > org.jboss.seam.servlet.SeamFilter
> > > java.lang.ClassNotFoundException: org.jboss.seam.servlet.SeamFilter
> > >
> >
> > Looks like you're missing some Seam jars in your deployment ear. Did you
> add
> > dependencies on Seam in your web module?
> >
>
>  The web module only has the web module specific libraries defined as a
> direct dependency. The other libraries are inherited from the ear. The
> ClassNotFoundExceptions are from a library which should/is included in the
> EAR. In the Netbeans Screenshot - it's the exploded ejb-jar
> "jboss-seam-2.0.1-GA_jar".
>
>  The dist directory is missing a lot of libraries, but maybe they are
> inherited from the "Runtime Libraries"?
>
>
>  Regards,
>
>  Cyrill
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: EAR-Deployment Version 3.1

by Cyrill Rüttimann-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Milos,

I am right now preparing a stripped down version of my project. I will  
send it to you by today. The project contains (close to) all  
possibilities of an EAR-Project including shared libraries and a  
separate java module, ejb module and a web project (which inherites  
the shared libraries from the ear).

The "dist" directory has been generated by netbeans/mevenide. Maven  
does only generate the "target" directory.


Regards,

Cyrill


On 29.04.2008, at 07:41, Milos Kleint wrote:

> Do you have a sample project demonstrating the problem?
>
> from the  screenshot I have one comment.
> How come you have the dist/gfdeploy folder with all the libraries and
> stuff in the src/main folder? isn't that supposed to be something
> built by maven in the target/ folder?
>
> Milos
>
> On Sun, Apr 27, 2008 at 10:31 PM, Cyrill Rüttimann  
> <ruettimac@...> wrote:
>> Hello,
>>
>>
>> On 27.04.2008, at 17:25, Wouter van Reeven wrote:
>>
>>
>>> Hi,
>>>
>>> On Sun, Apr 27, 2008 at 02:54:37PM +0200, Cyrill Rüttimann wrote:
>>>
>>>> Cannot load org.jboss.seam.servlet.SeamFilter reason :
>>>> org.jboss.seam.servlet.SeamFilter
>>>> java.lang.ClassNotFoundException: org.jboss.seam.servlet.SeamFilter
>>>>
>>>
>>> Looks like you're missing some Seam jars in your deployment ear.  
>>> Did you
>> add
>>> dependencies on Seam in your web module?
>>>
>>
>> The web module only has the web module specific libraries defined  
>> as a
>> direct dependency. The other libraries are inherited from the ear.  
>> The
>> ClassNotFoundExceptions are from a library which should/is included  
>> in the
>> EAR. In the Netbeans Screenshot - it's the exploded ejb-jar
>> "jboss-seam-2.0.1-GA_jar".
>>
>> The dist directory is missing a lot of libraries, but maybe they are
>> inherited from the "Runtime Libraries"?
>>
>>
>> Regards,
>>
>> Cyrill
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>   http://xircles.codehaus.org/manage_email
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: EAR-Deployment Version 3.1

by Cyrill Rüttimann-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello  Milos,

Please find attached a sample J2EE application which is a stripped  
down version of my current project. After successful deployment (I  
have done it with the admin web application), you can access the  
application with the URL

http://localhost:8080/J2EEApp/home.xhtml


Deployment with glassfish web admin application:
1) Start glassfish
2) http://localhost:4848/login.jsf
3) admin/adminadmin (or your personal credentials)
4) Enterprise Applications
5) Deploy...
6) Choose File
7) OK

And you will see the string "helloworld" displayed (apart from the  
template strings). That's all.

The directory "src/main/dist/gfdeploy" will be created as soon as you  
choose "Run/Debug" on the ear project. For me, it looks like only the  
web application gets deployed but not the ear itself. You can compare  
it with the target directory in the ear project.


Regards,

Cyrill






On 29.04.2008, at 07:41, Milos Kleint wrote:

> Do you have a sample project demonstrating the problem?
>
> from the  screenshot I have one comment.
> How come you have the dist/gfdeploy folder with all the libraries and
> stuff in the src/main folder? isn't that supposed to be something
> built by maven in the target/ folder?
>
> Milos
>
> On Sun, Apr 27, 2008 at 10:31 PM, Cyrill Rüttimann  
> <ruettimac@...> wrote:
>> Hello,
>>
>>
>> On 27.04.2008, at 17:25, Wouter van Reeven wrote:
>>
>>
>>> Hi,
>>>
>>> On Sun, Apr 27, 2008 at 02:54:37PM +0200, Cyrill Rüttimann wrote:
>>>
>>>> Cannot load org.jboss.seam.servlet.SeamFilter reason :
>>>> org.jboss.seam.servlet.SeamFilter
>>>> java.lang.ClassNotFoundException: org.jboss.seam.servlet.SeamFilter
>>>>
>>>
>>> Looks like you're missing some Seam jars in your deployment ear.  
>>> Did you
>> add
>>> dependencies on Seam in your web module?
>>>
>>
>> The web module only has the web module specific libraries defined  
>> as a
>> direct dependency. The other libraries are inherited from the ear.  
>> The
>> ClassNotFoundExceptions are from a library which should/is included  
>> in the
>> EAR. In the Netbeans Screenshot - it's the exploded ejb-jar
>> "jboss-seam-2.0.1-GA_jar".
>>
>> The dist directory is missing a lot of libraries, but maybe they are
>> inherited from the "Runtime Libraries"?
>>
>>
>> Regards,
>>
>> Cyrill
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>   http://xircles.codehaus.org/manage_email
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

J2EEAppBuild.zip (64K) Download Attachment

Re: EAR-Deployment Version 3.1

by Bugzilla from mkleint@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Cyrill,

I've tried to deploy through the web admin console but it fails for me
for some reason. Any idea?
see screenshot..

Milos


On Tue, Apr 29, 2008 at 9:34 AM, Cyrill Rüttimann <ruettimac@...> wrote:

> Hello  Milos,
>
>  Please find attached a sample J2EE application which is a stripped down
> version of my current project. After successful deployment (I have done it
> with the admin web application), you can access the application with the URL
>
>  http://localhost:8080/J2EEApp/home.xhtml
>
>
>  Deployment with glassfish web admin application:
>  1) Start glassfish
>  2) http://localhost:4848/login.jsf
>  3) admin/adminadmin (or your personal credentials)
>  4) Enterprise Applications
>  5) Deploy...
>  6) Choose File
>  7) OK
>
>  And you will see the string "helloworld" displayed (apart from the template
> strings). That's all.
>
>  The directory "src/main/dist/gfdeploy" will be created as soon as you
> choose "Run/Debug" on the ear project. For me, it looks like only the web
> application gets deployed but not the ear itself. You can compare it with
> the target directory in the ear project.
>
>
>  Regards,
>
>  Cyrill
>
>
>
>
>
>  On 29.04.2008, at 07:41, Milos Kleint wrote:
>
>
> > Do you have a sample project demonstrating the problem?
> >
> > from the  screenshot I have one comment.
> > How come you have the dist/gfdeploy folder with all the libraries and
> > stuff in the src/main folder? isn't that supposed to be something
> > built by maven in the target/ folder?
> >
> > Milos
> >
> > On Sun, Apr 27, 2008 at 10:31 PM, Cyrill Rüttimann <ruettimac@...>
> wrote:
> >
> > > Hello,
> > >
> > >
> > > On 27.04.2008, at 17:25, Wouter van Reeven wrote:
> > >
> > >
> > >
> > > > Hi,
> > > >
> > > > On Sun, Apr 27, 2008 at 02:54:37PM +0200, Cyrill Rüttimann wrote:
> > > >
> > > >
> > > > > Cannot load org.jboss.seam.servlet.SeamFilter reason :
> > > > > org.jboss.seam.servlet.SeamFilter
> > > > > java.lang.ClassNotFoundException: org.jboss.seam.servlet.SeamFilter
> > > > >
> > > > >
> > > >
> > > > Looks like you're missing some Seam jars in your deployment ear. Did
> you
> > > >
> > > add
> > >
> > > > dependencies on Seam in your web module?
> > > >
> > > >
> > >
> > > The web module only has the web module specific libraries defined as a
> > > direct dependency. The other libraries are inherited from the ear. The
> > > ClassNotFoundExceptions are from a library which should/is included in
> the
> > > EAR. In the Netbeans Screenshot - it's the exploded ejb-jar
> > > "jboss-seam-2.0.1-GA_jar".
> > >
> > > The dist directory is missing a lot of libraries, but maybe they are
> > > inherited from the "Runtime Libraries"?
> > >
> > >
> > > Regards,
> > >
> > > Cyrill
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe from this list, please visit:
> > >
> > >  http://xircles.codehaus.org/manage_email
> > >
> > >
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list, please visit:
> >
> >   http://xircles.codehaus.org/manage_email
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
>  To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

servererror.png (257K) Download Attachment

Re: EAR-Deployment Version 3.1

by Cyrill Rüttimann-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Milos,

Something is wrong with the project(s) you try to deploy. The name  
should be J2EEApp and not TrainingPlatform. I just verified the  
attachment I sent and I can confirm that the right project(s) are in  
the archive.
The screenshot shows the exploded zip archive:






  The only thing to do before you can build the projects is to deploy  
the glassfish libraries (Project Glassfish). There is a shell script  
you have to modify for your platform/installation (install.sh). The  
main project is "J2EEAppBuild".


Regards,

Cyrill



On 29.04.2008, at 21:30, Milos Kleint wrote:

> Hello Cyrill,
>
> I've tried to deploy through the web admin console but it fails for me
> for some reason. Any idea?
> see screenshot..
>
> Milos
>
>
> On Tue, Apr 29, 2008 at 9:34 AM, Cyrill Rüttimann  
> <ruettimac@...> wrote:
>> Hello  Milos,
>>
>> Please find attached a sample J2EE application which is a stripped  
>> down
>> version of my current project. After successful deployment (I have  
>> done it
>> with the admin web application), you can access the application  
>> with the URL
>>
>> http://localhost:8080/J2EEApp/home.xhtml
>>
>>
>> Deployment with glassfish web admin application:
>> 1) Start glassfish
>> 2) http://localhost:4848/login.jsf
>> 3) admin/adminadmin (or your personal credentials)
>> 4) Enterprise Applications
>> 5) Deploy...
>> 6) Choose File
>> 7) OK
>>
>> And you will see the string "helloworld" displayed (apart from the  
>> template
>> strings). That's all.
>>
>> The directory "src/main/dist/gfdeploy" will be created as soon as you
>> choose "Run/Debug" on the ear project. For me, it looks like only  
>> the web
>> application gets deployed but not the ear itself. You can compare  
>> it with
>> the target directory in the ear project.
>>
>>
>> Regards,
>>
>> Cyrill
>>
>>
>>
>>
>>
>> On 29.04.2008, at 07:41, Milos Kleint wrote:
>>
>>
>>> Do you have a sample project demonstrating the problem?
>>>
>>> from the  screenshot I have one comment.
>>> How come you have the dist/gfdeploy folder with all the libraries  
>>> and
>>> stuff in the src/main folder? isn't that supposed to be something
>>> built by maven in the target/ folder?
>>>
>>> Milos
>>>
>>> On Sun, Apr 27, 2008 at 10:31 PM, Cyrill Rüttimann <ruettimac@...
>>> >
>> wrote:
>>>
>>>> Hello,
>>>>
>>>>
>>>> On 27.04.2008, at 17:25, Wouter van Reeven wrote:
>>>>
>>>>
>>>>
>>>>> Hi,
>>>>>
>>>>> On Sun, Apr 27, 2008 at 02:54:37PM +0200, Cyrill Rüttimann wrote:
>>>>>
>>>>>
>>>>>> Cannot load org.jboss.seam.servlet.SeamFilter reason :
>>>>>> org.jboss.seam.servlet.SeamFilter
>>>>>> java.lang.ClassNotFoundException:  
>>>>>> org.jboss.seam.servlet.SeamFilter
>>>>>>
>>>>>>
>>>>>
>>>>> Looks like you're missing some Seam jars in your deployment ear.  
>>>>> Did
>> you
>>>>>
>>>> add
>>>>
>>>>> dependencies on Seam in your web module?
>>>>>
>>>>>
>>>>
>>>> The web module only has the web module specific libraries defined  
>>>> as a
>>>> direct dependency. The other libraries are inherited from the  
>>>> ear. The
>>>> ClassNotFoundExceptions are from a library which should/is  
>>>> included in
>> the
>>>> EAR. In the Netbeans Screenshot - it's the exploded ejb-jar
>>>> "jboss-seam-2.0.1-GA_jar".
>>>>
>>>> The dist directory is missing a lot of libraries, but maybe they  
>>>> are
>>>> inherited from the "Runtime Libraries"?
>>>>
>>>>
>>>> Regards,
>>>>
>>>> Cyrill
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe from this list, please visit:
>>>>
>>>> http://xircles.codehaus.org/manage_email
>>>>
>>>>
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe from this list, please visit:
>>>
>>>  http://xircles.codehaus.org/manage_email
>>>
>>>
>>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
> <
> servererror
> .png
> >---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

pastedGraphic.tiff (37K) Download Attachment

Re: EAR-Deployment Version 3.1

by Bugzilla from mkleint@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hello,

a status update.
I haven't included a fix for this issue in the released 3.1.1 version.
I was not able to figure what's causing the app to expand in
src/main/dist, however I'm sort of suspecting it's the glassfish
support.
in ant projects the path to sources is shorter thanin maven projects,
so I assume they do something like:
"get source root File somehow"
" now go 2 levels up, that's the project root, create a dist folder there"

and that's failing for maven projects. I couldn't find the actual code
that does this though..

Milos

On 4/29/08, Cyrill Rüttimann <ruettimac@...> wrote:

> Hi Milos,
>
>  Something is wrong with the project(s) you try to deploy. The name should
> be J2EEApp and not TrainingPlatform. I just verified the attachment I sent
> and I can confirm that the right project(s) are in the archive.
>  The screenshot shows the exploded zip archive:
>
>
>
>
>
>   The only thing to do before you can build the projects is to deploy the
> glassfish libraries (Project Glassfish). There is a shell script you have to
> modify for your platform/installation (install.sh). The main project is
> "J2EEAppBuild".
>
>
>  Regards,
>
>  Cyrill
>
>
>
>  On 29.04.2008, at 21:30, Milos Kleint wrote:
>
>
> > Hello Cyrill,
> >
> > I've tried to deploy through the web admin console but it fails for me
> > for some reason. Any idea?
> > see screenshot..
> >
> > Milos
> >
> >
> > On Tue, Apr 29, 2008 at 9:34 AM, Cyrill Rüttimann <ruettimac@...>
> wrote:
> >
> > > Hello  Milos,
> > >
> > > Please find attached a sample J2EE application which is a stripped down
> > > version of my current project. After successful deployment (I have done
> it
> > > with the admin web application), you can access the application with the
> URL
> > >
> > > http://localhost:8080/J2EEApp/home.xhtml
> > >
> > >
> > > Deployment with glassfish web admin application:
> > > 1) Start glassfish
> > > 2) http://localhost:4848/login.jsf
> > > 3) admin/adminadmin (or your personal credentials)
> > > 4) Enterprise Applications
> > > 5) Deploy...
> > > 6) Choose File
> > > 7) OK
> > >
> > > And you will see the string "helloworld" displayed (apart from the
> template
> > > strings). That's all.
> > >
> > > The directory "src/main/dist/gfdeploy" will be created as soon as you
> > > choose "Run/Debug" on the ear project. For me, it looks like only the
> web
> > > application gets deployed but not the ear itself. You can compare it
> with
> > > the target directory in the ear project.
> > >
> > >
> > > Regards,
> > >
> > > Cyrill
> > >
> > >
> > >
> > >
> > >
> > > On 29.04.2008, at 07:41, Milos Kleint wrote:
> > >
> > >
> > >
> > > > Do you have a sample project demonstrating the problem?
> > > >
> > > > from the  screenshot I have one comment.
> > > > How come you have the dist/gfdeploy folder with all the libraries and
> > > > stuff in the src/main folder? isn't that supposed to be something
> > > > built by maven in the target/ folder?
> > > >
> > > > Milos
> > > >
> > > > On Sun, Apr 27, 2008 at 10:31 PM, Cyrill Rüttimann <ruettimac@...>
> > > >
> > > wrote:
> > >
> > > >
> > > >
> > > > > Hello,
> > > > >
> > > > >
> > > > > On 27.04.2008, at 17:25, Wouter van Reeven wrote:
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > On Sun, Apr 27, 2008 at 02:54:37PM +0200, Cyrill Rüttimann wrote:
> > > > > >
> > > > > >
> > > > > >
> > > > > > > Cannot load org.jboss.seam.servlet.SeamFilter
> reason :
> > > > > > > org.jboss.seam.servlet.SeamFilter
> > > > > > > java.lang.ClassNotFoundException:
> org.jboss.seam.servlet.SeamFilter
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > > Looks like you're missing some Seam jars in your deployment ear.
> Did
> > > > > >
> > > > >
> > > >
> > > you
> > >
> > > >
> > > > >
> > > > > >
> > > > > >
> > > > > add
> > > > >
> > > > >
> > > > > > dependencies on Seam in your web module?
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > > The web module only has the web module specific libraries defined as
> a
> > > > > direct dependency. The other libraries are inherited from the ear.
> The
> > > > > ClassNotFoundExceptions are from a library which should/is included
> in
> > > > >
> > > >
> > > the
> > >
> > > >
> > > > > EAR. In the Netbeans Screenshot - it's the exploded ejb-jar
> > > > > "jboss-seam-2.0.1-GA_jar".
> > > > >
> > > > > The dist directory is missing a lot of libraries, but maybe they are
> > > > > inherited from the "Runtime Libraries"?
> > > > >
> > > > >
> > > > > Regards,
> > > > >
> > > > > Cyrill
> > > > >
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe from this list, please visit:
> > > > >
> > > > > http://xircles.codehaus.org/manage_email
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe from this list, please visit:
> > > >
> > > >  http://xircles.codehaus.org/manage_email
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe from this list, please visit:
> > >
> > >   http://xircles.codehaus.org/manage_email
> > >
> > >
> > >
> >
> <servererror.png>---------------------------------------------------------------------
> > To unsubscribe from this list, please visit:
> >
> >   http://xircles.codehaus.org/manage_email
> >
>
>
>
> ---------------------------------------------------------------------
>  To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: EAR-Deployment Version 3.1

by Bugzilla from mkleint@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hey,

with the help of a colleague at work I managed to find a workaround
for the problem.
you need to disable  directory based deployment on the glassfish
server. That's done by going to Tools/Servers, select your server and
unselect the relevant checkbox in options tab.

Cyrril, can you file an issue against the glassfish support? and
include the sample app please (btw for non directory deployment, the
empty ejb module didn't work and I had to create a stateless bean)

http://www.netbeans.org/issues/enter_bug.cgi?component=serverplugins&subcomponent=sunappserv9

add me on cc please (my id is mkleint)

Regards

Milos Kleint

On 5/13/08, Milos Kleint <mkleint@...> wrote:

> hello,
>
>  a status update.
>  I haven't included a fix for this issue in the released 3.1.1 version.
>  I was not able to figure what's causing the app to expand in
>  src/main/dist, however I'm sort of suspecting it's the glassfish
>  support.
>  in ant projects the path to sources is shorter thanin maven projects,
>  so I assume they do something like:
>  "get source root File somehow"
>  " now go 2 levels up, that's the project root, create a dist folder there"
>
>  and that's failing for maven projects. I couldn't find the actual code
>  that does this though..
>
>  Milos
>
>
>  On 4/29/08, Cyrill Rüttimann <ruettimac@...> wrote:
>  > Hi Milos,
>  >
>  >  Something is wrong with the project(s) you try to deploy. The name should
>  > be J2EEApp and not TrainingPlatform. I just verified the attachment I sent
>  > and I can confirm that the right project(s) are in the archive.
>  >  The screenshot shows the exploded zip archive:
>  >
>  >
>  >
>  >
>  >
>
> >   The only thing to do before you can build the projects is to deploy the
>  > glassfish libraries (Project Glassfish). There is a shell script you have to
>  > modify for your platform/installation (install.sh). The main project is
>  > "J2EEAppBuild".
>  >
>  >
>  >  Regards,
>  >
>  >  Cyrill
>
> >
>  >
>  >
>  >  On 29.04.2008, at 21:30, Milos Kleint wrote:
>  >
>  >
>  > > Hello Cyrill,
>  > >
>  > > I've tried to deploy through the web admin console but it fails for me
>  > > for some reason. Any idea?
>  > > see screenshot..
>  > >
>  > > Milos
>  > >
>  > >
>  > > On Tue, Apr 29, 2008 at 9:34 AM, Cyrill Rüttimann <ruettimac@...>
>  > wrote:
>  > >
>  > > > Hello  Milos,
>  > > >
>  > > > Please find attached a sample J2EE application which is a stripped down
>  > > > version of my current project. After successful deployment (I have done
>  > it
>  > > > with the admin web application), you can access the application with the
>  > URL
>  > > >
>  > > > http://localhost:8080/J2EEApp/home.xhtml
>  > > >
>  > > >
>  > > > Deployment with glassfish web admin application:
>  > > > 1) Start glassfish
>  > > > 2) http://localhost:4848/login.jsf
>  > > > 3) admin/adminadmin (or your personal credentials)
>  > > > 4) Enterprise Applications
>  > > > 5) Deploy...
>  > > > 6) Choose File
>  > > > 7) OK
>  > > >
>  > > > And you will see the string "helloworld" displayed (apart from the
>  > template
>  > > > strings). That's all.
>  > > >
>  > > > The directory "src/main/dist/gfdeploy" will be created as soon as you
>  > > > choose "Run/Debug" on the ear project. For me, it looks like only the
>  > web
>  > > > application gets deployed but not the ear itself. You can compare it
>  > with
>  > > > the target directory in the ear project.
>  > > >
>  > > >
>  > > > Regards,
>  > > >
>  > > > Cyrill
>  > > >
>  > > >
>  > > >
>  > > >
>  > > >
>  > > > On 29.04.2008, at 07:41, Milos Kleint wrote:
>  > > >
>  > > >
>  > > >
>  > > > > Do you have a sample project demonstrating the problem?
>  > > > >
>  > > > > from the  screenshot I have one comment.
>  > > > > How come you have the dist/gfdeploy folder with all the libraries and
>  > > > > stuff in the src/main folder? isn't that supposed to be something
>  > > > > built by maven in the target/ folder?
>  > > > >
>  > > > > Milos
>  > > > >
>  > > > > On Sun, Apr 27, 2008 at 10:31 PM, Cyrill Rüttimann <ruettimac@...>
>  > > > >
>  > > > wrote:
>  > > >
>  > > > >
>  > > > >
>  > > > > > Hello,
>  > > > > >
>  > > > > >
>  > > > > > On 27.04.2008, at 17:25, Wouter van Reeven wrote:
>  > > > > >
>  > > > > >
>  > > > > >
>  > > > > >
>  > > > > > > Hi,
>  > > > > > >
>  > > > > > > On Sun, Apr 27, 2008 at 02:54:37PM +0200, Cyrill Rüttimann wrote:
>  > > > > > >
>  > > > > > >
>  > > > > > >
>  > > > > > > > Cannot load org.jboss.seam.servlet.SeamFilter
>  > reason :
>  > > > > > > > org.jboss.seam.servlet.SeamFilter
>  > > > > > > > java.lang.ClassNotFoundException:
>  > org.jboss.seam.servlet.SeamFilter
>  > > > > > > >
>  > > > > > > >
>  > > > > > > >
>  > > > > > >
>  > > > > > > Looks like you're missing some Seam jars in your deployment ear.
>  > Did
>  > > > > > >
>  > > > > >
>  > > > >
>  > > > you
>  > > >
>  > > > >
>  > > > > >
>  > > > > > >
>  > > > > > >
>  > > > > > add
>  > > > > >
>  > > > > >
>  > > > > > > dependencies on Seam in your web module?
>  > > > > > >
>  > > > > > >
>  > > > > > >
>  > > > > >
>  > > > > > The web module only has the web module specific libraries defined as
>  > a
>  > > > > > direct dependency. The other libraries are inherited from the ear.
>  > The
>  > > > > > ClassNotFoundExceptions are from a library which should/is included
>  > in
>  > > > > >
>  > > > >
>  > > > the
>  > > >
>  > > > >
>  > > > > > EAR. In the Netbeans Screenshot - it's the exploded ejb-jar
>  > > > > > "jboss-seam-2.0.1-GA_jar".
>  > > > > >
>  > > > > > The dist directory is missing a lot of libraries, but maybe they are
>  > > > > > inherited from the "Runtime Libraries"?
>  > > > > >
>  > > > > >
>  > > > > > Regards,
>  > > > > >
>  > > > > > Cyrill
>  > > > > >
>  > > > > >
>  > > > > >
>  > ---------------------------------------------------------------------
>  > > > > > To unsubscribe from this list, please visit:
>  > > > > >
>  > > > > > http://xircles.codehaus.org/manage_email
>  > > > > >
>  > > > > >
>  > > > > >
>  > > > > >
>  > > > > >
>  > > > >
>  > > > >
>  > ---------------------------------------------------------------------
>  > > > > To unsubscribe from this list, please visit:
>  > > > >
>  > > > >  http://xircles.codehaus.org/manage_email
>  > > > >
>  > > > >
>  > > > >
>  > > > >
>  > > >
>  > > >
>  > > >
>  > > >
>  > ---------------------------------------------------------------------
>  > > > To unsubscribe from this list, please visit:
>  > > >
>  > > >   http://xircles.codehaus.org/manage_email
>  > > >
>  > > >
>  > > >
>  > >
>
> > <servererror.png>---------------------------------------------------------------------
>
> > > To unsubscribe from this list, please visit:
>  > >
>  > >   http://xircles.codehaus.org/manage_email
>  > >
>  >
>  >
>  >
>  > ---------------------------------------------------------------------
>  >  To unsubscribe from this list, please visit:
>  >
>  >     http://xircles.codehaus.org/manage_email
>  >
>  >
>  >
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: EAR-Deployment Version 3.1

by Cyrill Rüttimann-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Milos,

I will do that. I should have time to do it by tomorrow.

Thanks,

Cyrill

On 14.05.2008, at 15:35, Milos Kleint wrote:

> hey,
>
> with the help of a colleague at work I managed to find a workaround
> for the problem.
> you need to disable  directory based deployment on the glassfish
> server. That's done by going to Tools/Servers, select your server and
> unselect the relevant checkbox in options tab.
>
> Cyrril, can you file an issue against the glassfish support? and
> include the sample app please (btw for non directory deployment, the
> empty ejb module didn't work and I had to create a stateless bean)
>
> http://www.netbeans.org/issues/enter_bug.cgi?component=serverplugins&subcomponent=sunappserv9
>
> add me on cc please (my id is mkleint)
>
> Regards
>
> Milos Kleint
>
> On 5/13/08, Milos Kleint <mkleint@...> wrote:
>> hello,
>>
>> a status update.
>> I haven't included a fix for this issue in the released 3.1.1  
>> version.
>> I was not able to figure what's causing the app to expand in
>> src/main/dist, however I'm sort of suspecting it's the glassfish
>> support.
>> in ant projects the path to sources is shorter thanin maven projects,
>> so I assume they do something like:
>> "get source root File somehow"
>> " now go 2 levels up, that's the project root, create a dist folder  
>> there"
>>
>> and that's failing for maven projects. I couldn't find the actual  
>> code
>> that does this though..
>>
>> Milos
>>
>>
>> On 4/29/08, Cyrill Rüttimann <ruettimac@...> wrote:
>>> Hi Milos,
>>>
>>> Something is wrong with the project(s) you try to deploy. The name  
>>> should
>>> be J2EEApp and not TrainingPlatform. I just verified the  
>>> attachment I sent
>>> and I can confirm that the right project(s) are in the archive.
>>> The screenshot shows the exploded zip archive:
>>>
>>>
>>>
>>>
>>>
>>
>>>  The only thing to do before you can build the projects is to  
>>> deploy the
>>> glassfish libraries (Project Glassfish). There is a shell script  
>>> you have to
>>> modify for your platform/installation (install.sh). The main  
>>> project is
>>> "J2EEAppBuild".
>>>
>>>
>>> Regards,
>>>
>>> Cyrill
>>
>>>
>>>
>>>
>>> On 29.04.2008, at 21:30, Milos Kleint wrote:
>>>
>>>
>>>> Hello Cyrill,
>>>>
>>>> I've tried to deploy through the web admin console but it fails  
>>>> for me
>>>> for some reason. Any idea?
>>>> see screenshot..
>>>>
>>>> Milos
>>>>
>>>>
>>>> On Tue, Apr 29, 2008 at 9:34 AM, Cyrill Rüttimann <ruettimac@...
>>>> >
>>> wrote:
>>>>
>>>>> Hello  Milos,
>>>>>
>>>>> Please find attached a sample J2EE application which is a  
>>>>> stripped down
>>>>> version of my current project. After successful deployment (I  
>>>>> have done
>>> it
>>>>> with the admin web application), you can access the application  
>>>>> with the
>>> URL
>>>>>
>>>>> http://localhost:8080/J2EEApp/home.xhtml
>>>>>
>>>>>
>>>>> Deployment with glassfish web admin application:
>>>>> 1) Start glassfish
>>>>> 2) http://localhost:4848/login.jsf
>>>>> 3) admin/adminadmin (or your personal credentials)
>>>>> 4) Enterprise Applications
>>>>> 5) Deploy...
>>>>> 6) Choose File
>>>>> 7) OK
>>>>>
>>>>> And you will see the string "helloworld" displayed (apart from the
>>> template
>>>>> strings). That's all.
>>>>>
>>>>> The directory "src/main/dist/gfdeploy" will be created as soon  
>>>>> as you
>>>>> choose "Run/Debug" on the ear project. For me, it looks like  
>>>>> only the
>>> web
>>>>> application gets deployed but not the ear itself. You can  
>>>>> compare it
>>> with
>>>>> the target directory in the ear project.
>>>>>
>>>>>
>>>>> Regards,
>>>>>
>>>>> Cyrill
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On 29.04.2008, at 07:41, Milos Kleint wrote:
>>>>>
>>>>>
>>>>>
>>>>>> Do you have a sample project demonstrating the problem?
>>>>>>
>>>>>> from the  screenshot I have one comment.
>>>>>> How come you have the dist/gfdeploy folder with all the  
>>>>>> libraries and
>>>>>> stuff in the src/main folder? isn't that supposed to be something
>>>>>> built by maven in the target/ folder?
>>>>>>
>>>>>> Milos
>>>>>>
>>>>>> On Sun, Apr 27, 2008 at 10:31 PM, Cyrill Rüttimann <ruettimac@...
>>>>>> >
>>>>>>
>>>>> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>>
>>>>>>> On 27.04.2008, at 17:25, Wouter van Reeven wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> On Sun, Apr 27, 2008 at 02:54:37PM +0200, Cyrill Rüttimann  
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> Cannot load org.jboss.seam.servlet.SeamFilter
>>> reason :
>>>>>>>>> org.jboss.seam.servlet.SeamFilter
>>>>>>>>> java.lang.ClassNotFoundException:
>>> org.jboss.seam.servlet.SeamFilter
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>> Looks like you're missing some Seam jars in your deployment  
>>>>>>>> ear.
>>> Did
>>>>>>>>
>>>>>>>
>>>>>>
>>>>> you
>>>>>
>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> add
>>>>>>>
>>>>>>>
>>>>>>>> dependencies on Seam in your web module?
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> The web module only has the web module specific libraries  
>>>>>>> defined as
>>> a
>>>>>>> direct dependency. The other libraries are inherited from the  
>>>>>>> ear.
>>> The
>>>>>>> ClassNotFoundExceptions are from a library which should/is  
>>>>>>> included
>>> in
>>>>>>>
>>>>>>
>>>>> the
>>>>>
>>>>>>
>>>>>>> EAR. In the Netbeans Screenshot - it's the exploded ejb-jar
>>>>>>> "jboss-seam-2.0.1-GA_jar".
>>>>>>>
>>>>>>> The dist directory is missing a lot of libraries, but maybe  
>>>>>>> they are
>>>>>>> inherited from the "Runtime Libraries"?
>>>>>>>
>>>>>>>
>>>>>>> Regards,
>>>>>>>
>>>>>>> Cyrill
>>>>>>>
>>>>>>>
>>>>>>>
>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe from this list, please visit:
>>>>>>>
>>>>>>> http://xircles.codehaus.org/manage_email
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe from this list, please visit:
>>>>>>
>>>>>> http://xircles.codehaus.org/manage_email
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>> ---------------------------------------------------------------------
>>>>> To unsubscribe from this list, please visit:
>>>>>
>>>>>  http://xircles.codehaus.org/manage_email
>>>>>
>>>>>
>>>>>
>>>>
>>
>>> <
>>> servererror
>>> .png
>>> >
>>> ---------------------------------------------------------------------
>>
>>>> To unsubscribe from this list, please visit:
>>>>
>>>>  http://xircles.codehaus.org/manage_email
>>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe from this list, please visit:
>>>
>>>    http://xircles.codehaus.org/manage_email
>>>
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email