1 Reply Latest reply: Apr 28, 2014 11:28 AM by 4047d934-4e0d-45cb-807d-a2ae1c9cd7a0 RSS

    Sporadic problem while deploying Webservice on Weblogic: Can't find bundle for base name org.apache.xerces.impl.msg.SAXMessages, locale de_DE

    4047d934-4e0d-45cb-807d-a2ae1c9cd7a0

      Hello together,

       

      I already used the search engine looking for "locale" but didn't find any hint for my problem.

       

      Sometimes when I try to deploy my webservice on a virtual enviroment on the weblogic server I got the error "java.util.MissingResourceException: Can't find bundle for base name org.apache.xerces.impl.msg.SAXMessages, locale de_DE"

      It seems it failed more often when the server is more busy as usual.

       

      • I already try to throw out all Apache Xerces (and also Xalan) packages but due to code analysis which I making with cobertura, cobertura itself using some of those libraries.
      • I tried to undeloy first all deployed services and deploy after on a clean wlst
      • Furthermore I removed the default language "german" from the ResourceBundle
      • Also I try to first build all sources and after all is finished I try to deploy the just builded sources.
      • Even a change of the enviroment settings on the weblogic server

       

      all those things doesn't really help, I still have this sporadic behavoir.

       

      Have someone out there an idea what else I can try or had somebody a similar problem what got fixed?

       

      Thanks in advanced.

       

      Greetings

      Dave

       

      Here is the complete info text from weblogic maven plugin (anonymoused)

       

      [INFO] --- weblogic-maven-plugin:10.3.6.0:deploy (default) @ my-service ---

      The args for the deployer is: -noexit -adminurl my-server:myport -user myuser -password ******** -deploy -name my-servicemy-user -source harddiscservices\my-service-parent-version\my-service-ear\target/my-servicemy-user.ear -targets weblogic-node -upload -verbose

      weblogic.Deployer invoked with options:  -noexit -adminurl my-server:myport -user 001my-user -deploy -name my-servicemy-user -source harddiscservices\my-service-parent-version\my-service-ear\target/my-servicemy-user.ear -targets weblogic-node -upload -verbose

      <date + time Uhr MEZ> <Info> <J2EE Deployment SPI> <database> <Initiating deploy operation for application, my-servicemy-user [archive: harddiscservices\my-service-parent-version\my-service-ear\target\my-servicemy-user.ear], to weblogic-node .>

      Task 297 initiated: [Deployer:149026]deploy application my-servicemy-user on weblogic-node.

      Task 297 failed: [Deployer:149026]deploy application my-servicemy-user on weblogic-node.

      Target state: deploy failed on Server weblogic-node

      java.util.MissingResourceException: Can't find bundle for base name org.apache.xerces.impl.msg.SAXMessages, locale de

       

      Here are the configuration for the deployment:

       

      [DEBUG] Configuring mojo com.oracle.weblogic:weblogic-maven-plugin:10.3.6.0:deploy from plugin realm ClassRealm[plugin>com.oracle.weblogic:weblogic-maven-plugin:10.3.6.0, parent: sun.misc.Launcher$AppClassLoader@35a16869]

      [DEBUG] Configuring mojo 'com.oracle.weblogic:weblogic-maven-plugin:10.3.6.0:deploy' with basic configurator -->

      [DEBUG]   (f) action = deploy

      [DEBUG]   (f) adminmode = false

      [DEBUG]   (f) adminurl = t3://server:port

      [DEBUG]   (f) allversions = false

      [DEBUG]   (f) debug = false

      [DEBUG]   (f) enableSecurityValidation = false

      [DEBUG]   (f) external_stage = false

      [DEBUG]   (f) failonerror = true

      [DEBUG]   (f) isLibrary = false

      [DEBUG]   (f) name = MyService

      [DEBUG]   (f) noversion = false

      [DEBUG]   (f) password = 001MyUser

      [DEBUG]   (f) remote = false

      [DEBUG]   (f) retiretimeout = -1

      [DEBUG]   (f) rmiGracePeriod = -1

      [DEBUG]   (f) source =

      [DEBUG]   (f) targets =

      [DEBUG]   (f) timeout = -1

      [DEBUG]   (f) upload = true

      [DEBUG]   (f) usenonexclusivelock = true

      [DEBUG]   (f) user = 001MyUSer

      [DEBUG]   (f) verbose = true

      [DEBUG] -- end configuration --

        • 1. Re: Sporadic problem while deploying Webservice on Weblogic: Can't find bundle for base name org.apache.xerces.impl.msg.SAXMessages, locale de_DE
          4047d934-4e0d-45cb-807d-a2ae1c9cd7a0

          I see also in the debug output that shortly before deploying a jar-file is generated which has the infos about the locale:

           

          [DEBUG] Jar archiver implementation [org.codehaus.plexus.archiver.jar.JarArchiver]

          [INFO] Could not find manifest file: ../META-INF/MANIFEST.MF - Generating one

          [DEBUG] Excluding [asm**.jar, ant**.jar, dom4j**.jar, icu4j**.jar, jaxen**.jar, jdom**.jar, jetty**.jar,

               oro**.jar, servlet-api**.jar, tagsoup**.jar, xalan**.jar, xmlParserAPIs**.jar, xom**.jar] from the generated EAR.

          [DEBUG] Including [**] in the generated EAR.

          [INFO] Building jar: ../target/myfile.ear

          [DEBUG] adding directory META-INF/

          [DEBUG] adding entry META-INF/MANIFEST.MF

          [DEBUG] adding entry META-INF/application.xml

          [DEBUG] adding entry META-INF/weblogic-application.xml

          [DEBUG] adding entry jaxb2-basics-runtime-0.6.3.jar

          [DEBUG] adding entry xstream-1.4.3.jar

          [DEBUG] adding entry xmlpull-1.1.3.1.jar

          [DEBUG] adding entry xpp3_min-1.1.4c.jar

          [DEBUG] adding entry slf4j-api-1.7.2.jar

          [DEBUG] adding entry slf4j-log4j12-1.7.2.jar

          [DEBUG] adding entry joda-time-2.1.jar

          [DEBUG] adding entry commons-collections-3.2.1.jar

          [DEBUG] adding entry xercesImpl-2.11.0.jar

          [DEBUG] adding entry commons-lang3-3.3.jar

          [DEBUG] adding entry modelmapper-0.6.1.jar

          [DEBUG] adding entry xml-apis-1.4.01.jar

          [DEBUG] adding entry log4j-1.2.17.jar

          [DEBUG] adding entry headerinfo-1.2.jar

          [DEBUG] adding entry commons-beanutils-core-1.8.3.jar

          [DEBUG] adding entry commons-logging-1.1.1.jar

          [DEBUG] adding entry commons-dbutils-1.5.jar

          [DEBUG] adding entry commons-io-2.4.jar

          [DEBUG] adding directory META-INF/maven/

          [DEBUG] adding directory META-INF/maven/myservice

          [DEBUG] adding directory META-INF/maven/myservice/myservice-ear/

          [DEBUG] adding entry META-INF/maven/myservice/pom.xml

          [DEBUG] adding entry META-INF/maven/myservice/pom.properties

          [INFO]

           

          So I guess that this jar is maybe not fast enough generated and so still missing during deploying process. Is there a possibility (like maybe a flag) so that weblogic or maven have to wait, until the jar is finished before it try to deploy the service?