[jboss-user] [Installation, Configuration & Deployment] - Problems facing Installation of JBoss

raj.shanmug do-not-reply at jboss.com
Mon Sep 25 07:37:35 EDT 2006


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 at 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 at 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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973855#3973855

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973855



More information about the jboss-user mailing list