[jboss-user] [JBoss Web Services] - stxx upgrade

Steve Jagels do-not-reply at jboss.com
Thu May 26 12:22:33 EDT 2011


Steve Jagels [http://community.jboss.org/people/sej] created the discussion

"stxx upgrade"

To view the discussion, visit: http://community.jboss.org/message/607287#607287

--------------------------------------------------------------
I had 2 projects in MyEclipse 5.5.1 and Jboss 4.0.4.GA that worked fine. Both use STXX.  Now I've moved them to Eclipse 3.4 Ganymede and JBoss 4.3.0.GA.  They work fine in the new environment, but the eclipse validation lists dozens of errors for the struts-config.xml file that should probably be listed as warnings or not at all (otherwise, the app would not work).

In one project's struts-config file there are many lines like this:

<action path="/saveRecord"
   type="com.blah.blah.blah.action.SaveRecordAction"
   name="recordForm"
   scope="request">
   <forward name="stxx_input">
      <transform name="default" path="/Redirector.xsl" render="client"/>
   </forward>                            
   <forward name="success" path="/viewRecord.do"/>            
</action>

The error message shows as:

Attribute "path" is required and must be specified for element type "forward"

But the path attribute is in the transform element, which the validation does not seem to recognize.

Struts-config has:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
                               " http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">

 and web.xml has:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
                         " http://java.sun.com/j2ee/dtds/web-app_2_3.dtd http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">

In the other project's struts-config file there are many lines like this:

<action name="SaveRecord" path="/saveRecord" scope="request" type="com.blah.blah.blah.action.SaveRecord">
   <forward name="stxx_input" path="saveRecord.dox"/>
   <forward name="success" path="saveRecord.dox"/>
</action>

The error message shows as:

forward stxx_input of Action /saveRecord path attribute reference to nonexistent tile or page

The .dox refers to this section of the stxx-transforms.xml file, which the validation does not seem to recognize:

<transform name="saveRecord.dox">
   <xsl selector="default" render="client">
      <file name="/saveRecord.xsl"/>
   </xsl>
</transform>

The strut-config file also has this, which the validation is maybe not recognizing:

<plug-in className="com.oroad.stxx.plugin.StxxPlugin">
   <set-property property="transform-config" value="/WEB-INF/stxx-transforms.xml"/>
</plug-in>

Struts-config has:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
  "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
  " http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">

 and web.xml has: 
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
  " http://java.sun.com/j2ee/dtds/web-app_2_3.dtd http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">

For both applications I have reviewed and revised the validation settings for DTD, XML, etc., which had no effect.

Any ideas why the validation is not working properly, or how to turn it off?
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/607287#607287]

Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110526/d823334f/attachment.html 


More information about the jboss-user mailing list