Uploaded image for project: 'Errai'
  1. Errai
  2. ERRAI-309

JBoss AS7 Does not marshall properly in -noserver mode

    Details

    • Steps to Reproduce:
      Hide

      Annotate models with annotations found in external 3rd party jars. Mark the models as @Portable and attempt to run the project in -noserver.

      Show
      Annotate models with annotations found in external 3rd party jars. Mark the models as @Portable and attempt to run the project in -noserver.
    • Workaround Description:
      Hide

      If you run the client with -gen, it will generate the serverMarshallingFactoryImpl on the client side. This generated file needs to be copied and placed in the server classpath

      Show
      If you run the client with -gen, it will generate the serverMarshallingFactoryImpl on the client side. This generated file needs to be copied and placed in the server classpath

      Description

      When working with -noserver, the server tries to generate ServerMarshallingFactoryImpl, and using AS7, runs into a problem in the method ClassChangeUtil.getFileIfExists (Line 364). I believe the problem is that the classloader returns the url in a slightly different format, specifically, it leaves off the "!" for the files contained within the jar files, thus getFileIfExists returns null. I spoke with jfuerth about this in IRC. Apparently the kitchen sink fails if run on AS7 in -noserver

      This became a problem in particular when models were annotated with hibernate annotations that needed to be included from jars not part of AS7. The lookup of these jars failed.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                cbrock Mike Brock
                Reporter:
                jblinick Josh B
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: