5 Replies Latest reply on Sep 27, 2006 7:14 AM by hubertg

    Problems facing Installation of JBoss

    raj.shanmug

      Could you help further in going ahead with this installation. I have followed the following steps.

      From Binary

      1. I have downloaded the jboss AS 4.0.2.zip and extracted the same in my E:/Server and renamed the same folder as E:/Server/jboss
      2. Then I downloaded the jboss portal 2.4.zip and also extracted the same in E:/ seperately.
      3. Then I set the environmental variables as follows;-
      PATH: C:\Java\jdk1.5.0_08\lib; E:\Server\jboss\lib;
      CLASSPATH: C:\Java\jdk1.5.0_08\bin; E:Server\jboss\bin;
      JAVA_HOME: C:\Java\jdk1.5.0_08
      JBOSS_HOME: E:\Server\jboss
      4. Then I created a SQL Server Data base instance in another system and granted rights for me. The db details are host:pegsrv; username: peguser ; password: password.
      5. Then I copied the jdbc driver files pertaining to Sql server i.e, msbase.jar, msutil.jar, mssqlserver.jar into the E:\server\jboss\default\lib directory of the AS.
      6. Then I configure the portal-sqlsdrver-ds.xml file as follows
      <?xml version="1.0" encoding="UTF-8"?>

      <local-tx-datasource>
      <jndi-name>PortalDS</jndi-name>
      <connection-url>jdbc:microsoft:sqlserver://pegasrv:1433;tds=8.0;lastupdatecount=true</connection-url>
      <driver-class>com.microsoft.jdbc.sqlserver.SQLServerDriver</driver-class>
      <user-name>peguser</user-name>
      password
      </local-tx-datasource>


      7. Then I copied this file along with the portal.sar file into the E:\server\jboss\default\deploy directory of the AS.
      8. Then I started the run.bat file in the E:\server\jboss\bin
      9. The server got started, now I pointed the browser to http://localhost:8080 and saw the server console
      10. Now I pointed the same to http://localhost:8080/portal and i got the http -500 error.



      From Bundled version jboss 2.4 portal +AS


      1. First I downloaded the bundle and unzipped the same to E:/Server/. Then renamed the same E:/Server/jboss.
      2. Then I set the environmental variables as follows;-
      PATH: C:\Java\jdk1.5.0_08\lib; E:\Server\jboss\lib;
      CLASSPATH: C:\Java\jdk1.5.0_08\bin; E:Server\jboss\bin;
      JAVA_HOME: C:\Java\jdk1.5.0_08
      JBOSS_HOME: E:\Server\jboss
      3. Then I created a SQL Server Data base instance in another system and granted rights for me. The db details are host:pegsrv; username: peguser ; password: password.
      4. Then I copied the jdbc driver files pertaining to Sql server i.e, msbase.jar, msutil.jar, mssqlserver.jar into the E:\server\jboss\default\lib directory of the AS.
      5. Then I configure the portal-sqlsdrver-ds.xml file as follows
      <?xml version="1.0" encoding="UTF-8"?>

      <local-tx-datasource>
      <jndi-name>PortalDS</jndi-name>
      <connection-url>
      jdbc:microsoft:sqlserver://pegasrv:1433;tds=8.0;lastupdatecoun
      t=true </connection-url>
      <driver-class>com.microsoft.jdbc.sqlserver.SQLServerDriver
      </driver-class>
      <user-name>peguser</user-name>
      password
      </local-tx-datasource>
      </datasources

      Then I configure the following xml files in the default/conf directoy of the server. The standardjaws.xml file is configured with Hypersonic database by default. So I configured JBoss server with MS SQL Server database modify /server/default/conf/standardjaws.xml configuration file. Set
      and <type-mapping> elements. java:/MSSQLDS</datasource
      <type-mapping>MS SQLSERVER2000</type-mapping>

      The standardjbosscmp-jdbc.xml configuration file is configured with Hypersonic database.
      So i configured JBoss server with MS SQL Server modify /server/default/conf/standardjbosscmp-jdbc.xml configuration file. Set
      and <datasource-mapping> elements. <jbosscmp-jdbc> java:/MSSQLDS <datasource-mapping>MS SQLSERVER2000</datasource-mapping>

      </jbosscmp-jdbc>

      Then I modified the login-config.xml configuration file with MS SQL Server
      database settings. Added the following

      <application-policy/> element to login-config.xml. <application-policy name = "MSSQLDbRealm"> <login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule" flag = "required"> <module-option name = "principal">sa</module-option> <module-option name = "userName">sa</module-option> <module-option name = "password"></module-option> <module-option name ="managedConnectionFactoryName"> jboss.jca:service=LocalTxCM,name=MSSQLDS
      </module-option> </login-module> </application-policy>

      By modifying the mssql-ds.xml, standardjaws.xml, standardjbosscmp-jdbc.xml and login-config.xml the JBoss 4.0 server is configured to be used with a MS SQL Server database.


      With the embedded hypersonic database it too worked fine, but when I configured my dbase for the bundled version, I am getting the below error

      HTTP Status 500 -
      ________________________________________
      type Exception report
      message
      description The server encountered an internal error () that prevented it from fulfilling this request.
      exception
      javax.servlet.ServletException: Cannot invoke with a null interceptor[]
      org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:306)
      org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:172)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      root cause
      org.jboss.portal.common.invocation.InvocationException: Cannot invoke with a null interceptor[]
      org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
      org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:294)
      org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:172)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      .

      Please could anyone suggest me how to retrieve this issue. For your convenience I am attaching the some of the server logs also with this post.

      Logs:

      oyerNestedJSE.java:102)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
      at org.jboss.deployment.MainDeployer.addDeployer(MainDeployer.java:368)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
      or.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
      BeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy98.addDeployer(Unknown Source)
      at org.jboss.deployment.SubDeployerSupport.startService(SubDeployerSuppo
      rt.java:124)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
      upport.java:289)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
      eanSupport.java:245)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
      ler.java:978)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at org.jboss.system.ServiceController.start(ServiceController.java:435)
      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
      or.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
      BeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy8.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
      tScanner.java:421)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
      canner.java:634)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      doScan(AbstractDeploymentScanner.java:263)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
      bstractDeploymentScanner.java:336)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
      upport.java:289)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
      eanSupport.java:245)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
      ler.java:978)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
      or.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
      BeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      at org.jboss.Main.boot(Main.java:200)
      at org.jboss.Main$1.run(Main.java:464)
      at java.lang.Thread.run(Thread.java:595)
      )
      state: FAILED
      watch: file:/E:/Server/jboss/server/default/deploy/jboss-portal.sar/portal-wsr
      p.sar/portal-wsrp.jse
      altDD: null
      lastDeployed: 1159183996015
      lastModified: 1159183982953
      mbeans:

      --- MBeans waiting for other MBeans ---
      ObjectName: jboss.jdbc:service=metadata
      State: FAILED
      Reason: org.jboss.deployment.DeploymentException: Invalid XML: file=file:/E:/S
      erver/jboss/server/default/conf/standardjbosscmp-jdbc.xml@51:17; - nested throwa
      ble: (org.xml.sax.SAXParseException: The string "--" is not permitted within com
      ments.)
      Depends On Me:
      jboss.jdbc:service=metadata,datasource=DefaultDS

      ObjectName: portal:service=CMS
      State: FAILED
      Reason: javax.jcr.RepositoryException: failed to create folder for repository
      meta data: failed to create folder entry: /: failed to create folder entry: /
      I Depend On:
      jboss.jca:service=DataSourceBinding,name=PortalDS
      portal:service=JAASLoginModule
      portal:service=Hibernate,type=CMS
      Depends On Me:
      portal:commandFactory=CMSObject

      ObjectName: jboss:service=KeyGeneratorFactory,type=HiLo
      State: FAILED
      Reason: java.lang.SecurityException: Invalid authentication attempt, principal
      =null
      I Depend On:
      jboss:service=TransactionManager
      jboss.jca:service=DataSourceBinding,name=DefaultDS

      ObjectName: jboss.mq:service=StateManager
      State: FAILED
      Reason: org.jboss.mq.SpyJMSException: Error creating connection to the databas
      e.; - nested throwable: (java.lang.SecurityException: Invalid authentication att
      empt, principal=null)
      I Depend On:
      jboss.jca:service=DataSourceBinding,name=DefaultDS
      Depends On Me:
      jboss.mq:service=DestinationManager

      ObjectName: jboss.mq:service=PersistenceManager
      State: FAILED
      Reason: java.lang.SecurityException: Invalid authentication attempt, principal
      =null
      I Depend On:
      jboss.jca:service=DataSourceBinding,name=DefaultDS
      Depends On Me:
      jboss.mq:service=DestinationManager

      ObjectName: jboss.jdbc:service=metadata,datasource=DefaultDS
      State: CONFIGURED
      I Depend On:
      jboss.jdbc:service=metadata

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: portal:service=CMS
      State: FAILED
      Reason: javax.jcr.RepositoryException: failed to create folder for repository
      meta data: failed to create folder entry: /: failed to create folder entry: /
      I Depend On:
      jboss.jca:service=DataSourceBinding,name=PortalDS
      portal:service=JAASLoginModule
      portal:service=Hibernate,type=CMS
      Depends On Me:
      portal:commandFactory=CMSObject

      ObjectName: jboss.jdbc:service=metadata
      State: FAILED
      Reason: org.jboss.deployment.DeploymentException: Invalid XML: file=file:/E:/S
      erver/jboss/server/default/conf/standardjbosscmp-jdbc.xml@51:17; - nested throwa
      ble: (org.xml.sax.SAXParseException: The string "--" is not permitted within com
      ments.)
      Depends On Me:
      jboss.jdbc:service=metadata,datasource=DefaultDS

      ObjectName: jboss.mq:service=StateManager
      State: FAILED
      Reason: org.jboss.mq.SpyJMSException: Error creating connection to the databas
      e.; - nested throwable: (java.lang.SecurityException: Invalid authentication att
      empt, principal=null)
      I Depend On:
      jboss.jca:service=DataSourceBinding,name=DefaultDS
      Depends On Me:
      jboss.mq:service=DestinationManager

      ObjectName: jboss:service=KeyGeneratorFactory,type=HiLo
      State: FAILED
      Reason: java.lang.SecurityException: Invalid authentication attempt, principal
      =null
      I Depend On:
      jboss:service=TransactionManager
      jboss.jca:service=DataSourceBinding,name=DefaultDS

      ObjectName: jboss.mq:service=PersistenceManager
      State: FAILED
      Reason: java.lang.SecurityException: Invalid authentication attempt, principal
      =null
      I Depend On:
      jboss.jca:service=DataSourceBinding,name=DefaultDS
      Depends On Me:
      jboss.mq:service=DestinationManager


      at org.jboss.deployment.MainDeployer.checkIncompleteDeployments(MainDepl
      oyer.java:1367)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:774)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
      or.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
      BeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      at org.jboss.Main.boot(Main.java:200)
      at org.jboss.Main$1.run(Main.java:464)
      at java.lang.Thread.run(Thread.java:595)
      19:35:06,390 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0
      -8080
      19:35:06,640 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
      19:35:06,656 INFO [JkMain] Jk running ID=0 time=0/47 config=null
      19:35:06,671 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBos
      s_4_0_4_GA date=200605151000)] Started in 2m:11s:578ms



      Appreciate if any one replies for this post ASAP.
      Thanks
      ---Raj

        • 1. Re: Problems facing Installation of JBoss
          peterj

          I this a typo:

          I have downloaded the jboss AS 4.0.2.zip


          Didn't you mean 4.0.4.GA?? You should be using 4.0.4.GA.

          Did you see this text among the errors:

          Reason: org.jboss.deployment.DeploymentException: Invalid XML: file=file:/E:/S erver/jboss/server/default/conf/standardjbosscmp-jdbc.xml@51:17; - nested throwa
          ble: (org.xml.sax.SAXParseException: The string "--" is not permitted within com
          ments.)


          Fix your standardjbosscmp-jdbc.xml file. (I checked my JBoss install, both 4.0.2 and 4.0.4.GA, and there were no comments around line 51 in that file. Did you make changes to the file?)

          • 2. Re: Problems facing Installation of JBoss
            raj.shanmug

            No Peter i am using 4.0.2 final version along with jboss portal 2.4 final version. Also i have downloaded the bundled version of jboss 2.4 +AS. Now answer my queries only for the bundled version. i have rectified the error in standardjbosscmp-jdbc.xml. But still i am getting the error 401 i.e This requires Http authenication error while accessing the portal. i think Mbeans are the main problem for this. Please find attached my logs.

            --- MBeans waiting for other MBeans ---
            ObjectName: portal:service=CMS
            State: FAILED
            Reason: javax.jcr.RepositoryException: failed to create folder for repository
            meta data: failed to create folder entry: /: failed to create folder entry: /
            I Depend On:
            jboss.jca:service=DataSourceBinding,name=PortalDS
            portal:service=JAASLoginModule
            portal:service=Hibernate,type=CMS
            Depends On Me:
            portal:commandFactory=CMSObject

            ObjectName: jboss:service=KeyGeneratorFactory,type=HiLo
            State: FAILED
            Reason: java.lang.SecurityException: Invalid authentication attempt, principal
            =null
            I Depend On:
            jboss:service=TransactionManager
            jboss.jca:service=DataSourceBinding,name=DefaultDS

            ObjectName: jboss.mq:service=StateManager
            State: FAILED
            Reason: org.jboss.mq.SpyJMSException: Error creating connection to the databas
            e.; - nested throwable: (java.lang.SecurityException: Invalid authentication att
            empt, principal=null)
            I Depend On:
            jboss.jca:service=DataSourceBinding,name=DefaultDS
            Depends On Me:
            jboss.mq:service=DestinationManager

            ObjectName: jboss.mq:service=PersistenceManager
            State: FAILED
            Reason: java.lang.SecurityException: Invalid authentication attempt, principal
            =null
            I Depend On:
            jboss.jca:service=DataSourceBinding,name=DefaultDS
            Depends On Me:
            jboss.mq:service=DestinationManager

            --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
            ObjectName: jboss:service=KeyGeneratorFactory,type=HiLo
            State: FAILED
            Reason: java.lang.SecurityException: Invalid authentication attempt, principal
            =null
            I Depend On:
            jboss:service=TransactionManager
            jboss.jca:service=DataSourceBinding,name=DefaultDS

            ObjectName: portal:service=CMS
            State: FAILED
            Reason: javax.jcr.RepositoryException: failed to create folder for repository
            meta data: failed to create folder entry: /: failed to create folder entry: /
            I Depend On:
            jboss.jca:service=DataSourceBinding,name=PortalDS
            portal:service=JAASLoginModule
            portal:service=Hibernate,type=CMS
            Depends On Me:
            portal:commandFactory=CMSObject

            ObjectName: jboss.mq:service=StateManager
            State: FAILED
            Reason: org.jboss.mq.SpyJMSException: Error creating connection to the databas
            e.; - nested throwable: (java.lang.SecurityException: Invalid authentication att
            empt, principal=null)
            I Depend On:
            jboss.jca:service=DataSourceBinding,name=DefaultDS
            Depends On Me:
            jboss.mq:service=DestinationManager

            ObjectName: jboss.mq:service=PersistenceManager
            State: FAILED
            Reason: java.lang.SecurityException: Invalid authentication attempt, principal
            =null
            I Depend On:
            jboss.jca:service=DataSourceBinding,name=DefaultDS
            Depends On Me:
            jboss.mq:service=DestinationManager


            10:00:02,734 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0
            -8080
            10:00:03,640 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
            10:00:03,671 INFO [JkMain] Jk running ID=0 time=0/734 config=null
            10:00:03,750 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBos
            s_4_0_4_GA date=200605151000)] Started in 48s:953ms


            ---Raj

            • 3. Re: Problems facing Installation of JBoss
              peterj

              I have run Portal 2.4 with AS 4.0.4, but not with AS 4.0.2. So I don't know if that combination works or is even supported.

              But based on the messages, it would appear that your data source configuration file is incorrect, possibly the user id or password for the database is incorrect.

              And you are using SQL Server. 2000 or 2005? Not that it really matters. I have not used 2005 and 2000 has been dormant and disabled on my PC for years (I use both MySQL and PostgreSQL with Portal).

              • 4. Re: Problems facing Installation of JBoss
                hubertg

                h!

                I'm using
                JBoss Portal + JBoss AS 2.4 Production (2006-08-19)

                I think I'm having kind of the same problem:

                whenever I start Jboss and requests a portal page with http://localhost:8080/portal the following exception is thrown:

                08:53:41,789 ERROR [PortalServlet] Invocation exception
                org.jboss.portal.common.invocation.InvocationException: Cannot invoke with a null interceptor[]

                at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
                at org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:294)
                at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:172)
                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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
                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:595)
                08:53:41,791 ERROR [[PortalServletWithPathMapping]] Servlet.service() for servlet PortalServletWithPathMapping threw exception
                org.jboss.portal.common.invocation.InvocationException: Cannot invoke with a null interceptor[]
                at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
                at org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:294)
                at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:172)
                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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
                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:595)

                jboss restart doesn't help, but when i recopy the mysql-ds.xml to the jboss deploy dir suddenly the portal is starting, and the previous error doesn't occur again.

                the portalDS which is configured in the mysql-ds.xml is in the JNDI tree both before and after redeploying of the mysql-ds.xml. the configuration of the datasource is ok, otherwise it wouldnt function after redeploying i think ...

                it's not that terrible, but a bit unconvenient ... I would say it's a bug.

                • 5. Re: Problems facing Installation of JBoss
                  hubertg

                  ok, I solved the problem for me:

                  the cause for the exception was simply that the mysql jdbc driver was not registered at the time the *-ds.xml files were intialized.

                  the solution was to copy the mysql-connector-*.jar to /jboss/server/default/lib

                  so the mysql driver is available from the beginning, and the datasources are initialized correctly.

                  hope that this is also a useful hint for the original poster.

                  /r hubert