-
Aug 27th, 2010, 03:49 PM
#11
Hi larsenje,
The validation errors that you mention might be caused there is a xml-related component in you classpath.
Just make sure this is not the case.
On my box all stages execute fine. No errors in expenses.roo project at all.
Thx
jD
-
Sep 2nd, 2010, 03:43 PM
#12
Chief Sientist & Consultant
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:default-servlet-handler'.
webmvc-config.xml contains the following errors:
<!-- Handles HTTP GET requests for /resources/** by efficiently serving up static resources -->
<mvc:resources location="classpath:/META-INF/dojo/" mapping="/resources/dojo/**"/>
<mvc:resources location="classpath:/META-INF/dijit/" mapping="/resources/dijit/**"/>
<mvc:resources location="classpath:/META-INF/spring/" mapping="/resources/spring /**"/>
<mvc:resources location="/" mapping="/resources/**"/>
<!-- Allows for mapping the DispatcherServlet to "/" by forwarding static resource requests to the container's default Servlet -->
<mvc:default-servlet-handler/>
System:
eclipse.buildId=2.3.3.201007151000-M2
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product com.springsource.sts.ide --launcher.defaultAction openFile
Command-line arguments: -os linux -ws gtk -arch x86_64 -product com.springsource.sts.ide --launcher.defaultAction openFile
roo 1.1.0M3
accorrding to previous post the M3 works on spring demo code, well it does not on any oth my apps. My app[ was originally create 4 months ago with 1.1.0.Release and then used M2 and now has a large amount of can not dowwnlopd artifact.
Recreated the entire app, webapp, with M3, perform test - package and eclipse without error. The load into STS 2.3.3xxxx using roo M3 and I have the above errors. It seems to me that many people are having the same problems. So far in 4 months, I have not been able to get any project to give me more than a 404 on the webpage. I am personally getting impatient with STS and spring.
-
Sep 2nd, 2010, 03:47 PM
#13
Have you upgraded to STS 2.5.0M3? That fixed the problem you are describing to me.
-
Sep 2nd, 2010, 05:08 PM
#14
Chief Scientist Consultant
Thank you for a reply, NO, actually did not know about it. I followed the install instructions from the announcements. I will install the STS 2.5.0M3 and see how that goes.
Rick
-
Sep 2nd, 2010, 07:30 PM
#15
Chief Sientist & Consultant
SpringSource Tool Suite
Version: 2.5.0.M3
Build Id: 201008251000
(c) Copyright SpringSource 2007, 2010. All rights reserved.
Visit http://springsource.com/products/sts
This product includes software developed by the
Apache Software Foundation http://www.apache.org
eclipse.buildId=2.5.0.201008251000-M3
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product com.springsource.sts.ide
Command-line arguments: -os linux -ws gtk -arch x86_64 -product com.springsource.sts.ide
28527 ? Sl 2:20 /opt/jdk1.6.0_20/bin/java -Dosgi.requiredJavaVersion=1.5 -Xms512m -Xmx1024m -XX:MaxPermSize=1024m -jar /usr/local/springsource_2.5.0.M3_x64/sts-2.5.0.M3//plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar -os linux -ws gtk -arch x86_64 -showsplash -launcher /usr/local/springsource_2.5.0.M3_x64/sts-2.5.0.M3/STS -name STS --launcher.library /usr/local/springsource_2.5.0.M3_x64/sts-2.5.0.M3//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1. 0.v20100503/eclipse_1307.so -startup /usr/local/springsource_2.5.0.M3_x64/sts-2.5.0.M3//plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar -exitdata a2001b -product com.springsource.sts.ide -vm /opt/jdk1.6.0_20/bin/java -vmargs -Dosgi.requiredJavaVersion=1.5 -Xms512m -Xmx1024m -XX:MaxPermSize=1024m -jar /usr/local/springsource_2.5.0.M3_x64/sts-2.5.0.M3//plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
<!-- Handles HTTP GET requests for /resources/** by efficiently serving up static resources -->
<mvc:resources location="classpath:/META-INF/dojo/" mapping="/resources/dojo/**"/>
<mvc:resources location="classpath:/META-INF/dijit/" mapping="/resources/dijit/**"/>
<mvc:resources location="classpath:/META-INF/spring/" mapping="/resources/spring/**"/>
<mvc:resources location="/" mapping="/resources/**"/>
<!-- Allows for mapping the DispatcherServlet to "/" by forwarding static resource requests to the container's default Servlet -->
<mvc:default-servlet-handler/>
Problem still exsist, I can zip up the project and send it to someone. Like I said, created in roo M3. Actually, I have rebuilt this project 5 times since Monday, however it could be me. I just do not know.
Rick
-
Sep 2nd, 2010, 07:36 PM
#16
Chief Sientist & Consultant
load-scripts.tagx
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:spring="http://www.springframework.org/tags" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<spring:theme code="styleSheet" var="roo_css" />
<spring:url value="/${roo_css}" var="roo_css_url" />
<spring:url value="/resources/dojo/dojo.js" var="dojo_url" />
<spring:url value="/resources/dijit/themes/tundra/tundra.css" var="tundra_url" />
<spring:url value="/resources/spring/Spring.js" var="spring_url" />
<spring:url value="/resources/spring/Spring-Dojo.js" var="spring_dojo_url" />
<spring:url value="/resources/images/favicon.ico" var="favicon" />
<link rel="stylesheet" type="text/css" media="screen" href="${roo_css_url}"><!-- required for FF3 and Opera --></link>
<link rel="stylesheet" type="text/css" href="${tundra_url}"><!-- required for FF3 and Opera --></link>
<link rel="SHORTCUT ICON" href="${favicon}" />
<!-- Get the user local from the page context (it was set by Spring MVC's locale resolver) -->
<c:set var="userLocale">
<c:out value="${pageContext.response.locale}" default="en" />
</c:set>
<script type="text/javascript">var djConfig="${userLocale}"; </script>
<!-- <<< is the ; a typeo here? there is an error marked here:
Multiple annotations found at this line:
- javax.servlet.jsp.PageContext cannot be resolved to a type
- javax.servlet.jsp.JspException cannot be resolved to a type
-->
<script src="${dojo_url}" type="text/javascript"><!-- required for FF3 and Opera --></script>
<script src="${spring_url}" type="text/javascript"><!-- /required for FF3 and Opera --></script>
<script src="${spring_dojo_url}" type="text/javascript"><!-- required for FF3 and Opera --></script>
<script language="JavaScript" type="text/javascript">dojo.require("dojo.parser");</script>
</
-
Sep 10th, 2010, 12:25 PM
#17
Chief Sientist & Consultant
Created new web project using example from http://blog.springsource.com/2009/05/27/roo-part-2/. The same problem with load-scripts.tagx is present. This is a major problem, do I need to open a ticket request for a fix?
oad-scripts.tagx
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:spring="http://www.springframework.org/tags" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<spring:theme code="styleSheet" var="roo_css" />
<spring:url value="/${roo_css}" var="roo_css_url" />
<spring:url value="/resources/dojo/dojo.js" var="dojo_url" />
<spring:url value="/resources/dijit/themes/tundra/tundra.css" var="tundra_url" />
<spring:url value="/resources/spring/Spring.js" var="spring_url" />
<spring:url value="/resources/spring/Spring-Dojo.js" var="spring_dojo_url" />
<spring:url value="/resources/images/favicon.ico" var="favicon" />
<link rel="stylesheet" type="text/css" media="screen" href="${roo_css_url}"><!-- required for FF3 and Opera --></link>
<link rel="stylesheet" type="text/css" href="${tundra_url}"><!-- required for FF3 and Opera --></link>
<link rel="SHORTCUT ICON" href="${favicon}" />
<!-- Get the user local from the page context (it was set by Spring MVC's locale resolver) -->
<c:set var="userLocale">
<c:out value="${pageContext.response.locale}" default="en" />
</c:set>
<script type="text/javascript">var djConfig="${userLocale}"; </script>
<!-- <<< is the ; a typeo here? there is an error marked here:
Multiple annotations found at this line:
- javax.servlet.jsp.PageContext cannot be resolved to a type
- javax.servlet.jsp.JspException cannot be resolved to a type
-->
<script src="${dojo_url}" type="text/javascript"><!-- required for FF3 and Opera --></script>
<script src="${spring_url}" type="text/javascript"><!-- /required for FF3 and Opera --></script>
<script src="${spring_dojo_url}" type="text/javascript"><!-- required for FF3 and Opera --></script>
<script language="JavaScript" type="text/javascript">dojo.require("dojo.parser");</script>
</
It appears that not all of the correct libraries are obtained by maven, either a default int the setup to get proper libs or maven does not know where they currently resides.
Creating a new roo project and this happens is bad.
Rick
-
Sep 11th, 2010, 08:30 AM
#18
Chief Sientist & Consultant
It seems that load-script.tagx does not effect whether web app will run in a browers or not.
Created a new project and load-script had errors, however it still ran in cli mvn tomcat:run and in eclipse. Still needs to be fixed. It seems that who ever is monitoring this thread, must think this problem is beneath them. It is not. I have yet to see a reply of any kind for this problem in load-script.tagx
Rick
-
Sep 28th, 2010, 11:16 AM
#19
.. not the reply you're looking for but I get the same error when I create new projecs.
-
Sep 30th, 2010, 09:02 AM
#20
Load-scripts
I am really surprised that a Engineer from spring has not answered with something. This is miss leading, you have an error and the web app still runs. Although the error code probably is never called when using any browser other than opera.
This should be fixed.
Rick
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules