Hi All
We are a perl shop that is slowly trying to change over to java. As
such we have had some contractors in over time that have done apps for
us that we (me) now support now some how i have broken one and don't
know how.
The problem: update an api jar and change severs
what i did delete the old jar in eclipse and then import the new one.
Copy the old deploy section (for ftp) in the Build.xml pasted it in
again and changed the name, server, user name and password (all ftp
stuff tested and working). created the new base directory on the new
server and create a new config file also making the changes in the
build.xml file
copy file="conf/integrate_ci.properties.qa.sp17"
tofile="conf/integrate_ci.properties".
now when i try to run this i get
<terminated> CI build.xml [deploy.topodev](12)[Ant Build] /usr/lib/java
(27-Apr-06 06:11:46)
which i have no idea so spent some time on google and could not figure
any thing out but did find that u can run ant from command line so
------------------------------
ant deploy.topodev
Buildfile: build.xml
init:
[echo] Project: CI
[echo] 20060427 1743
[echo] April 27 2006
[echo] User name: eddie
[echo] User home: /home/eddie
[echo] Working dir: /home/eddie/workspace/CI
[echo] Java home: ${env.JAVA_HOME}
[echo] Ant home: ${env.ANT_HOME}
clean.build:
[delete] Deleting directory /home/eddie/workspace/CI/build
[delete] Deleting directory /home/eddie/workspace/CI/dist
prepare:
[mkdir] Created dir: /home/eddie/workspace/CI/build
[mkdir] Created dir: /home/eddie/workspace/CI/dist
compile.java:
[javac] Compiling 13 source files to /home/eddie/workspace/CI/build
copy:
[copy] Copying 5 files to /home/eddie/workspace/CI/dist/lib
[copy] Copying 5 files to /home/eddie/workspace/CI/dist/bin
[copy] Copying 1 file to /home/eddie/workspace/CI/dist/conf
[copy] Copying 1 file to /home/eddie/workspace/CI/dist/conf
[mkdir] Created dir: /home/eddie/workspace/CI/dist/logs
jar:
[jar] Building jar: /home/eddie/workspace/CI/dist/lib/ci.jar
deploy.topodev:
BUILD FAILED
java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClient
Total time: 10 seconds
------------------------------
hay hay hay i thought, looks like the build worked just the FTP that
did not.
Did some digging and found out that the commons-net.jar seemed to be
missing so tried to install it (first went looking for it and found the
jar in
/usr/share/java/commons-net.jar
(how do i add this from console and eclipse?)
so tried
export PATH=${PATH}:/usr/share/java/
and tried again no joy
OK i thought no worries just tar -cvf ci.tar * (zip)
and move the complete directory across to the new server and unarchived
it there.
when i tried it there i got
Exception in thread "main" java.lang.NoClassDefFoundError:
za/co/solutioncentre/integrateci/Main
Now i am totally stuck and don't know where to go from here. Eclipse is
showing no little red triangles. log4j is set to
log4j.rootLogger=debug, stdout, R
in the config file
Am I missing a log file some where. Also a lot of what i read just
went right over my head so i might have seen the suloution but just did
not know enuf to see it.
This all may not seen like not much but has taken me two days and hours
on eclipse and my public holiday.
On a side note i get the following error in eclipse when i click on the
deployment tag under he project property's
Plug-in org.jboss.ide.eclipse.deployer.ui was unable to load class
org.jboss.ide.eclipse.deployer.ui.properties.DeployedResourcePropertyPage.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CTJUG Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/CTJUG-Forum
-~----------~----~----~----~------~----~------~--~---