users@glassfish.java.net

Verifier bugs?

From: <glassfish_at_javadesktop.org>
Date: Thu, 12 Apr 2007 10:37:04 PDT

I'm not certain, but my read of the referenced documentation indicates that the following verifier "errors" are incorrect. I searched in Issue Tracker, but did not find references to these. Should these be filed as bugs, or am I mistaken here?
[b]
1. I'm using Hibernate, not TopLink, yet I get a TopLink verification error:[/b]

         Test Name : tests.persistence.DefaultProviderVerification
         Test Assertion : Test validity of EJB 3.0 persistence unit. This test tests validity using
a portable persistence provider. Please refer to EJB 3.0 Persistence API Specification for further i
nformation.
         Test Description : For [ Smash#Smash-ejb.jar#SmashPU ]
Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.0 (Build b41a-beta2 (04/03/2007))): oracle.
toplink.essentials.exceptions.EntityManagerSetupException
Exception Description: predeploy for PersistenceUnit [SmashPU] failed.
Internal Exception: Exception [TOPLINK-7155] (Oracle TopLink Essentials - 2.0 (Build b41a-beta2 (04/
03/2007))): oracle.toplink.essentials.exceptions.ValidationException
Exception Description: The type [interface java.util.List] for the attribute [conditionFactors] on t
he entity class [class com.toolcafe.smash.model.PriceFactors] is not a valid type for a serialized m
apping. The attribute type must implement the Serializable interface.

[u]From my persistence.xml:[/u]

  <persistence-unit name="SmashPU" transaction-type="JTA">
    <provider>org.hibernate.ejb.HibernatePersistence</provider>
    <jta-data-source>jdbc/smashhibernate</jta-data-source>
    <properties>
      <!--property name="hibernate.show_sql" value="true"/-->
      <property name="hibernate.show_sql" value="true"/>
      <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect"/>
      <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
    </properties>
  </persistence-unit>

[b]2. The following two verifier errors are kind of the same error: (in both cases, #SRV.13.4 indicates that the location should begin with a '/', which it does in my web.xml. Also, form login works in my application when I deploy without running the verifier.)[/b]

         Test Name : tests.web.FormLoginPage
         Test Assertion : Web form-login-page value defines the location in the Web application where the page to be used for login can be found. Please refer to Java Servlet 2.5 Specification Section #SRV.13.4 for further information.
         Test Description : For [ Smash#Smash-war.war ] Error: The form-login-page [ login/loginForm.jsf ] value does not define the location in the Web application [ ] where the page to be used for login can be found.

         Test Name : tests.web.FormErrorPage
         Test Assertion : Web form-error-page value defines the location in the Web application where the error page that is displayed when login is not successful can be found. Please refer to Java Servlet 2.5 Specification Section #SRV.13.3 for further information.
         Test Description : For [ Smash#Smash-war.war ] Error: The form-error-page [ login/loginError.jsf ] value does not define the location in Web application [ ] where the error page that is displayed when login is not successful can be found.

[u]...from my web.xml:[/u]

    <login-config>
        <auth-method>FORM</auth-method>
        <realm-name>smash-users</realm-name>
        <form-login-config>
            <form-login-page>/login/loginForm.jsf</form-login-page>
            <form-error-page>/login/loginError.jsf</form-error-page>
        </form-login-config>
    </login-config>

[b]3. Does anyone know what this error message means?[/b]

                          Test Name : tests.web.elements.MimeTypeElement
         Test Assertion : Servlet mime-type element contains a defined MIME type. Please refer to Java Servlet 2.5 Specification Section #SRV.13.3 for further information.
         Test Description : For [ Smash#Smash-war.war ] Error: Servlet mime-type [ text/csv ] is defined but not valid for this Web application [ ].

[u]From my web.xml:[/u]

    <mime-mapping>
        <extension>csv</extension>
        <mime-type>text/csv</mime-type>
    </mime-mapping>
[Message sent by forum member 'rickhoro' (rickhoro)]

http://forums.java.net/jive/thread.jspa?messageID=212155