Wednesday, March 26, 2014

JBOSS 5.1 GA Windows Startup Error

Problem
Installed JBOSS 5.1 GA on Windows 7
Executing run.sh -b 0.0.0.0 reported the following error.

15:44:39,691 INFO  [ServerInfo] VM arguments: -Dprogram.name=run.bat -Xms128M -X
mx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dg
c.server.gcInterval=3600000 -Dorg.jboss.resolver.warning=true -Djava.endorsed.di
rs=C:\custom-programs\jboss-5.1.0.GA\lib\endorsed
15:44:39,712 INFO  [JMXKernel] Legacy JMX core initialized
15:44:40,608 ERROR [AbstractKernelController] Error installing to Instantiated:
name=AttachmentStore state=Described
java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.re
flect.Constructor expected=[java.net.URI] actual=[java.io.File]
        at org.jboss.reflect.plugins.introspection.ReflectionUtils.handleErrors(
ReflectionUtils.java:395)
        at org.jboss.reflect.plugins.introspection.ReflectionUtils.newInstance(R
eflectionUtils.java:153)
        at org.jboss.reflect.plugins.introspection.ReflectConstructorInfoImpl.ne
wInstance(ReflectConstructorInfoImpl.java:106)

Solution
Edit server\default\conf\bootstrap\profile.xml

Change from 
<!-- The attachment store -->
<bean name="AttachmentStore" class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore">
<constructor><parameter><inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor>

to
<!-- The attachment store -->
<bean name="AttachmentStore" class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore">
<constructor><parameter class="java.io.File"><inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor>



3 Comments:

At January 7, 2015 at 5:26 AM , Blogger Mohammed Azhar said...

TekSlate is the industry leader in delivering JBoss free tutorial with complete understanding of server administration with comprehensive learning.
For More Follow Below Link:
http://tekslate.com/tutorials/jboss/

 
At April 27, 2015 at 1:17 PM , Blogger Mamute said...

Had this issue on a Windows Server 2012 running JDK 1.8.0_31 and the solution worked like a charm! Thanks!

 
At June 8, 2016 at 10:56 PM , Blogger Nagendra Reddy said...

I also experienced same problem you gave me great solution thank for your help in my JBOSS Application Server training

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home

‹Older