2014年7月13日日曜日

eclipseでjboss動かした時にいろいろエラー出たやつの対応

今度はjboss使ってるアプリを見ることになったので、eclipseで動かせるようにしてみたところ
いろいろエラー出てはまったのでそのときのメモ。

環境
java1.8
eclipse4.4 luna
jboss5.1.0.GA (homebrewで入れたやつ)

まず最初に出たエラーがこれ。
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
14:00:17,868 INFO  [ServerImpl] Starting JBoss (Microcontainer)...
14:00:17,873 INFO  [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)
14:00:17,873 INFO  [ServerImpl] Bootstrap URL: null
14:00:17,873 INFO  [ServerImpl] Home Dir: /usr/local/Cellar/jboss-as5/5.1.0GA/libexec
14:00:17,873 INFO  [ServerImpl] Home URL: file:/usr/local/Cellar/jboss-as5/5.1.0GA/libexec/
14:00:17,873 INFO  [ServerImpl] Library URL: file:/usr/local/Cellar/jboss-as5/5.1.0GA/libexec/lib/
14:00:17,875 INFO  [ServerImpl] Patch URL: null
14:00:17,875 INFO  [ServerImpl] Common Base URL: file:/usr/local/Cellar/jboss-as5/5.1.0GA/libexec/common/
14:00:17,875 INFO  [ServerImpl] Common Library URL: file:/usr/local/Cellar/jboss-as5/5.1.0GA/libexec/common/lib/
14:00:17,875 INFO  [ServerImpl] Server Name: default
14:00:17,875 INFO  [ServerImpl] Server Base Dir: /usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server
14:00:17,876 INFO  [ServerImpl] Server Base URL: file:/usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/
14:00:17,876 INFO  [ServerImpl] Server Config URL: file:/usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default/conf/
14:00:17,876 INFO  [ServerImpl] Server Home Dir: /usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default
14:00:17,876 INFO  [ServerImpl] Server Home URL: file:/usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default/
14:00:17,876 INFO  [ServerImpl] Server Data Dir: /usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default/data
14:00:17,876 INFO  [ServerImpl] Server Library URL: file:/usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default/lib/
14:00:17,876 INFO  [ServerImpl] Server Log Dir: /usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default/log
14:00:17,876 INFO  [ServerImpl] Server Native Dir: /usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default/tmp/native
14:00:17,877 INFO  [ServerImpl] Server Temp Dir: /usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default/tmp
14:00:17,877 INFO  [ServerImpl] Server Temp Deploy Dir: /usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default/tmp/deploy
14:00:18,518 INFO  [ServerImpl] Starting Microcontainer, bootstrapURL=file:/usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default/conf/bootstrap.xml
14:00:18,982 INFO  [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
14:00:18,985 INFO  [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
14:00:19,166 INFO  [CopyMechanism] VFS temp dir: /usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default/tmp
14:00:19,166 INFO  [ZipEntryContext] VFS force nested jars copy-mode is enabled.
14:00:19,842 INFO  [ServerInfo] Java version: 1.8.0_05,Oracle Corporation
14:00:19,842 INFO  [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
14:00:19,842 INFO  [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 25.5-b02,Oracle Corporation
14:00:19,842 INFO  [ServerInfo] OS-System: Mac OS X 10.9.4,x86_64
14:00:19,846 INFO  [ServerInfo] VM arguments: -Dprogram.name=JBossTools: JBoss AS 5.1 -Xms256m -Xmx768m -XX:MaxPermSize=256m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.endorsed.dirs=/usr/local/Cellar/jboss-as5/5.1.0GA/libexec/lib/endorsed -Dfile.encoding=UTF-8 
14:00:19,878 INFO  [JMXKernel] Legacy JMX core initialized
14:00:20,696 ERROR [AbstractKernelController] Error installing to Instantiated: name=AttachmentStore state=Described
java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.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(ReflectionUtils.java:153)
 at org.jboss.reflect.plugins.introspection.ReflectConstructorInfoImpl.newInstance(ReflectConstructorInfoImpl.java:106)
 at org.jboss.joinpoint.plugins.BasicConstructorJoinPoint.dispatch(BasicConstructorJoinPoint.java:80)
 at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.createTarget(AOPConstructorJoinpoint.java:282)
 at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.dispatch(AOPConstructorJoinpoint.java:103)
 at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
 at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
 at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
 at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
 at org.jboss.kernel.plugins.dependency.InstantiateAction.installActionInternal(InstantiateAction.java:66)
 at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
 at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
 at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
 at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
 at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
 at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
 at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:319)
 at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:297)
 at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)
 at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicKernelDeployer.java:76)
 at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:91)
 at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:161)
 at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:138)
 at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
 at org.jboss.Main.boot(Main.java:221)
 at org.jboss.Main$1.run(Main.java:556)
 at java.lang.Thread.run(Thread.java:745)
Failed to boot JBoss:
java.lang.IllegalStateException: Incompletely deployed:
 
DEPLOYMENTS IN ERROR:
  Deployment "AttachmentStore" is in error due to: java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[java.net.URI] actual=[java.io.File]
 
DEPLOYMENTS MISSING DEPENDENCIES:
  Deployment "ProfileServiceDeployer" is missing the following dependencies:
    Dependency "AttachmentStore" (should be in state "Installed", but is actually in state "**ERROR**")
  Deployment "ProfileService" is missing the following dependencies:
    Dependency "jboss.kernel:service=KernelController" (should be in state "Installed", but is actually in state "**ERROR**")
    Dependency "ProfileServiceDeployer" (should be in state "Installed", but is actually in state "Instantiated")
  Deployment "ProfileServiceBootstrap" is missing the following dependencies:
    Dependency "ProfileService" (should be in state "Installed", but is actually in state "Instantiated")
    Dependency "jboss.kernel:service=Kernel" (should be in state "Installed", but is actually in state "**ERROR**")
  Deployment "ProfileServicePersistenceDeployer" is missing the following dependencies:
    Dependency "AttachmentStore" (should be in state "Installed", but is actually in state "**ERROR**")
 
 at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:278)
 at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174)
 at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:142)
 at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
 at org.jboss.Main.boot(Main.java:221)
 at org.jboss.Main$1.run(Main.java:556)
 at java.lang.Thread.run(Thread.java:745)
14:00:20,983 INFO  [ServerImpl] Runtime shutdown hook called, forceHalt: true
14:00:20,986 INFO  [ServerImpl] Shutdown complete
Shutdown complete
Halting VM

このファイルに
/usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default/conf/bootstrap/profile.xml
以下の部分があるので、
そこのパラメーターに「 class="java.io.File"」を追加する必要がある。
最終こんな感じになります。


次に出てきたエラーがこれ。
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
15:29:01,852 INFO  [ServerImpl] Starting JBoss (Microcontainer)...
15:29:01,853 INFO  [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)
15:29:01,853 INFO  [ServerImpl] Bootstrap URL: null
15:29:01,853 INFO  [ServerImpl] Home Dir: /usr/local/Cellar/jboss-as5/5.1.0GA/libexec
15:29:01,854 INFO  [ServerImpl] Home URL: file:/usr/local/Cellar/jboss-as5/5.1.0GA/libexec/
15:29:01,854 INFO  [ServerImpl] Library URL: file:/usr/local/Cellar/jboss-as5/5.1.0GA/libexec/lib/
15:29:01,854 INFO  [ServerImpl] Patch URL: null
15:29:01,854 INFO  [ServerImpl] Common Base URL: file:/usr/local/Cellar/jboss-as5/5.1.0GA/libexec/common/
15:29:01,855 INFO  [ServerImpl] Common Library URL: file:/usr/local/Cellar/jboss-as5/5.1.0GA/libexec/common/lib/
15:29:01,855 INFO  [ServerImpl] Server Name: default
15:29:01,855 INFO  [ServerImpl] Server Base Dir: /usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server
15:29:01,855 INFO  [ServerImpl] Server Base URL: file:/usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/
15:29:01,855 INFO  [ServerImpl] Server Config URL: file:/usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default/conf/
15:29:01,855 INFO  [ServerImpl] Server Home Dir: /usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default
15:29:01,855 INFO  [ServerImpl] Server Home URL: file:/usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default/
15:29:01,855 INFO  [ServerImpl] Server Data Dir: /usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default/data
15:29:01,856 INFO  [ServerImpl] Server Library URL: file:/usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default/lib/
15:29:01,856 INFO  [ServerImpl] Server Log Dir: /usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default/log
15:29:01,856 INFO  [ServerImpl] Server Native Dir: /usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default/tmp/native
15:29:01,856 INFO  [ServerImpl] Server Temp Dir: /usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default/tmp
15:29:01,856 INFO  [ServerImpl] Server Temp Deploy Dir: /usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default/tmp/deploy
15:29:02,258 INFO  [ServerImpl] Starting Microcontainer, bootstrapURL=file:/usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default/conf/bootstrap.xml
15:29:02,572 INFO  [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
15:29:02,574 INFO  [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
15:29:02,712 INFO  [CopyMechanism] VFS temp dir: /usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default/tmp
15:29:02,712 INFO  [ZipEntryContext] VFS force nested jars copy-mode is enabled.
15:29:03,285 INFO  [ServerInfo] Java version: 1.8.0_05,Oracle Corporation
15:29:03,286 INFO  [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
15:29:03,286 INFO  [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 25.5-b02,Oracle Corporation
15:29:03,286 INFO  [ServerInfo] OS-System: Mac OS X 10.9.4,x86_64
15:29:03,287 INFO  [ServerInfo] VM arguments: -Dprogram.name=JBossTools: JBoss AS 5.1 -Xms256m -Xmx768m -XX:MaxPermSize=256m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.endorsed.dirs=/usr/local/Cellar/jboss-as5/5.1.0GA/libexec/lib/endorsed -Dfile.encoding=UTF-8 
15:29:03,316 INFO  [JMXKernel] Legacy JMX core initialized
15:29:04,187 INFO  [ProfileServiceBootstrap] Loading profile: ProfileKey@1323780[domain=default, server=default, name=default]
15:29:04,564 ERROR [AbstractKernelController] Error installing to Parse: name=vfsfile:/usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default/conf/jboss-service.xml state=Not Installed mode=Manual requiredState=Parse
org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default/conf/jboss-service.xml
 at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
 at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:362)
 at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:322)
 at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:294)
 at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:234)
 at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
 at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
 at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
 at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
 at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
 at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
 at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
 at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
 at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
 at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
 at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
 at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
 at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
 at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
 at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
 at org.jboss.Main.boot(Main.java:221)
 at org.jboss.Main$1.run(Main.java:556)
 at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.FileNotFoundException: lib doesn't exist. (rootURI: file:/usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default/lib, file: /usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default/lib)
 at org.jboss.virtual.plugins.context.file.FileSystemContext.getRoot(FileSystemContext.java:220)
 at org.jboss.virtual.plugins.registry.DefaultVFSRegistry.getFile(DefaultVFSRegistry.java:106)
 at org.jboss.virtual.plugins.registry.DefaultVFSRegistry.getFile(DefaultVFSRegistry.java:140)
 at org.jboss.virtual.VFS.getRoot(VFS.java:264)
 at org.jboss.system.deployers.SARDeployer.processXMLClasspath(SARDeployer.java:140)
 at org.jboss.system.deployers.SARDeployer.parse(SARDeployer.java:89)
 at org.jboss.system.deployers.SARDeployer.parse(SARDeployer.java:58)
 at org.jboss.deployers.vfs.spi.deployer.JAXPDeployer.parse(JAXPDeployer.java:190)
 at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:256)
 at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:239)
 at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:355)
 ... 33 more

