Topic
  • 1 reply
  • Latest Post - ‏2013-10-08T16:48:04Z by mzqhxy
mzqhxy
mzqhxy
11 Posts

Pinned topic WAS 6.1 to WAS8 migration

‏2013-10-07T20:03:32Z |

We are migrating from WAS6.1 to WAS 8.  I am trying to convert the current application using RAD 8.0.4.  I have made a number of changes but still I am getting errors in the websphere logs that I can not figure out.

I have feeling they may be related to the reference the application uses for a data source.

 

here is the reference I have defined int he web.xml

<resource-ref id="ResourceRef_1173389382219">
        <description>
        </description>
        <res-ref-name>WinsDigitalNativeDS</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Application</res-auth>
        <res-sharing-scope>Unshareable</res-sharing-scope>
    </resource-ref>

 

When RAD converted the application from using runtime 61 to 8 it change the ibm-web-ext.xml to

<?xml version="1.0" encoding="UTF-8"?>
<web-ext
    xmlns="http://websphere.ibm.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://websphere.ibm.com/xml/ns/javaee http://websphere.ibm.com/xml/ns/javaee/ibm-web-ext_1_1.xsd"
    
    version="1.1">
 
 
  <servlet name="Controller"/>
  <servlet name="Base"/>
  <servlet name="WebFacingServlet"/>
  <servlet name="cpinterface"/>
  <servlet name="Mvr"/>
  <servlet name="RemoteScripting"/>
  <reload-interval value="9"/>
  <resource-ref connection-management-policy="DEFAULT"/>
  <enable-directory-browsing value="false"/>
  <enable-file-serving value="true"/>
  <pre-compile-jsps value="false"/>
  <enable-reloading value="false"/>
  <enable-serving-servlets-by-class-name value="true"/>
</web-ext>

 

The resource-ref now gives the following error

cvc-complex-type.4: Attribute 'name' must appear on element 'resource-ref' for the line highlighted in red.

 

Also now I can not find the resource context.lookup("java:comp/env/" + myDataSourceName);

I also get this error Unable to perform reference processing for component  in module  in application  which I am thinking is related to the above error.

 

Any help would be appreciated.  Thanks.

  • mzqhxy
    mzqhxy
    11 Posts

    Re: WAS 6.1 to WAS8 migration

    ‏2013-10-08T16:48:04Z  

    ok here is my problem

    hen RAD converted the application from using runtime 61 to 8 it change the ibm-web-ext.xml to

    <?xml version="1.0" encoding="UTF-8"?>
    <web-ext
        xmlns="http://websphere.ibm.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://websphere.ibm.com/xml/ns/javaee http://websphere.ibm.com/xml/ns/javaee/ibm-web-ext_1_1.xsd"
        
        version="1.1">
     
     
      <servlet name="Controller"/>
      <servlet name="Base"/>
      <servlet name="WebFacingServlet"/>
      <servlet name="cpinterface"/>
      <servlet name="Mvr"/>
      <servlet name="RemoteScripting"/>
      <reload-interval value="9"/>
      <resource-ref connection-management-policy="DEFAULT"/>
      <enable-directory-browsing value="false"/>
      <enable-file-serving value="true"/>
      <pre-compile-jsps value="false"/>
      <enable-reloading value="false"/>
      <enable-serving-servlets-by-class-name value="true"/>
    </web-ext>

     

    The resource-ref errors off. it looks like the DTD does not contain connection-management-policy.  If I take this out I am fine.  Do I really need this value?