Compiling JSP with JSTL tags completes, but page is full of ${..} in browser.
-----------------------------------------------------------------------------

                 Key: MJSPC-52
                 URL: http://jira.codehaus.org/browse/MJSPC-52
             Project: Maven 2.x JSPC Plugin
          Issue Type: Bug
    Affects Versions: 1.4.6
            Reporter: Paul Durcek


We are trying to precompile JSPs for our Spring 3 MVC web application.  The 
precompile succeeds without errors; however, when the page is rendered in a 
browser, the pages are full of ${...} where JSTL tags are located.  The pages 
themselves contain other tag libraries including Spring and Displaytag which 
are handled correctly.  It is an OSGI application which we are running in 
Eclipse Virgo server.  If we turn the precompile off, the Virgo server 
correctly compiles the pages.  Here are our current configs:

{code:xml}
<plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>jspc-maven-plugin</artifactId>
                <version>${jspc.version}</version>
                <executions>
                    <execution>
                        <id>jspc</id>
                        <goals>
                            <goal>compile</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                        <inputWebXml>${src.webinf.path}/inweb.xml</inputWebXml>
                        <outputWebXml>${src.webinf.path}/web.xml</outputWebXml>
                        <injectString>&lt;!-- [INSERT FRAGMENT HERE] 
--&gt;</injectString>
                        <verbose>true</verbose>
                        <tomcatVersion>6.0.29</tomcatVersion>
                </configuration>
                <dependencies>
                        <dependency>
                                            <groupId>org.codehaus.mojo</groupId>
                                            
<artifactId>jspc-maven-plugin</artifactId>
                                            <version>${jspc.version}</version>
                                        </dependency>
                                        <dependency>
                                            
<groupId>org.apache.commons</groupId>
                                            
<artifactId>com.springsource.org.apache.commons.logging</artifactId>
                                            <version>1.1.1</version>
                                        </dependency>
                                        <dependency>
                                                <groupId>taglibs</groupId>
                                                
<artifactId>standard</artifactId>
                                                <version>1.1.2</version>
                                        </dependency>
                                        <dependency>
                                                <groupId>jstl</groupId>
                                                <artifactId>jstl</artifactId>
                                                <version>1.1.2</version>
                                        </dependency>
                                        
                                        <!-- Use the Tomcat 6 JSP compiler -->
                                <dependency>
                                    <groupId>org.codehaus.mojo.jspc</groupId>
                                    
<artifactId>jspc-compiler-tomcat6</artifactId>
                                    <version>2.0-alpha-3</version>
                                </dependency>
                           </dependencies>
            </plugin>
                        

                        <plugin>
                                <artifactId>maven-war-plugin</artifactId>
                                <version>2.1.1</version>
                                <configuration>
                                        <archive>
                                                
<manifestFile>${project.build.directory}/${project.artifactId}.war/META-INF/MANIFEST.MF</manifestFile>
                                        </archive>
                                        <webResources>
                                                <resource>
                                                        
<directory>src/main/webapp</directory>
                                                        
<filtering>true</filtering>
                                                </resource>
                                        </webResources>
                                        
<webappDirectory>${project.build.directory}/${project.artifactId}.war</webappDirectory>
                                        
<webXml>${src.webinf.path}/web.xml</webXml>
                                        
<warSourceDirectory>${webapp.src}</warSourceDirectory>
                                </configuration>
                        </plugin>

{code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to