これは内容の通りで、ディレクトリがないので作ればよいみたい。
$ mkdir -p /usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default/lib

次のエラーがこれ。
2014-07-04 09:55:19,357 INFO  [org.hibernate.connection.ConnectionProviderFactory] (HDScanner) Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConne
ctionProvider
2014-07-04 09:55:19,362 INFO  [org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider] (HDScanner) Using provided datasource
2014-07-04 09:55:19,371 WARN  [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (HDScanner) Throwable while attempting to get a new connection: null
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Apparently wrong driver class specified for U
RL: class: com.mysql.jdbc.Driver, url: jdbc:mysql://localhost:3306/test)
        at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:225)
        at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:195)
        at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:633)
        at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:267)
        at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:622)
        at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:404)
        at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:381)
        at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:496)
        at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)
        at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)
        at org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider.getConnection(InjectedDataSourceConnectionProvider.java:46)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:111)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2101)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1325)
        at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
        at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
        at jp.co.nri.uniid.seam.persistence.UniidHibernatePersistence.createContainerEntityManagerFactory(UniidHibernatePersistence.java:48)
        at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:301)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
        at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
        at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
        at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
        at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
        at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
        at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
        at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
        at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
        at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
        at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
        at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
        at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
        at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
        at org.jboss.system.ServiceController.start(ServiceController.java:460)
        at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
        at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
        at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
        at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
        at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
        at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
        at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
        at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
        at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
        at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
        at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
        at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:362)
        at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.jboss.resource.JBossResourceException: Apparently wrong driver class specified for URL: class: com.mysql.jdbc.Driver, url: jdbc:mysql://localhost:3306/test
        at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getDriver(LocalManagedConnectionFactory.java:492)
        at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:206)
        ... 72 more

JDBCドライバをWEB-INF/libの下に置いていたけれどもそれじゃ駄目なようで、
以下に置いてあげないといけないようです。
/usr/local/Cellar/jboss-as5/5.1.0GA/libexec/server/default/lib/

ここまでやってとりあえず動かせるようになりました。

参考URL
http://stackoverflow.com/questions/2489106/error-starting-jboss-server
http://stackoverflow.com/questions/15960130/jboss-5-1-ga-deployment-error-illegalargumentexception
https://community.jboss.org/thread/149389?tstart=0
https://community.jboss.org/thread/141824

0 件のコメント:

コメントを投稿