Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332066 - Problems when running an application on Glassfish via Run As -> Run on Server
Summary: Problems when running an application on Glassfish via Run As -> Run on Server
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: WTP ServerTools
Classification: WebTools
Component: jst.server (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Angel Vera CLA
QA Contact: Angel Vera CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-07 13:30 EST by Guillermo Aldunate CLA
Modified: 2010-12-09 05:42 EST (History)
2 users (show)

See Also:


Attachments
Error log from Eclipse while trying to run the GFNanbeiWebUser_SpV3 application (7.95 KB, application/octet-stream)
2010-12-08 13:33 EST, Guillermo Aldunate CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guillermo Aldunate CLA 2010-12-07 13:30:52 EST
Build Identifier: 20100917-0705

When trying to run a J2EE Dynamic Web Project under GlassFish vía the contextual menus commands Run AS -> Run on Server, if the project embeds another Eclipse project (in my case, a JPA project which only has some entities defined), the application fails saying GlassFish couldn´t find the first entity invoked by the DAO module. If you export the WAR module created from the same project using the contextual menu command Export -> WAR File and loading it to the application server as a GlassFish application via GlassFish console, it works OK.

The application used to work OK until the Glassfish plugin was updated by Oracle to version 1.6.1. From the on, it gave the same problem whenever you try to embed a project in another one.

The funny thing is, when you display the WAR file resulting from the Run on Server operation in the Glassfish directories, the WEB-INF/lib path shows the JAR file created from the embedded project.

Reproducible: Always

Steps to Reproduce:
1.Create a project (say, a JPA project) and create a package with a java program in it.
2.Create a Dynamic Web Project which uses GlassFish as the application server (of course, you have to have a Glassfish server definition)
3.Build the application in the Glassfish server via Run on Server. You'll get an error message stating that some class belonging to the embedded module is not found.
Comment 1 Olivier Thomann CLA 2010-12-07 13:34:47 EST
Moving to WTP Java EE tools.
Comment 2 Carl Anderson CLA 2010-12-07 19:25:44 EST
Moving to Server Tools, but if the problem was caused by the Glassfish plugin, then this is NOT_ECLIPSE- you will have to contact them (Oracle) to get this resolved.
Comment 3 Guillermo Aldunate CLA 2010-12-08 13:33:27 EST
Created attachment 184805 [details]
Error log from Eclipse while trying to run the GFNanbeiWebUser_SpV3 application
Comment 4 Angel Vera CLA 2010-12-08 13:37:36 EST
This doesn't sound like a problem with the framework but rather something in the Server adapter, it could be in the launchableDelegate, or the server adapter objects.

Taking a look a the log that you just updated reinforces my thinking. 

Please report the problem directly to the GlassFish server adapter.
Comment 5 Guillermo Aldunate CLA 2010-12-09 05:42:56 EST
(In reply to comment #4)
> This doesn't sound like a problem with the framework but rather something in
> the Server adapter, it could be in the launchableDelegate, or the server
> adapter objects.
> 
> Taking a look a the log that you just updated reinforces my thinking. 
> 
> Please report the problem directly to the GlassFish server adapter.

Ok, I'll do that. Thank you.