You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by chexxor <ch...@yahoo.com> on 2008/07/01 21:50:49 UTC

JSPC plugin can't find tag library embedded in jar

This is the error I get when I try to precompile my project with the mojo
JSPC plugin by codehaus. 


[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] JSPC Error

Embedded error: File "/META-INF/tlds/struts-html.tld" not found
[INFO]
------------------------------------------------------------------------

I checked and it is clearly in my maven repository, and I can see it in the
target/WEB-INF/lib(?) directory, also. I have been searching the internet
for a few days now and fiddling with all sorts of things in my project, but
I just can't get it to work.

Can anybody help me? Please? I beg of you?



Here is what is in my base pom.xml file.

		<plugin>
		    <groupId>org.codehaus.mojo</groupId>
		    <artifactId>jspc-maven-plugin</artifactId>
		    <configuration>
<!--			     <webXml>${basedir}/target/jspweb.xml</webXml>-->
			    <injectString>&lt;!-- [INSERT FRAGMENT HERE] --&gt;</injectString>
			    <inputWebXml>${basedir}/src/main/webapp/WEB-INF/web.xml</inputWebXml>
			    <outputWebXml>${basedir}/target/jspweb.xml</outputWebXml>
<!--			   
<warSourceDirectory>${basedir}/target/meeting-planner</warSourceDirectory>
-->
			    <warSourceDirectory>${basedir}/src/main/webapp</warSourceDirectory>
			    <verbose>true</verbose>
			</configuration>
		    <executions>
		        <execution>
		        <phase>compile</phase>
		            <id>jspc</id>
		            <goals>
		                <goal>compile</goal>
		            </goals>
		        </execution>
		    </executions>
		</plugin>
		<plugin>
  			<artifactId>maven-war-plugin</artifactId>
  			<configuration>
  				<archive>
  					<addMavenDescriptor>false</addMavenDescriptor>
  				</archive>
  				<!-- For the jspc plugin. -->
  				<webXml>${basedir}/target/jspweb.xml</webXml>
					<!-- <webappDirectory>${basedir}/src/main/webapp</webappDirectory> -->
  				<webResources>
  					<resource>
  						<directory>
  							${basedir}/src/main/webapp
  						</directory>
  						<filtering>true</filtering>
  						<excludes>
  							<exclude>**/images/**</exclude>
  						</excludes>
  					</resource>
  					<resource>
  						<directory>
  							${basedir}/src/main/webapp
  						</directory>
  						<filtering>false</filtering>
  						<includes>
  							<include>**/images/**</include>
  						</includes>
  					</resource>
  				</webResources>
  			</configuration>
  		</plugin>



And here is my web.xml:

	<servlet>
		<!-- Call this servlet admin, so that Tapestry looks in the admin
sub-directory -->
		<servlet-name>admin</servlet-name>
		<servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
		<load-on-startup>1</load-on-startup>
	</servlet>
	<!-- Following comment used by the jspc Mojo from Codehaus -->
    <!--   more info here ->
http://mojo.codehaus.org/jspc-maven-plugin/usage.html -->
    <!-- [INSERT FRAGMENT HERE] -->
	<servlet-mapping>
		<servlet-name>action</servlet-name>
		<url-pattern>*.do</url-pattern>
	</servlet-mapping>
  	<servlet-mapping>
		<servlet-name>remoting</servlet-name>
		<url-pattern>/remoting/*</url-pattern>
	</servlet-mapping>	
  	<servlet-mapping>
  		<servlet-name>admin</servlet-name>
  		<url-pattern>/admin</url-pattern>
  	</servlet-mapping>
	<!-- All the required Struts taglibs -->
	<!-- Use the taglibs that are embedded in the struts.jar to reduce
dependencies -->
	<taglib>
		<taglib-uri>http://struts.apache.org/tags-bean</taglib-uri>
		<taglib-location>/META-INF/tlds/struts-bean.tld</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>http://struts.apache.org/tags-html</taglib-uri>
		<taglib-location>/META-INF/tlds/struts-html.tld</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>http://struts.apache.org/tags-logic</taglib-uri>
		<taglib-location>/META-INF/tlds/struts-logic.tld</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>http://struts.apache.org/tags-tiles</taglib-uri>
		<taglib-location>/META-INF/tlds/struts-tiles.tld</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>http://struts.apache.org/tags-nested</taglib-uri>
		<taglib-location>/META-INF/tlds/struts-nested.tld</taglib-location>
	</taglib>
	<!-- Spring taglib -->
	<taglib>
		<taglib-uri>http://www.springframework.org/tags</taglib-uri>
		<taglib-location>/META-INF/spring.tld</taglib-location>
	</taglib>

</web-app>
-- 
View this message in context: http://www.nabble.com/JSPC-plugin-can%27t-find-tag-library-embedded-in-jar-tp18223951p18223951.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org