Hi, 

After quite some time I am revisiting appFuse2 and Maven to see if
things go more smoothly. 

Here is some feedback, most of which is not too important. 

1) Please update http://appfuse.org/display/APF/FAQ#FAQ-usingant, in
particular the 'Download maven-artifact-ant-2.0.4-dep.jar' dead link. A
live link is:
http://repo1.maven.org/maven2/org/apache/maven/maven-artifact-ant/2.0.4/
maven-artifact-ant-2.0.4-dep.jar


2) After using appFuse's build.xml, replacing instances of
'appfuse-light' with my project name, I then tried 'ant compile'. 
According to "ant compile -v" it looks as though the classpath is
correct, but the build is failing with many class not found exceptions.
Example output:
    [javac] import org.springframework.web.context.ContextLoader;
    [javac]                                        ^
    [javac]
C:\work\ws\project4Ant\src\test\java\org\company\d4\webapp\listen
er\StartupListenerTest.java:7: package org.springframework.web.context
does not exist

M2_REPO is on Win under 'Documents and Settings', and I thought the
compilation issue is due to the space in the path. Yes, I already set
<localRepository>c:\docume~1\lokenj\.m2\repository</localRepository>.  I
therefore moved .m2 such that the path does not have spaces in it, and
updated settings.xml
<localRepository>c:\J\.m2\repository</localRepository>. Unfortunately
running 'ant compile -v' shows that the new repository location is NOT
picked up. So at the moment I am a bit stuck. 

Any ideas? Even though I do eventually get maven working, it would be
good to be able to use Ant as well. 



3) As for Maven, the tension rises....
mnv eclipse:eclipse works for me at last, possibly due to using Eclipse
3.3. This is good. Eclipse is picking up correct M2_REPO jar files. 

Running: mvn dbunit:operation -Poracle, works fine and updates the
Oracle DB. 
Surprisingly running: mvn -Poracle, fails. Example output:
[INFO] Native Library
C:\oracle\product\11.1.0\client_2\BIN\ocijdbc11.dll alread
y loaded in another classloader
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.UnsatisfiedLinkError: Native Library
C:\oracle\product\11.1.0\client_2
\BIN\ocijdbc11.dll already loaded in another classloader
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1716)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
        at java.lang.Runtime.loadLibrary0(Runtime.java:822)


In my experience there can be a number of reasons for this. One of them
is that more than one oracle driver jar file is being picked up. The mvn
'classpath' looks ok, only picking up a single oracle 11g jar file.
However, I noticed at the beginning of the trace the following 2 lines:
[INFO]
------------------------------------------------------------------------
Downloading:
http://repo1.maven.org/maven2/com/oracle/ojdbc5/11.1.0.6.0/ojdbc5-1
1.1.0.6.0.pom
Downloading:
http://static.appfuse.org/repository/com/oracle/ojdbc5/11.1.0.6.0/o
jdbc5-11.1.0.6.0.pom

Perhaps this (several references to ojdbc) is the cause of the
exception>?
 

My workaround is to NOT use the thick oracle client OCI, but rather use
oracle thin client. E.g.
<jdbc.url><![CDATA[jdbc:oracle:thin:@10.2.0.50:1521:devora11g]]></jdbc.u
rl>




Anyway, I have got Maven working. Hoooraayy. 

Jon


BiP Solutions Limited is a company registered in Scotland with Company Number 
SC086146 and VAT number 38303966 and having its registered office at Park 
House, 300 Glasgow Road, Shawfield, Glasgow, G73 1SQ 
****************************************************************************
This e-mail (and any attachment) is intended only for the attention of the 
addressee(s). Its unauthorised use, disclosure, storage or copying is not 
permitted. If you are not the intended recipient, please destroyall copies and 
inform the sender by return e-mail.
This e-mail (whether you are the sender or the recipient) may be monitored, 
recorded and retained by BiP Solutions Ltd.
E-mail monitoring/ blocking software may be used, and e-mail content may be 
read at any time. You have a responsibility to ensure laws are not broken when 
composing or forwarding e-mails and their contents.
****************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to