Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
sphemy
Post subject: Cannot specify a project-dependency only once  PostPosted: Nov 06, 2008 - 02:04 PM



Joined: Oct 19, 2007
Posts: 2

Example:
WebA (web-project)
+-- refers to java-project A
+-- refers to java-project B

project A
+-- refers to java-project comp1
+-- refers to java-project comp2
project B
+-- refers to java-project comp3

The problem I have is when I want to deploy project WebA on a JBoss 4.2 server, only the classes of project A and B are deployed. I have to define the projects comp1, 2 and 3 in the classpath of project 'WebA'. My question is: why?
What should i do so myeclipse searches the classpath for all the project-dependencies? => So I have to define the project-dependencies only once?

ps:
Myeclilpse configuration:
Quote:
*** Date: donderdag 6 november 2008 15:01:39 Frankrijk

*** Platform Details:

*** System properties:
awt.toolkit=sun.awt.windows.WToolkit
birt.viewer.working.path=C:\dev\.metadata\.plugins\org.eclipse.birt.report.viewer
eclipse.buildId=M20070921-1145
eclipse.commands=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\Program Files\MyEclipse 6.0\eclipse\eclipse.exe
-name
Eclipse
--launcher.library
C:\Program Files\MyEclipse 6.0\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.2.R331_v20071019\eclipse_1021.dll
-startup
C:\Program Files\MyEclipse 6.0\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
-exitdata
a30_74
-vm
C:\Program Files\MyEclipse 6.0\jre\bin\javaw.exe
eclipse.ee.install.verify=false
eclipse.product=com.genuitec.myeclipse.product.ide
eclipse.startTime=1225962136977
eclipse.vm=C:\Program Files\MyEclipse 6.0\jre\bin\javaw.exe
eclipse.vmargs=-Xms256M
-Xmx1024M
-XX:PermSize=128M
-XX:MaxPermSize=256M
-jar
C:\Program Files\MyEclipse 6.0\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
eof=eof
file.encoding=Cp1252
file.encoding.pkg=sun.io
file.separator=\
http.nonProxyHosts=*.boss.be|*.bossportal.be|*.bossvip.be|*.colora.be|127.0.0.1|bossws|localhost|pc536|pc545|pc556
http.proxyHost=192.168.2.100
http.proxyPort=4480
http.proxySet=true
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.class.path=C:\Program Files\MyEclipse 6.0\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
java.class.version=49.0
java.endorsed.dirs=C:\Program Files\MyEclipse 6.0\jre\lib\endorsed
java.ext.dirs=C:\Program Files\MyEclipse 6.0\jre\lib\ext
java.home=C:\Program Files\MyEclipse 6.0\jre
java.io.tmpdir=C:\DOCUME~1\ra\LOCALS~1\Temp\
java.library.path=C:\Program Files\MyEclipse 6.0\jre\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\PROGRAM FILES\INFORMIX\BIN;C:\java\maven-2.0.7\bin;C:\Program Files\Common Files\GTK] -->.0\bin;C:\java\agntctrl.win_ia32-TPTP-4.3.0\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\cwRsync\bin;C:\Program Files\Java\jdk1.6.0_03\bin;C:\java\apache-ant-1.7.0\bin;
java.protocol.handler.pkgs=org.apache.axis.transport|
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.5.0_11-b03
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.5
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.5.0_11
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) Client VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=1.5.0_11-b03
......
 
 View user's profile Send private message  
Reply with quote Back to top
wciesiel
Post subject: RE: Cannot specify a project-dependency only once  PostPosted: Nov 06, 2008 - 03:59 PM



Joined: Dec 01, 2006
Posts: 11

Try marking everything (libraries and projects, apart from JRE of course ;-)) as exported in your projects. Then check preferences of your web projects under path myeclipse/Web and the "deployment" tab. Should ring a bell I think...
 
 View user's profile Send private message  
Reply with quote Back to top
sphemy
Post subject: Re: RE: Cannot specify a project-dependency only once  PostPosted: Nov 07, 2008 - 08:30 AM



Joined: Oct 19, 2007
Posts: 2

wciesiel wrote:
Try marking everything (libraries and projects, apart from JRE of course ;-)) as exported in your projects. Then check preferences of your web projects under path myeclipse/Web and the "deployment" tab. Should ring a bell I think...

Done that, read the help multiple times, but I think I am missing somehting.
The configuration is the following:
The dependent project policy = use smart deployment for dependent java projects (that works only for the dependencies defined in the web-project itself, but not on the dependencies of the dependencies. Refering to my example: the classes of project A and B are deployed, but not the classes of project comp1 2 and 3.
 
 View user's profile Send private message  
Reply with quote Back to top
rmcvay
Post subject: RE: Re: RE: Cannot specify a project-dependency only once  PostPosted: Nov 07, 2008 - 03:53 PM
Registered Member
Registered Member


Joined: Sep 17, 2004
Posts: 58

Are comp* just declared on the build path of their projects or are they also defined to be exported/included in their dependent project builds? Also, have you tried building these in ME 6.5?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits