aspose file tools
The moose likes Web Services and the fly likes Need Help to include jsp file while enunciate my REST service Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Need Help to include jsp file while enunciate my REST service" Watch "Need Help to include jsp file while enunciate my REST service" New topic
Author

Need Help to include jsp file while enunciate my REST service

vamshi reddy
Greenhorn

Joined: Aug 21, 2008
Posts: 8
I am working on Enunciate REST service, I hav a situtation to include my JSP files in generated war file..

below if my build.xml


<?xml version="1.0" ?>
<project default="declare" name="enunciat" basedir=".">
<target name="init" >
<taskdef name="enunciate" classname="org.codehaus.enunciate.main.EnunciateTask">
<classpath refid="enunciate.classpath"/>
</taskdef>
</target>
<property name="enunciate.home" value="C:/WrkSpace/TestEnunciate/RestPresentation"/>
<property name="java.home" value="C:/Program Files/Java/jdk1.6.0_23"/>
<path id="enunciate.classpath">

<fileset dir="${enunciate.home}/lib">
<include name="*.jar"/>
</fileset>
</path>

<target name="declare" depends="init">
<mkdir dir="dist"/>
<enunciate basedir="C:/WrkSpace/TestEnunciate/RestPresentation/src">
<include name="**/*.java"/>
<include name="**/*.jsp">

<classpath refid="enunciate.classpath"/>
<export artifactId="war.file" destination="dist/J2eewe.war"/>
</enunciate>
</target>

</project>

with out include jsp I can able to generate my war file, while including JSP's I am getting fallowing error..


Buildfile: C:\WrkSpace\TestEnunciate\RestPresentation\build.xml
init:
declare:

BUILD FAILED
C:\WrkSpace\TestEnunciate\RestPresentation\build.xml:31: java.lang.IllegalArgumentException: Illegal name of java source file: C:\WrkSpace\TestEnunciate\RestPresentation\src\com\locations\presentation\Welcome.jsp. (Must end with ".java")

Total time: 325 milliseconds


can any one please help me to resolve this issue, thanks in advance..

chico nanico
Greenhorn

Joined: Nov 11, 2011
Posts: 1
I'm having the same problem ... you managed to solve?


tks...
vamshi reddy
Greenhorn

Joined: Aug 21, 2008
Posts: 8
nope
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need Help to include jsp file while enunciate my REST service
 
Similar Threads
Regarding Ant issue.
MySQL with ant: can not find driver class
Question on Ant script error in my build.xml file in the Eclipse IDE
Building Seam projects in Eclipse
BUILD FAILED in Build.xml