Announcement

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

    howto export a WAR file for deployment?

    If your readme.txt (i.e. developers.google.com) says to
    create a *Java* project in eclipse
    how do you deploy a SmartGWT project to a web container/production server?

    Eclipse only offers a WAR file export for projects of type *Web* !

    [And as I informed you in my first post here
    the ant build file doesn't work either: 'ant war']

    I'm using SmartClient v10.0p_2015-04-01/EVAL Deployment (expires 2015.05.31_06.33.21),
    Firefox 36.0.4 for ubuntu,
    Eclipse 4.4 Luna.

    #2
    now proect 'builtinds' cannot even be run: Validation hangs

    Ok, the forum showed me one solution which gives me worse problems.

    First, to enable Eclipse's WAR export
    you can open the imported smartgwt sample project's Properties
    choose 'Project Facets' tab
    click 'convert to faceted form...'
    check 'Dynamic Web Project' and click on 'i: Further configuration...'
    , change the "Content Directory" to 'war' ( I guess...)
    click OK.

    After this my built-in-ds project did not run any more
    because it hung on Validation (I guess on 20 errors like:
    Description: Can not find the tag library descriptor for "/WEB-INF/iscTaglib.xml"
    Resource Path Location Type: index.jsp /built-in-ds/war/builtinds/tools/visualBuilder line 1 JSP Problem
    )

    I cancelled this run-operation
    and tried again --> all worked..... even the WAR file export

    Comment


      #3
      run works again -- deploy FAILS

      Information: Deploying web application archive /opt/apache-tomcat-7.0.59/webapps/sgwtBuiltinDS.war
      Apr 14, 2015 10:38:55 AM org.apache.catalina.loader.WebappClassLoader validateJarFile
      Information: validateJarFile(/opt/jakarta/webapps/sgwtBuiltinDS/WEB-INF/lib/gwt-dev.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class

      --- just why are you putting Servlet.class into gwt-dev.jar ?

      Comment

      Working...
      X