4 Replies Latest reply on May 31, 2013 11:15 AM by Alberto Persello

    Can JBoss and Weblogic work together?

    davide pasinato Newbie

      I am actually evaluating JBoss (so far, I am a weblogic user). To see how Jboss works I am trying to deploy a sample application that sign on my security framework.
      The sample application deployed on JBoss acts as a client that contacts an EJB deployed in a weblogic AS that is the server that checks the single sign on in my system. The EJB is called via T3, thus I included the wlclient classes into the default server lib folder.
      The sample application works fine in weblogic. Somehow it works in JBoss (I can do the sign on thing) but it generates the error I attached. The effects of this error are terrible. Even though the sample application works fine, after using it I cannot reload or redeploy any webapp deployed in my server: not only the sample webapp I am testing, but all the webapps deployed in my server(the webconsole for instance).

      When I try to reload a webapp, the application that I try to redeploy disappers and I get an "invalid context error". As far as I don't access to the sample webapp I can do the redeploy without any problem. After accessing the sample webapp this problem comes out.

      Are there known issues on using weblogic and jboss together? Are tehre known issues on including the wlclient classes in JBoss? Any idea on what the cause of this is, and how I can solve it? Has Anybody run into a similar problem?

      Thanks
      Davide

      This is the error I get:

      java.lang.SecurityException: MBeanTrustPermission(register) not implied by prote
      ction domain of mbean class: org.apache.commons.modeler.BaseModelMBean, pd: Prot
      ectionDomain (file:/var/opt/jboss/jcam/tmp/deploy/tmp32821commons-modeler.jar <
      no certificates>)
      org.jboss.mx.loading.UnifiedClassLoader3@135f44e{ url=file:/etc/opt/jboss/jcam/
      deploy/jbossweb-tomcat55.sar/ ,addedOrder=10}
      <no principals>
      java.security.Permissions@702f67 (
      (java.util.PropertyPermission java.version read)
      (java.util.PropertyPermission java.vm.name read)
      (java.util.PropertyPermission java.vm.vendor read)
      (java.util.PropertyPermission os.name read)
      (java.util.PropertyPermission java.vendor.url read)
      (java.util.PropertyPermission java.vm.specification.vendor read)
      (java.util.PropertyPermission os.version read)
      (java.util.PropertyPermission java.specification.vendor read)
      (java.util.PropertyPermission java.class.version read)
      (java.util.PropertyPermission java.specification.name read)
      (java.util.PropertyPermission file.separator read)
      (java.util.PropertyPermission os.arch read)
      (java.util.PropertyPermission java.vm.version read)
      (java.util.PropertyPermission java.vendor read)
      (java.util.PropertyPermission java.specification.version read)
      (java.util.PropertyPermission java.vm.specification.version read)
      (java.util.PropertyPermission java.vm.specification.name read)
      (java.util.PropertyPermission path.separator read)
      (java.util.PropertyPermission line.separator read)
      (java.io.FilePermission /var/opt/jboss/jcam/tmp/deploy/tmp32821commons-modeler.
      jar read)
      (java.io.FilePermission /etc/opt/jboss/jcam/deploy/jbossweb-tomcat55.sar read)
      (java.net.SocketPermission localhost:1024- listen,resolve)
      (java.net.SocketPermission localhost:1024- listen,resolve)
      (java.lang.RuntimePermission stopThread)
      )


      at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.jav
      a:1383)
      at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.jav
      a:361)
      at org.apache.commons.modeler.Registry.registerComponent(Registry.java:8
      71)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.init(
      Http11Protocol.java:709)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.start(MasterSlaveW
      orkerThread.java:131)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.newWorkerThread(PoolTcpEnd
      point.java:595)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.createWorkerThread(PoolTcp
      Endpoint.java:574)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.run(PoolTcpEndpoint.java:6
      31)
      at java.lang.Thread.run(Thread.java:534)
      2005-10-13 13:50:11,233 WARN [org.apache.coyote.http11.Http11Protocol] Error re
      gistering request