0 Replies Latest reply on Jul 7, 2006 10:21 AM by Markus Locher

    URGENT: JBoss does not create ejbs on linux

    Markus Locher Newbie

      Hello list,

      since I´m running out of time with this...pleas help out :)

      The Problem:
      --------------------------------------------------------
      An app-EAR works fine on WindowsXP. On Linux SLES9 it deploys correctly but doesn´t create an ejb on first db connect.
      It is all about the login mechanism. The first attempt of the application is to check whether the user request has a valid IP to connect to a database, and that IP-range is also defined in the database.

      The Environment:
      --------------------------------------------------------
      Server: SLES9 Linux AMD64 Dual Opteron, 6G RAM, SCSI RAID 5
      Java: SUN JDK 1.5.x for AMD64
      Database: IBM DB2 Exprex-C 8.2 64bit
      JBoss. 4.0.4.GA Standard "all" installation
      (all works fine with programs)

      What I did to solve it:
      --------------------------------------------------------
      I debuged down the way from the mentioned line numbers in the Err-msg. =>no new cognitions.


      Code-Example:
      --------------------------------------------------------
      protected TableData find(BeanData _data) throws XIfsException {
      _data.setStringAttribute("startrecordat",request.getParameter("startrecordat"));
      _data.setStringAttribute("datasource",this.getDatasource());
      try {
      if (m_explorer==null) {
      m_explorer = ((DataExplorerHome)de.xifs.helper.ReferenceHolder.getReference("DataExplorer")).create();
      }
      return m_explorer.find(_data);
      }
      catch(XIfsException e) {
      throw e;
      }
      catch(Exception e2) {
      throw new de.xifs.exceptions.XIfsException("failed_to_find_entities",e2.getMessage(),e2.getStackTrace(),"findall",8);
      }
      }


      First Error (with "isolation/call by value" ENABLED):
      --------------------------------------------------------
      "XIFS" ist the applications name and "Maintenance" is the servlet that handles HTTP requests (the hole app is based on HTTP-communication)

      10:27:27,128 INFO [[/xifs]] Maintenance: Anfrage von.....192.168.0.104@null
      10:27:27,165 ERROR [STDERR] de.xifs.exceptions.XIfsException: failed_to_find_entities
      10:27:27,165 ERROR [STDERR] at de.xifs.worker.Worker.find(Worker.java:173)
      10:27:27,165 ERROR [STDERR] at de.xifs.worker.UseraccessWorker.getIpRange(UseraccessWorker.java:82)
      10:27:27,165 ERROR [STDERR] at de.xifs.authorization.Authorization.getIpRange(Authorization.java:179)
      10:27:27,165 ERROR [STDERR] at de.xifs.authorization.Authorization.isInIpRange(Authorization.java:223)
      10:27:27,165 ERROR [STDERR] at de.xifs.servlets.SecureServlet.doGet(SecureServlet.java:211)
      10:27:27,165 ERROR [STDERR] at de.xifs.servlets.ControllerServlet.doGet(ControllerServlet.java:84)
      10:27:27,165 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      10:27:27,166 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      10:27:27,166 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      10:27:27,166 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      10:27:27,166 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      10:27:27,166 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      10:27:27,166 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      10:27:27,166 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      10:27:27,166 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      10:27:27,166 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      10:27:27,166 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      10:27:27,166 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      10:27:27,166 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      10:27:27,166 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      10:27:27,166 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      10:27:27,166 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      10:27:27,166 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      10:27:27,166 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      10:27:27,166 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      10:27:27,166 ERROR [STDERR] at java.lang.Thread.run(Thread.java:534)
      


      Second Error (with "isolation/call by value" DISABLED):
      --------------------------------------------------------
      11:19:14,634 INFO [[/xifs]] Maintenance: Anfrage von.....192.168.0.104@null
      11:19:14,634 ERROR [[Maintenance]] Servlet.service() for servlet Maintenance threw exception
      java.lang.LinkageError: loader constraints violated when linking de/xifs/beans/BeanData class
       at de.xifs.worker.Worker.find(Worker.java:167)
       at de.xifs.worker.UseraccessWorker.getIpRange(UseraccessWorker.java:82)
       at de.xifs.authorization.Authorization.getIpRange(Authorization.java:179)
       at de.xifs.authorization.Authorization.isInIpRange(Authorization.java:223)
       at de.xifs.servlets.SecureServlet.doGet(SecureServlet.java:211)
       at de.xifs.servlets.ControllerServlet.doGet(ControllerServlet.java:84)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
       at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
       at java.lang.Thread.run(Thread.java:534)
      11:19:17,975 INFO [[/xifs]] Maintenance: Anfrage von.....192.168.0.104@null
      


      I read across the forums but nobody covers this case.

      Tankx for any help

      Regards
      Markus