[Design of POJO Server] - Installing VFS* Protocol Handlers
by ALRubinger
In bringing the new bootstrap implementation to AS I've run into:
Caused by: java.net.MalformedURLException: unknown protocol: vfsfile
This was expected, as I'd opened an issue to manually initialize VFS when the server starts:
https://jira.jboss.org/jira/browse/JBBOOT-67
public void handleEvent(final LifecycleState state) throws LifecycleEventException
| {
| // Only run this instance once
| if (!beenRun)
| {
| // Log
| log.warn("Initializing the virtual filesystem..."); // Just for debugging
|
| // Init the virtual filesystem
| VFS.init();
|
| // Mark
| beenRun = true;
| }
| }
I'd been expecting the VFS.init() call to be enough...who knows the missing piece?
00:56:59,789 INFO [AbstractServer] Starting: org.jboss.bootstrap.impl.as.server.JBossASServerImpl@1ff4689e
| 00:56:59,790 WARN [VfsInitializingLifecycleEventHandler] Initializing the virtual filesystem... // Proof my hack's running
| 00:57:00,189 INFO [AbstractMCServerBase] Starting Microcontainer, Main bootstrapURL=file:/home/alrubinger/business/jboss/wc/jbossas/branches/Branch_5_x_BootstrapLegacyRemoval/build/output/jboss-5.1.0.GA/server/default/conf/bootstrap.xml
| 00:57:01,054 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
| 00:57:01,056 INFO [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
| 00:57:01,665 ERROR [AbstractKernelController] Error installing to Instantiated: name=bootstrap-classloader:0.0.0 state=Described
| java.lang.RuntimeException: Error creating VFS file for file:/home/alrubinger/business/jboss/wc/jbossas/branches/Branch_5_x_BootstrapLegacyRemoval/build/output/jboss-5.1.0.GA/lib/jboss-system.jar
| at org.jboss.classloading.spi.vfs.dependency.VFSClassLoaderPolicyModule.determineVFSRoots(VFSClassLoaderPolicyModule.java:178)
| at org.jboss.classloading.spi.vfs.dependency.VFSClassLoaderPolicyModule.determinePolicy(VFSClassLoaderPolicyModule.java:210)
| at org.jboss.classloading.spi.vfs.dependency.VFSClassLoaderPolicyModule.determinePolicy(VFSClassLoaderPolicyModule.java:52)
| at org.jboss.classloading.spi.dependency.policy.ClassLoaderPolicyModule.getPolicy(ClassLoaderPolicyModule.java:195)
| at org.jboss.classloading.spi.vfs.dependency.VFSClassLoaderPolicyModule.getPolicy(VFSClassLoaderPolicyModule.java:204)
| at org.jboss.classloading.spi.vfs.dependency.VFSClassLoaderPolicyModule.getPolicy(VFSClassLoaderPolicyModule.java:52)
| at org.jboss.classloading.spi.dependency.policy.ClassLoaderPolicyModule.registerClassLoaderPolicy(ClassLoaderPolicyModule.java:131)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| 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.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.impl.mc.deployer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:91)
| at org.jboss.bootstrap.impl.mc.deployer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:161)
| at org.jboss.bootstrap.impl.mc.server.AbstractMCServerBase.doStart(AbstractMCServerBase.java:265)
| at org.jboss.bootstrap.impl.as.server.JBossASServerImpl.doStart(JBossASServerImpl.java:288)
| at org.jboss.bootstrap.impl.base.server.AbstractServer.start(AbstractServer.java:328)
| at org.jboss.bootstrap.impl.as.server.JBossASServerImpl.start(JBossASServerImpl.java:301)
| at org.jboss.Main.boot(Main.java:342)
| at org.jboss.Main$1.run(Main.java:676)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.net.MalformedURLException: unknown protocol: vfsfile
| at java.net.URL.<init>(URL.java:574)
| at java.net.URL.<init>(URL.java:464)
| at java.net.URL.<init>(URL.java:413)
| at org.jboss.virtual.plugins.context.file.FileHandler.<init>(FileHandler.java:77)
| at org.jboss.virtual.plugins.context.file.FileHandler.<init>(FileHandler.java:93)
| at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:322)
| at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:260)
| at org.jboss.virtual.plugins.context.file.FileSystemContext.getRoot(FileSystemContext.java:207)
| at org.jboss.virtual.plugins.registry.DefaultVFSRegistry.getFile(DefaultVFSRegistry.java:86)
| at org.jboss.virtual.VFS.getRoot(VFS.java:200)
| at org.jboss.classloading.spi.vfs.dependency.VFSClassLoaderPolicyModule.getVirtualFile(VFSClassLoaderPolicyModule.java:196)
| at org.jboss.classloading.spi.vfs.dependency.VFSClassLoaderPolicyModule.determineVFSRoots(VFSClassLoaderPolicyModule.java:170)
| ... 43 more
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4229936#4229936
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4229936
16 years, 11 months
[Design of JBoss jBPM] - JBPM4 defining exception handler to redirect the sequence fl
by galanfish
hi, everybody
i've defined an exceptionHandler which was supposed to affect the propagation of the execution, once the matched exception occur,
the exceptionHandler will redirect the normal sequence flow by choosing another non-default transition.
the definition is like this: ExceptionHahndlerImpl#createEventListenerReference, #setTransitionName, ActivityImpl#addExceptionHandler, etc.
but the execution didn't go right, the atomicOperations did have been added, but the execution keep propagating with the default transition, the execution didn't return to execute another ActomicOperation but call proceed()
then i modified the code in ExceptionHandlerImpl as follow, it seems work:
ExceptionHandlerImpl#executeHandler(ExecutionImpl execution, Exception exception)
if (activity!=null) {
| TransitionImpl transition = activity.findOutgoingTransition(transitionName);
| if (transition!=null) {
| log.trace(toString()+" takes transition "+transitionName);
| execution.setTransition(transition);
|
| // modification begins
| execution.propagation = Propagation.EXPLICIT;
| execution.setTransitionOrigin(activity);
| // modification ends
|
| execution.performAtomicOperationSync(ExecutionImpl.TAKE_TRANSITION);
| } else {
| log.info("WARNING: "+toString()+" couldn't find transition "+transitionName+" on "+activity);
| }
| } else {
| log.info("WARNING: "+toString()+" couldn't find current activity to take transition "+transitionName);
| }
is that a bug or that there are something wrong with my testcase, help please, appreciate!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4229932#4229932
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4229932
16 years, 11 months
[Design of JBoss ESB] - SOAPProcessor Issues
by goutam
Hi,
I am trying to use SOAPProcessor to expose a JAX-WS endpoint through JBoss ESB. I am having a couple of problems -
1. The endpoint should be ESB message aware as per the documentation. But when I do SOAPProcessor.getMessage() in the service endpoint, I get null. What can be the possible reason? Is there any workaround to solve this? I will need to get access to the ESB message in the endpoint.
2. I understand that when you configure JBR listeners for this SOAPProcessor endpoint, one http port can cater to only one service. How can I configure to expose all the services through a single port? I saw the documentation on HTTPGatewayListener but when I change the jboss-esb.xml to point to the higher version of xsd for the HTTPGatewayListener to run, it does not get deployed. I am using the evaluation version of Enterprise SOA Platform 4.3.
Would appreciate any help in this regard.
Thanks,
Goutam
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4229885#4229885
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4229885
16 years, 11 months
[Design of EJB 3.0] - Plugin Release against AS 5.1.0.CR1
by ALRubinger
Hmm, some issues that I didn't see present when patching AS using the Plugin locally:
http://jboss.hudson.alrubinger.com/job/EJB3_Integration_TestSuite_Plugin_...
org.jboss.deployers.spi.DeploymentException: Error deploying jboss-jca-deployer.jar: org/jboss/ejb3/endpoint/Endpoint
| at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:196)
| at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:99)
| at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)
| 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:1210)
| 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:216)
| at org.jboss.Main$1.run(Main.java:546)
| at java.lang.Thread.run(Thread.java:595)
What's weird is that I'd even linked Jaikiran to a Hudson showing the Endpoint tests passing w/ no regression (can't seem to find it now). So I'll have a look tomorrow and clear up this mess.
S,
ALR
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4229875#4229875
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4229875
16 years, 11 months