Announcement Announcement Module
Collapse
No announcement yet.
Error on creating new GWT/Roo Project Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • #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>

    </

    Comment


    • #17
      Chief Sientist &amp; 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

      Comment


      • #18
        Chief Sientist &amp; 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

        Comment


        • #19
          .. not the reply you're looking for but I get the same error when I create new projecs.

          Comment


          • #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

            Comment


            • #21
              Hi guys. I have the same problem. Even without GWT.
              Just created the first controller.

              STS 2.5.0M3, roo 1.1.0M3. Any suggestions?

              Comment


              • #22
                Same issue here, running:

                STS 2.5.0.M3
                ROO 1.1.0.RC1

                App runs perfectly within tomcat, maven compiles with no issues, suspect this is an issue with STS


                Description Resource Path Location Type
                javax.servlet.jsp.JspException cannot be resolved to a type load-scripts.tagx /replay_test1/src/main/webapp/WEB-INF/tags/util line 21 JSP Problem


                Description Resource Path Location Type
                javax.servlet.jsp.PageContext cannot be resolved to a type load-scripts.tagx /replay_test1/src/main/webapp/WEB-INF/tags/util line 21 JSP Problem

                Comment


                • #23
                  I have just fixed this in Roo master. The fix will be included in the upcoming release.

                  Comment


                  • #24
                    I am also using STS 2.5.0.RC1 and keep getting this error message in load-scripts.tagx .
                    Line <script type="text/javascript">var djConfig="${userLocale}"; </script>
                    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

                    Is there a work around from inside the STS ide or do I need to go to the roo commandline?

                    Comment


                    • #25
                      This should be fixed in the latest roo release 1.1.0

                      Comment

                      Working...
                      X