on 05-17-2006 12:43 PM
Hi there,
I would like to develop a web-application based on the framework "Apache Struts". I am using JDI with the following structure:
- MyApplication
|-> DC: ear_project
|-> DC: web_project
This web_project will be used for the struts application. The whole web-content and the servlets will be developed here. The web_project will be transported onto the server by the ear_project.
Now my problem: When I put the struts-libraries (several .jar-files) into the project and add them to the Java-Build-Path (-> add external jars), everything works fine. I get the references to the libraries. When I want to build the web_project and deploy it onto the server, then all added libraries are missing. I copied them into an additional folder under WEB-INF.
Does anyone know how to reference these libraries? How can I use Struts with JDI?
Regards,
Thomas
Hi,
I'm not sure if this will help as I'm only guessing but...
Have you tried creating a Library DC containing all the required struts .jar files and referencing this DC in your other two DC's. Then when you deploy all three DC's to the server it might work?!
Good luck,
Gareth Ryan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gareth,
I tried to deploy the jars as described in the link you suggested. Everything works fine until the last step: When I want to build the "J2EE - Server library", I get the following errors:
- The project was not built due to classpath errors (incomplete or involved in cycle). DTR_CFP22SP0_D~cfp~conv_jar~technidata.de
- Missing required Java project: DTR_CFP22SP0_D~cfp~conv_libs~technidata.de. DTR_CFP22SP0_D~cfp~conv_jar~technidata.de Build path
DC DTR_CFP22SP0_Dcfpconv_jar~technidata.de is the deployable project "J2EE - Server library"
DC DTR_CFP22SP0_Dcfpconv_libs~technidata.de is the "external library" project containing the struts-archive.
After pressing the "Build" button, the SDA file does not contain the jars, but they are visible under "gen - default - public- defLib - lib - java".
Do you have some ideas to solve this?
Best Regards,
Thomas
Hi Thomas,
Did you add public part from DTR_CFP22SP0_Dcfpconv_jartechnidata.de (ExternalLibs I guess, as in Valery`s blog) DC to DTR_CFP22SP0_Dcfpconv_libstechnidata.de as descibed on step "Add used DC (External Library) to J2EE library". Did you build DTR_CFP22SP0_Dcfpconv_libs~technidata.de as DC (Development component - build)?
Best regards, Maksim Rashchynski.
Hi Maksim,
thanks for your answer. I did every step as described in the blog. I built the DTR_CFP22SP0_Dcfpconv_libstechnidata.de and after that I synced the sources (DCs) in the DTR_CFP22SP0_Dcfpconv_jartechnidata.de. Then I wanted to build the DTR_CFP22SP0_Dcfpconv_jar~technidata.de. Then the errors (build path) occures.
Best regards,
Thomas
Hi Thomas,
Just build DTR_CFP22SP0_Dcfpconv_libstechnidata.de. As DTR_CFP22SP0_Dcfpconv_libstechnidata.de contains link to public part of DTR_CFP22SP0_Dcfpconv_jar~technidata.de it should resolve dependencies and you don`t need to do anything manually.
BTW, did you add jar file from DTR_CFP22SP0_Dcfpconv_jartechnidata.de to build path of DTR_CFP22SP0_Dcfpconv_libstechnidata.de directly? Or only through public part?
Best regards, Maksim Rashchynski.
Hi Thomas,
Just repeated scenario on my local NWDS:
1) crate web DC
2) manually create lib folder under WEB-INF
3) copy couple of jar files to this new created folder
4) add jars as external libraries
5) "development component"->build
After build
comp\gen\default\public\war\lib\java\<DCNAME>.war contains jars under WEB-INF\lib
Are you doing the same?
Best regards, Maksim Rashchynski.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.