Hi Slide-Developers,

trying to get Slide from CVS to compile I encountered this behavior:

>ant detect 
...
     [echo]   JNDI                          true
     [echo]   Struts (1.0 or later)         ${struts.present}
     [echo]   JSTL (beta 1 or later)        true
...

The struts.jar property in build.properties was set to the correct
location of struts-1.0.2 though.

I think that the detection in build.xml:

    <available property="struts.present"
     classname="org.apache.struts.action.Action"
     classpath="${struts.jar}" />

is not working properly, because ANT detects classes by trying to load
them, and 
org.apache.struts.action.Action cannot be loaded, because it depends on
some Servlet classes, which are not in the CLASSPATH :

H:\proj\slide\jakarta-struts-1.0.2\lib>set CLASSPATH=struts.jar
H:\proj\slide\jakarta-struts-1.0.2\lib>java
org.apache.struts.action.Action
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/servlet/ServletRequest

Changing the detection in build.xml to

    <available property="struts.present"
     classname="org.apache.struts.action.Action"
     classpath="${servlet.jar};${struts.jar}" />

seems to work.

Regards,
Raimo.
-- 
Dipl.-Inform. Raimo Ihle               Tel: +49 (0)30 39 40 54 25
bit~side GmbH                          Fax: +49 (0)30 39 40 54 50
Salzufer 14a Aufgang D                 Email: [EMAIL PROTECTED]
10587 Berlin                           WWW: <http://www.bit-side.com>



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

Reply via email to