NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Libraries missing when deploying enterprise application

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
naranha



Joined: 11 Mar 2010
Posts: 3

PostPosted: Thu Mar 11, 2010 2:01 pm    Post subject: Libraries missing when deploying enterprise application Reply with quote

i'm using netbeans 6.8 to develop java ee 6 application with glassfish 3. My problem is, when I deploy my Web-Application everything works fine, however when I deploy my webapplication as part of my enterprise application, some libraries (like struts) are missing and glassfish throws errors. most libraries are there, but not all of them. any idea how to solve this?

- I have an Enterprise App, which at the moment has one web module
- deploying the web-module alone works fine
- the projects ear file contains nearly all .jar-files, but some are missing

Build output:
Initial deploying <project> to /home/<user>/NetBeansProjects/<project>/<project>/dist/gfdeploy/<project>
Completed initial distribution of <project>
Initializing...
deploy?path=/home/<user>/NetBeansProjects/<project>/<project>/dist/gfdeploy/<project>&name=<project>&force=true failed on GlassFish v3
/home/<user>/NetBeansProjects/<project>/<project>/nbproject/build-impl.xml:257: The module has not been deployed.
BUILD FAILED (total time: 12 seconds)

glassfish3 output:
INFO: [ERROR] 00:27 (ActionServlet.java:init:364)
Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency.
java.lang.NoClassDefFoundError: org/apache/struts/action/PlugIn
[...]
Back to top
naranha



Joined: 11 Mar 2010
Posts: 3

PostPosted: Sat Mar 20, 2010 2:10 pm    Post subject: Reply with quote

Interestingly it works if I copy the struts-1.2.9.jar file to the <proj>/dist/gfdeploy/<proj>/lib directory, while the project is building.
Back to top
naranha



Joined: 11 Mar 2010
Posts: 3

PostPosted: Mon Mar 22, 2010 5:02 pm    Post subject: Reply with quote

I switched to a maven2 based architecture now, something I wanted to do sooner or later anyway. It works fine and I get no more missing library errors.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo