File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes ExceptionInInitializerError while running servlet in JBoss 5.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "ExceptionInInitializerError while running servlet in JBoss 5.0" Watch "ExceptionInInitializerError while running servlet in JBoss 5.0" New topic
Author

ExceptionInInitializerError while running servlet in JBoss 5.0

Arka Sharma
Ranch Hand

Joined: Jun 15, 2011
Posts: 103
Hi all,

I'm using JBoss 5.0 with Eclipse Helios.I have added a server and written a simple servlet.But when I run this servlet on server I get the following

java.lang.ExceptionInInitializerError: java.net.MalformedURLException: unknown protocol: c
at com.arjuna.ats.arjuna.common.arjPropertyManager.<clinit>(arjPropertyManager.java:70)
at com.arjuna.ats.jbossatx.jta.TransactionManagerService.<clinit>(TransactionManagerService.java:107)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.jboss.reflect.plugins.introspection.ReflectionUtils.newInstance(ReflectionUtils.java:149)
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:276)
at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.dispatch(AOPConstructorJoinpoint.java:97)
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:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
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.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
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:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
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:698)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:547)
at java.lang.Thread.run(Unknown Source)
21:18:18,293 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "CachedConnectionManager" is missing the following dependencies:
Dependency "TransactionManager" (should be in state "Configured", but is actually in state "**ERROR**")
Deployment "DefaultUserTransactionprovider" is missing the following dependencies:
Dependency "<UNKNOWN DefaultUserTransactionprovider>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'TransactionManager' **")
Deployment "RealTransactionManager" is missing the following dependencies:
Dependency "TransactionManager" (should be in state "Instantiated", but is actually in state "**ERROR**")
Deployment "UnifiedInvoker" is missing the following dependencies:
Dependency "TransactionManager" (should be in state "Create", but is actually in state "**ERROR**")
Deployment "WebServer" is missing the following dependencies:
Dependency "jboss:service=TransactionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Dependency "jboss.jca:service=CachedConnectionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:service=CachedConnectionManager' **")
Deployment "WorkManager" is missing the following dependencies:
Dependency "TransactionManager" (should be in state "Configured", but is actually in state "**ERROR**")
Deployment "jboss.admin:service=PluginManager" is missing the following dependencies:
Dependency "jboss.jmx:name=Invoker,protocol=jrmp,service=proxyFactory,type=adaptor" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.ejb:persistencePolicy=database,service=EJBTimerService" is missing the following dependencies:
Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.ejb:service=EJBTimerService" is missing the following dependencies:
Dependency "jboss:service=TransactionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Dependency "jboss.ejb:persistencePolicy=database,service=EJBTimerService" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.jca:name='jboss-local-jdbc.rar',service=RARDeployment" is missing the following dependencies:
Dependency "jboss:service=TransactionManager" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Dependency "jboss.jca:service=WorkManager" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss.jca:service=WorkManager' **")
Deployment "jboss.jca:name='jboss-xa-jdbc.rar',service=RARDeployment" is missing the following dependencies:
Dependency "jboss.jca:service=WorkManager" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss.jca:service=WorkManager' **")
Dependency "jboss:service=TransactionManager" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Deployment "jboss.jca:name='jms-ra.rar',service=RARDeployment" is missing the following dependencies:
Dependency "jboss:service=TransactionManager" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Dependency "jboss.jca:service=WorkManager" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss.jca:service=WorkManager' **")
Deployment "jboss.jca:name='mail-ra.rar',service=RARDeployment" is missing the following dependencies:
Dependency "jboss.jca:service=WorkManager" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss.jca:service=WorkManager' **")
Dependency "jboss:service=TransactionManager" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Deployment "jboss.jca:name='quartz-ra.rar',service=RARDeployment" is missing the following dependencies:
Dependency "jboss.jca:service=WorkManager" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss.jca:service=WorkManager' **")
Dependency "jboss:service=TransactionManager" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Deployment "jboss.jca:name=DefaultDS,service=DataSourceBinding" is missing the following dependencies:
Dependency "jboss.jca:name=DefaultDS,service=LocalTxCM" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.jca:name=DefaultDS,service=LocalTxCM" is missing the following dependencies:
Dependency "jboss.jca:service=CachedConnectionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:service=CachedConnectionManager' **")
Dependency "jboss.jca:name=DefaultDS,service=ManagedConnectionPool" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss:service=TransactionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Deployment "jboss.jca:name=DefaultDS,service=ManagedConnectionFactory" is missing the following dependencies:
Dependency "jboss.jca:name='jboss-local-jdbc.rar',service=RARDeployment" (should be in state "Create", but is actually in state "Instantiated")
Deployment "jboss.jca:name=DefaultDS,service=ManagedConnectionPool" is missing the following dependencies:
Dependency "jboss.jca:name=DefaultDS,service=ManagedConnectionFactory" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.jca:name=JmsXA,service=ConnectionFactoryBinding" is missing the following dependencies:
Dependency "jboss.jca:name=JmsXA,service=TxCM" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.jca:name=JmsXA,service=ManagedConnectionFactory" is missing the following dependencies:
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.jca:name='jms-ra.rar',service=RARDeployment" (should be in state "Create", but is actually in state "Instantiated")
Deployment "jboss.jca:name=JmsXA,service=ManagedConnectionPool" is missing the following dependencies:
Dependency "jboss.jca:name=JmsXA,service=ManagedConnectionFactory" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.jca:name=JmsXA,service=TxCM" is missing the following dependencies:
Dependency "jboss.jca:name=JmsXA,service=ManagedConnectionPool" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss:service=TransactionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Dependency "jboss.jca:service=CachedConnectionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:service=CachedConnectionManager' **")
Deployment "jboss.jmx:name=Invoker,protocol=jrmp,service=proxyFactory,type=adaptor" is missing the following dependencies:
Dependency "jboss:service=invoker,type=jrmp" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.jmx:name=MBeanProxyRemote,protocol=jrmp,type=adaptor" is missing the following dependencies:
Dependency "jboss.jmx:name=Invoker,protocol=jrmp,service=proxyFactory,type=adaptor" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.messaging.connectionfactory:service=ClusterPullConnectionFactory" is missing the following dependencies:
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.messaging.connectionfactory:service=ClusteredConnectionFactory" is missing the following dependencies:
Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.messaging.connectionfactory:service=ConnectionFactory" is missing the following dependencies:
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.messaging.destination:name=DLQ,service=Queue" is missing the following dependencies:
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.messaging.destination:name=ExpiryQueue,service=Queue" is missing the following dependencies:
Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.messaging:service=JMSUserManager" is missing the following dependencies:
Dependency "jboss:service=TransactionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.messaging:service=PersistenceManager" is missing the following dependencies:
Dependency "jboss:service=TransactionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.messaging:service=PostOffice" is missing the following dependencies:
Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss:service=TransactionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Deployment "jboss.messaging:service=ServerPeer" is missing the following dependencies:
Dependency "jboss.messaging:service=PersistenceManager" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.messaging:service=JMSUserManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq:service=DestinationManager" is missing the following dependencies:
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.web.deployment:war=/JSPServlet" is missing the following dependencies:
Dependency "jboss.web:service=WebServer" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.web.deployment:war=/ROOT" is missing the following dependencies:
Dependency "jboss.web:service=WebServer" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.web.deployment:war=/invoker" is missing the following dependencies:
Dependency "jboss.web:service=WebServer" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.web.deployment:war=/jbossws" is missing the following dependencies:
Dependency "jboss.web:service=WebServer" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.web.deployment:war=/jmx-console" is missing the following dependencies:
Dependency "jboss.web:service=WebServer" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.web.deployment:war=/web-console" is missing the following dependencies:
Dependency "jboss.web:service=WebServer" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.admin:service=PluginManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss:service=ClientUserTransaction" is missing the following dependencies:
Dependency "jboss:service=proxyFactory,target=ClientUserTransaction" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss:service=proxyFactory,target=ClientUserTransactionFactory" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss:service=KeyGeneratorFactory,type=HiLo" is missing the following dependencies:
Dependency "jboss:service=TransactionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss:service=invoker,type=jrmp" is missing the following dependencies:
Dependency "jboss:service=TransactionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Deployment "jboss:service=invoker,type=local" is missing the following dependencies:
Dependency "jboss:service=TransactionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Deployment "jboss:service=invoker,type=pooled" is missing the following dependencies:
Dependency "jboss:service=TransactionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Deployment "jboss:service=proxyFactory,target=ClientUserTransaction" is missing the following dependencies:
Dependency "jboss:service=invoker,type=unified" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss:service=proxyFactory,target=ClientUserTransactionFactory" is missing the following dependencies:
Dependency "jboss:service=invoker,type=unified" (should be in state "Create", but is actually in state "Configured")

DEPLOYMENTS IN ERROR:
Deployment "TransactionManager" is in error due to the following reason(s): java.lang.ExceptionInInitializerError: java.net.MalformedURLException: unknown protocol: c, **ERROR**
Deployment "jboss.jca:service=WorkManager" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:service=WorkManager' **
Deployment "jboss:service=invoker,type=unified" is in error due to the following reason(s): Configured
Deployment "<UNKNOWN DefaultUserTransactionprovider>" is in error due to the following reason(s): ** UNRESOLVED Demands 'TransactionManager' **
Deployment "jboss:service=TransactionManager" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss:service=TransactionManager' **
Deployment "jboss.jca:service=CachedConnectionManager" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:service=CachedConnectionManager' **
Deployment "jboss.web:service=WebServer" is in error due to the following reason(s): Configured

21:18:18,294 INFO [ServerImpl] JBoss (Microcontainer) [5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902231221)] Started in 15s:881ms





Please help..
Regards,
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

An error in arjuna? Sounds to me like your "simple servlet" is trying to do some database access. Could you explain a little more about what your servlet is doing and post any source code and configuration files that you created or modified.

And I have to ask the standard question: do you get this same error when you start the app server form the command line and manually deploy the application (that is, without using Eclipse).


JBoss In Action
Arka Sharma
Ranch Hand

Joined: Jun 15, 2011
Posts: 103


My servlet is very simple one just printing hello world to the client.It is not doing any database interaction.And I'm newbie to JBoss.I don't know how to deploy servlet in JBosss.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10289
    
168

1) Do not use JBoss AS 5.0.x. Instead use either 5.1.0 or 6.0.0
2) It looks like you might have installed JBoss in a folder containing a space in its path name (for ex: C:\Program Files\). If that's the case, then move it out of that folder and instead place it in a folder which doesn't have a space in its path (for ex: C:\jboss\).

[My Blog] [JavaRanch Journal]
Arka Sharma
Ranch Hand

Joined: Jun 15, 2011
Posts: 103


Thanks a lot JaiKiran this worked for me.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10289
    
168

Y D Prakash,
Your post was moved to a new topic.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ExceptionInInitializerError while running servlet in JBoss 5.0