Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-2289

RESTEasy starting twice in Krazo (JSR-371 RI)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Optional
    • None
    • None
    • None
    • None
    • Hide
      • Clone https://github.com/mthmulders/mvc-servlet-container
      • Package the app with mvn clean package
      • Deploy the app to Apache Tomcat 9.x
      • Notice logs/catalina.out contains the text org.eclipse.krazo.bootstrap.Initializer.initialize Initializing Eclipse Krazo multiple times
      Show
      Clone https://github.com/mthmulders/mvc-servlet-container Package the app with mvn clean package Deploy the app to Apache Tomcat 9.x Notice logs/catalina.out contains the text org.eclipse.krazo.bootstrap.Initializer.initialize Initializing Eclipse Krazo multiple times

    Description

      I've been trying out Krazo, the JSR-371 RI, which builds upon JAX-RS and RESTEasy.
      Their Install Guide for Servlet Containers provides a sample web.xml file:

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns="http://java.sun.com/xml/ns/javaee"
               xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_4_0.xsd"
               version="4.0">
      
        <!-- omitted for brevity -->
      
      </web-app>
      

      When I do this, I notice that my application logs the following message *twice*:

      org.eclipse.krazo.bootstrap.Initializer.initialize Initializing Eclipse Krazo...
      

      I wonder if this intentional. If not, adding the following to the root `web-app` fixed it for me:

      metadata-complete="true"
      

      I first reported this [with Krazo](https://github.com/eclipse-ee4j/krazo/issues/80) as I thought the `metadata-complete` was the problem. But they think it's something in RESTEasy and suggested to report it here.

      Attachments

        Issue Links

          Activity

            People

              rsearls r searls
              m.th.mulders@xs4all.nl Maarten Mulders (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: