Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    jboss7 + smargwt

    Hi

    i have the next issue:

    23:39:17,928 INFO [org.jboss.web] (MSC service thread 1-1) JBAS018210: Registering web context: /cmct
    23:39:17,928 INFO [org.jboss.as] (MSC service thread 1-3) JBAS015951: Admin console listening on http://127.0.0.1:9990
    23:39:17,943 INFO [org.jboss.as] (MSC service thread 1-3) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 26188ms - Started 279 of 357 services (76 services are passive or on-demand)
    23:39:18,021 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "cmct.war"
    23:39:43,443 INFO [stdout] (http--127.0.0.1-8080-1) Problem loading builtinTypes.xml

    23:39:43,443 INFO [stdout] (http--127.0.0.1-8080-1) Exception when loading from __USE_CONTAINER__/isomorphic/system/schema/builtinTypes.xml:
    23:39:43,443 INFO [stdout] (http--127.0.0.1-8080-1) java.lang.NullPointerException

    23:39:43,443 INFO [stdout] (http--127.0.0.1-8080-1) at com.isomorphic.io.ISCFile.lastModified(ISCFile.java:419)

    23:39:43,443 INFO [stdout] (http--127.0.0.1-8080-1) at com.isomorphic.store.ProcessedFileCache.getObjectFromFile(ProcessedFileCache.java:131)

    23:39:43,443 INFO [stdout] (http--127.0.0.1-8080-1) at com.isomorphic.store.ProcessedFileCache.getObjectFromFile(ProcessedFileCache.java:74)

    23:39:43,443 INFO [stdout] (http--127.0.0.1-8080-1) at com.isomorphic.store.ProcessedFileCache.getObjectFromFile(ProcessedFileCache.java:138)

    23:39:43,443 INFO [stdout] (http--127.0.0.1-8080-1) at com.isomorphic.xml.XML.getXMLDocument(XML.java:254)

    I am using as a web server jboss 7.1, i use smartgwt power edition 2.5:

    the structure of the project is:

    WebContent:
    - the compiled gwt

    #2
    Forgot to install Init servlet or bad GWT <inherits>. See installation instructions.

    Comment


      #3
      this is my web.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app id="WebApp_ID" version="3.0"
      xmlns="http://java.sun.com/xml/ns/javaee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
      >

      <display-name>cmct</display-name>
      <context-param>
      <param-name>config.file</param-name>
      <param-value>conf/appconfig.properties</param-value>
      </context-param>
      <!-- ISC init: initializes ISC framework -->
      <servlet>
      <servlet-name>Init</servlet-name>
      <servlet-class>com.isomorphic.base.Init</servlet-class>
      <load-on-startup>1</load-on-startup>
      </servlet>
      <!-- The IDACall servlet handles all Built-in DataSource operations -->
      <servlet>
      <servlet-name>IDACall</servlet-name>
      <servlet-class>com.isomorphic.servlet.IDACall</servlet-class>
      </servlet>
      <!-- The DataSourceLoader servlet returns Javascript representations of the dataSources whose
      ID's are passed to it - it is an alternative to using the <loadDS> JSP tag -->
      <servlet>
      <servlet-name>DataSourceLoader</servlet-name>
      <servlet-class>com.isomorphic.servlet.DataSourceLoader</servlet-class>
      </servlet>
      <!-- RPCManager uses this URL by default for Built-in DataSource operations -->
      <servlet-mapping>
      <servlet-name>IDACall</servlet-name>
      <url-pattern>/cmct/sc/IDACall</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
      <servlet-name>IDACall</servlet-name>
      <url-pattern>/cmct/sc/IDACall/*</url-pattern>
      </servlet-mapping>
      <!-- DataSourceLoader requests -->
      <servlet-mapping>
      <servlet-name>DataSourceLoader</servlet-name>
      <url-pattern>/cmct/sc/DataSourceLoader</url-pattern>
      </servlet-mapping>
      <welcome-file-list>
      <welcome-file>index.html</welcome-file>
      <welcome-file>index.htm</welcome-file>
      <welcome-file>index.jsp</welcome-file>
      <welcome-file>default.html</welcome-file>
      <welcome-file>default.htm</welcome-file>
      <welcome-file>default.jsp</welcome-file>
      </welcome-file-list>
      <jsp-config>
      <!-- Isomorphic JSP tags -->
      <taglib>
      <taglib-uri>isomorphic</taglib-uri>
      <taglib-location>/WEB-INF/iscTaglib.tld</taglib-location>
      </taglib>
      </jsp-config>
      </web-app>


      and my file.gwt.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.0//EN"
      "http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-source/core/src/gwt-module.dtd">
      <module rename-to='ProjectName'>
      <!-- Inherit the core Web Toolkit stuff. -->
      <inherits name='com.google.gwt.user.User' />

      <inherits name="com.smartgwt.tools.SmartGwtTools"/>
      <inherits name="com.smartgwtpower.SmartGwtPower"/>
      <!-- <inherits name="com.smartgwtpower.tools.Tools"/>
      -->
      <!-- <inherits name="com.google.gwt.logging.Logging" /> -->

      <entry-point class='ro.georgesand.cmct.client.CmctClient' />

      </module>


      i followed the full instructions, if I skype somenthing please tell me.

      thank you
      George sand

      Comment


        #4
        In the logs above there are no log messages from the Init servlet performing initialization. These should be present, or the Init servlet is not properly installed - possibly something simple like forgetting to actual save web.xml or forgetting to restart JBoss after modifying it.

        Also make sure you have run a GWT compile and can see that assets such as builtinTypes.xml appear in your project's "war/" directory and under the JBoss deployment directory.

        Comment


          #5
          you are right now i see , only one question it is mandatory to use a war directory with the name war ??? because in all the examples i see the war , i use maven and i deploy my compiled gwt part in the webcontent folder with the rest of the files.

          best regards
          george

          Comment


            #6
            No, the name "war" is not mandatory, all that matters is that the files end up under webroot.

            Comment


              #7
              Thank you for the fast answer.

              i fix the issue i follow the init servlet part until i star the job, it looks like my project didn't reconize some of the libs (very wwired), but now is working, i can bind smargwt power edition to my project and really this is cool.

              thank you again for the fast answer,
              best regards
              george sand

              Comment

              Working...
              X