- This topic has 1 reply, 2 voices, and was last updated 19 years, 4 months ago by Scott Anderson.
-
AuthorPosts
-
Cal HolmanParticipantI am having a problem with an ant task to precompile JSPs. When i use the Eclipse JRE for launching Ant (my perfered cnfig due to extra tasks exposed) i receive an error that indicates the URI for taglibs is invalid. When i run the same ant task using the 1.5 JRE then there are no issues. Well there are 1.5 issues but they are simply warnings.
If i use the Eclipse JRE does MyEclipse add the Struts JARs into the path? I know the URI for 1.2 is different form 1.1 (i use 1.1)
More info:
Eclipse 3.1 GA – fresh instal
MyEclipse 4.0 M2 – fresh instal
Windows XP
JDK 1.5.0_03
Plugins – XMLSpy, Jalopy, CodePro
Tomcat 5.5.9Here is the bad run – the good one follows:
init:
[echo] ——— Village Walk Homeowners Site 1.0 ———
[echo]
[echo] java.class.path = C:\eclipse\startup.jar
[echo] java.home = C:\Program Files\Java\jre1.5.0_03
[echo] java.version = 1.5.0_03
[echo]
[echo] user.home = C:\Documents and Settings\cholman
[echo] user.name = cholman
[echo] user.dir = C:\eclipse
[echo]
[echo] basedir = C:\Dev\projects\villagewalk
[echo]
[echo] Last Roll = 20041023
[echo]
[echo] Ant Version = Apache Ant version 1.6.5 compiled on June 2 2005
[echo]
[echo] Ant Home = c:\eclipse\plugins\org.apache.ant_1.6.5
[echo]
[echo] Eclipse Home = c:\eclipseprepare-compile:
[copy] Copying 15 files to C:\Dev\projects\villagewalk\build\src
[propertyfile] Updating property file: C:\Dev\projects\villagewalk\WebRoot\build.propertiescompile:
[javac] Compiling 24 source files to C:\Dev\projects\villagewalk\build\classes
[javac] C:\Dev\projects\villagewalk\src\com\villagewalk\model\dao\CondoHelpDAO.java:56: warning: [unchecked] unchecked call to HashSet(java.util.Collection<? extends E>) as a member of the raw type java.util.HashSet
[javac] Set mySet = new HashSet(myList);
[javac] ^
[javac] C:\Dev\projects\villagewalk\src\com\villagewalk\model\dao\CondoHelpDAO.java:59: warning: [unchecked] unchecked call to addAll(java.util.Collection<? extends E>) as a member of the raw type java.util.List
[javac] myList.addAll(mySet);
[javac] ^
[javac] C:\Dev\projects\villagewalk\src\test\com\villagewalk\controller\cactus\SessionMapper.java:24: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Map
[javac] paramsMap.put(paramName, paramValue);
[javac] ^
[javac] C:\Dev\projects\villagewalk\src\test\com\villagewalk\controller\httpunit\SpiderPage.java:148: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Set
[javac] boolean newLink = alreadyChecked.add(links[i].getURLString());
[javac] ^
[javac] 4 warnings
[copy] Copying 4 files to C:\Dev\projects\villagewalk\build\classes
[copy] Copying 91 files to C:\Dev\projects\villagewalk\WebRoot\WEB-INF\classesjspc:
[delete] Deleting directory C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src
[echo] Java Home – C:\Program Files\Java\jre1.5.0_03
[echo] catalina home – C:/Apache/Tomcat
[echo] java.class.path = C:\eclipse\startup.jar
[echo] web root = C:\Dev\projects\villagewalk\WebRoot
[jasper2] log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler.JspRuntimeContext).
[jasper2] log4j:WARN Please initialize the log4j system properly.BUILD FAILED
C:\Dev\projects\villagewalk\ant\build.xml:158: The following error occurred while executing this line:
C:\dev\projects\_common\common_build.xml:740: org.apache.jasper.JasperException: The absolute uri: http://jakarta.apache.org/struts/tags-html cannot be resolved in either web.xml or the jar files deployed with this applicationRun using the JDK JRE – not using Eclipse JRE.
Buildfile: C:\Dev\projects\villagewalk\ant\build.xml
compile-jsps:
init:
[echo] ——— Village Walk Homeowners Site 1.0 ———
[echo] java.class.path = C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-antlr.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-bcel.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-bsf.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-log4j.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-oro.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-regexp.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-resolver.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-commons-logging.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-commons-net.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-icontract.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-jai.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-javamail.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-jdepend.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-jmf.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-jsch.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-junit.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-launcher.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-netrexx.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-nodeps.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-starteam.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-stylebook.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-swing.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-trax.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-vaj.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-weblogic.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-xalan1.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-xslp.jar;C:\eclipse\configuration\org.eclipse.osgi\bundles\181\1\.cp\lib\remoteAnt.jar;C:\Dev\projects\_common\lib-support\jdepend-2.9\lib\jdepend-2.9.jar;C:\Apache\Tomcat\common\endorsed\xmlParserAPIs.jar;C:\Apache\Tomcat\common\endorsed\xercesImpl.jar;C:\Dev\projects\_common\lib-support\junit-3.8.1\junit.jar;C:\Dev\projects\_common\lib-support\clover-1.3.4\lib\clover.jar;C:\Program Files\Java\jdk1.5.0_03\lib\tools.jar;C:\eclipse\plugins\org.eclipse.swt.win32.win32.x86_3.1.0.jar;C:\Dev\plugins\Instantiations\CodePro_4.1.1\E-3.1\eclipse\plugins\com.instantiations.assist.eclipse.fragment.swt_4.1.1\CodeProSWTFragment.jar
[echo] java.home = C:\Program Files\Java\jre1.5.0_02
[echo] java.version = 1.5.0_02
[echo] user.home = C:\Documents and Settings\cholman
[echo] user.name = cholman
[echo] user.dir = C:\Dev\projects\villagewalk
[echo] basedir = C:\Dev\projects\villagewalk
[echo] Last Roll = 20041023
[echo] Ant Version = Apache Ant version 1.6.5 compiled on June 2 2005
[echo] Ant Home = c:\eclipse\plugins\org.apache.ant_1.6.5
[echo] Eclipse Home = ${eclipse.home}
prepare-compile:
[propertyfile] Updating property file: C:\Dev\projects\villagewalk\WebRoot\build.properties
compile:
jspc:
[delete] Deleting directory C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src
[echo] Java Home – C:\Program Files\Java\jre1.5.0_02
[echo] catalina home – C:/Apache/Tomcat
[echo] java.class.path = C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-antlr.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-bcel.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-bsf.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-log4j.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-oro.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-regexp.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-resolver.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-commons-logging.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-commons-net.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-icontract.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-jai.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-javamail.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-jdepend.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-jmf.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-jsch.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-junit.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-launcher.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-netrexx.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-nodeps.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-starteam.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-stylebook.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-swing.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-trax.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-vaj.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-weblogic.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-xalan1.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-xslp.jar;C:\eclipse\configuration\org.eclipse.osgi\bundles\181\1\.cp\lib\remoteAnt.jar;C:\Dev\projects\_common\lib-support\jdepend-2.9\lib\jdepend-2.9.jar;C:\Apache\Tomcat\common\endorsed\xmlParserAPIs.jar;C:\Apache\Tomcat\common\endorsed\xercesImpl.jar;C:\Dev\projects\_common\lib-support\junit-3.8.1\junit.jar;C:\Dev\projects\_common\lib-support\clover-1.3.4\lib\clover.jar;C:\Program Files\Java\jdk1.5.0_03\lib\tools.jar;C:\eclipse\plugins\org.eclipse.swt.win32.win32.x86_3.1.0.jar;C:\Dev\plugins\Instantiations\CodePro_4.1.1\E-3.1\eclipse\plugins\com.instantiations.assist.eclipse.fragment.swt_4.1.1\CodeProSWTFragment.jar
[echo] web root = C:\Dev\projects\villagewalk\WebRoot
[jasper2] log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler.JspRuntimeContext).
[jasper2] log4j:WARN Please initialize the log4j system properly.
compilejsp:
[javac] Compiling 46 source files to C:\Dev\projects\villagewalk\build\classes
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\Error_jsp.java:15: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\printview_jsp.java:15: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\template_jsp.java:15: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\web\pages\admin\AdminContent_jsp.java:15: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\web\pages\admin\AdminIndex_jsp.java:15: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\web\pages\admin\CondoAdminContent_jsp.java:14: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\web\pages\admin\CondoAdminList_jsp.java:14: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\web\pages\admin\CondoHelpAdminContent_jsp.java:14: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\web\pages\admin\CondoHelpAdminList_jsp.java:14: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\web\pages\admin\JAMonContent_jsp.java:15: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\web\pages\admin\Log4JContent_jsp.java:14: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\web\pages\admin\Log4JIndex_jsp.java:15: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\web\pages\admin\LogStatisticsIndex_jsp.java:15: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\web\pages\admin\LoginPage_jsp.java:14: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\web\pages\admin\NewsAdminContent_jsp.java:14: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\web\pages\admin\NewsList_jsp.java:14: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\web\pages\admin\OwnerAdminContent_jsp.java:14: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\web\pages\admin\OwnerAdminList_jsp.java:14: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\web\pages\admin\UserAdminContent_jsp.java:14: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\web\pages\admin\UserList_jsp.java:14: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\web\pages\news\NewsContent_jsp.java:14: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\web\pages\owners\Budget2005_jsp.java:14: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\web\pages\owners\CondoDetailContent_jsp.java:14: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\web\pages\owners\CondoHelpList_jsp.java:14: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\web\pages\owners\CondoList_jsp.java:14: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\web\pages\owners\CondoUpdateContent_jsp.java:14: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\web\pages\owners\ExportOwnerList_jsp.java:14: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] C:\Dev\projects\villagewalk\WebRoot\WEB-INF\src\org\apache\jsp\web\pages\owners\OwnerList_jsp.java:14: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
[javac] _jspx_dependants.add(“/WEB-INF/tlds/baileys-html.tld”);
[javac] ^
[javac] Note: * uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 28 warnings
compile-jsps:
[copy] Copying 1 file to C:\Dev\projects\villagewalk\WebRoot\WEB-INF
BUILD SUCCESSFULThis is the ant task i am using.
<target name=”jspc”>
<delete dir=”${WEB-INF.dir}/src”/>
<echo message=”Java Home – ${java.home}”/>
<echo message=”catalina home – ${my.catalina.home}”/>
<echo message=”java.class.path = ${java.class.path}”/>
<echo message=”web root = ${WebRoot.dir}”/><taskdef classname=”org.apache.jasper.JspC” name=”jasper2″>
<classpath id=”jspc.classpath”>
<pathelement location=”${java.home}/../lib/tools.jar”/>
<fileset dir=”${my.catalina.home}/bin”>
<include name=”*.jar”/>
</fileset>
<fileset dir=”${my.catalina.home}/server/lib”>
<include name=”*.jar”/>
</fileset>
<fileset dir=”${my.catalina.home}/common/lib”>
<include name=”*.jar”/>
</fileset></classpath>
</taskdef><jasper2 outputDir=”${WEB-INF.dir}/src”
uriroot=”${WebRoot.dir}”
validateXml=”false”
webXmlFragment=”${WEB-INF.dir}/generated_web.xml” />
</target>Thanks
Scott AndersonParticipantIf you want to use Ant to compile your JSPs, then you’ll have to be sure to build the classpath properly. Since MyEclipse doesn’t use Ant
internally, it really can’t help you much in this regard. -
AuthorPosts