[JBoss AS 7 Development] - Exception "llegalArgumentException: Null path " occured
by s ls
s ls [https://community.jboss.org/people/sunls] created the discussion
"Exception "llegalArgumentException: Null path " occured"
To view the discussion, visit: https://community.jboss.org/message/724249#724249
--------------------------------------------------------------
I deployed a seam2's application in JBoss AS 7. Exception "llegalArgumentException: Null path " occured.
java.lang.IllegalArgumentException: Null path
at org.jboss.vfs.VFS.getChild(VFS.java:187) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
at org.jboss.vfs.VFS.getChild(VFS.java:173) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
at org.jboss.vfs.VFS.getChild(VFS.java:154) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
at org.jboss.seam.integration.jbossas.vfs.VFSScanner.getRoot(VFSScanner.java:36) [jboss-seam-int.jar:6.0.0.GA]
at org.jboss.seam.integration.jbossas.vfs.VFSScanner.scanResources(VFSScanner.java:114) [jboss-seam-int.jar:6.0.0.GA
I made a module my.service. The module have a resource my_service.jar. In my_service.jar's root path, there is a seam.properties file.
So seam search seam.properties, my_service.jar is found. But, url is like:
jar:file:/D:/opt/jboss-as-7.1.0.Final/modules/kss/service/main/kss_services.jar!/seam.properties
In VFS.getChild method, url.toURI().getPath() is null. "llegalArgumentException: Null path " occured. Why is getPath() method's return null?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/724249#724249]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 9 months
[JBoss ESB Development] - [AbstractKernelController] Error installing to Create:
by Veradis Tech
Veradis Tech [https://community.jboss.org/people/veradismail] created the discussion
"[AbstractKernelController] Error installing to Create:"
To view the discussion, visit: https://community.jboss.org/message/725049#725049
--------------------------------------------------------------
I am using jboss developer studio, i integrated jboss-soa-p-5 server. I ran a sample program it runs fine, but if i am giving xsd file as inXSD for the action means i am getting DeploymentException.
I saw many fourms for this type of exceptions, but for them the problem is different. For me if i give the xsd file in the action means i am getting this error. The error is as follows:
17:28:11,937 ERROR [AbstractKernelController] Error installing to Create: name=jboss.esb.vfsfile:/F:/Documents%20and%20Settings/ESB/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1332244603046/deploy/example.esb/ state=Configured
org.jboss.deployment.DeploymentException: Failed to create webservice artifact
at org.jboss.soa.esb.listeners.config.WebGatewayBuilder.createWebserviceWars(WebGatewayBuilder.java:190)
at org.jboss.soa.esb.listeners.config.WebGatewayBuilder.build(WebGatewayBuilder.java:112)
at org.jboss.soa.esb.listeners.deployers.mc.EsbDeployment.create(EsbDeployment.java:191)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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:243)
at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:111)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72)
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:1652)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)
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:55)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1454)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1172)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1193)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1113)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:789)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:409)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:294)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at org.jboss.internal.soa.esb.util.JBossDeployerUtil.closeStream(JBossDeployerUtil.java:408)
at org.jboss.internal.soa.esb.util.JBossDeployerUtil.getSchemasFromArchive(JBossDeployerUtil.java:400)
at org.jboss.internal.soa.esb.util.JBossDeployerUtil.getSchemas(JBossDeployerUtil.java:313)
at org.jboss.soa.esb.listeners.config.WebGatewayBuilder.createWebserviceWars(WebGatewayBuilder.java:148)
... 59 more
17:28:11,953 WARN [HDScanner] Failed to process changes
org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
DEPLOYMENTS IN ERROR:
Deployment "jboss.esb.vfsfile:/F:/Documents%20and%20Settings/ESB/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1332244603046/deploy/example.esb/" is in error due to the following reason(s): java.lang.NullPointerException
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1008)
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:954)
at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:870)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:416)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:294)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Waiting for your reply
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/725049#725049]
Start a new discussion in JBoss ESB Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 9 months
[JBoss Web Services Development] - Consume a web service from another web service
by florentine
florentine [https://community.jboss.org/people/florentine] created the discussion
"Consume a web service from another web service"
To view the discussion, visit: https://community.jboss.org/message/724513#724513
--------------------------------------------------------------
Hi all,
I'm new to the web service world so I apologize for my naive question.
I created a very basic web service that I am able to successfully call from a web client. What I want to do now is to create a second web service that uses the service exposed by the first one to provide its own functionality.
These are my classes/web services:
*HelloWorld.java (External Web Service)*
{code}
package hw1;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.Style;
@WebService
@SOAPBinding(style = Style.RPC)
public interface HelloWorld {
@WebMethod String getHiWorld();
}
{code}
*HelloWorldImpl.java*
{code}
package hw1;
import hw2.HelloWorld2;
import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.xml.ws.WebServiceRef;
@WebService(serviceName = "HelloWorldService", name = "HelloWorld")
public class HelloWorldImpl implements HelloWorld {
@WebServiceRef(type = HelloWorld2.class)
private HelloWorld2Service service;
@Override
@WebMethod
public String getHiWorld() {
HelloWorld2 port = service.getHelloWorld2Port();
return "Hi World" + port.getHiWorld();
}
}
{code}
*HelloWorld2.java (Internal Web Service)*
{code}
package hw2;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.soap.SOAPBinding;
@WebService
@SOAPBinding(style=SOAPBinding.Style.RPC)
public interface HelloWorld2 {
@WebMethod String getHiWorld();
}
{code}
*HelloWorld2Impl.java*
{code}
package hw2;
import javax.jws.WebMethod;
import javax.jws.WebService;
@WebService(serviceName="HelloWorld2Service", name="HelloWorld2")
public class HelloWorld2Impl implements HelloWorld2 {
@Override
@WebMethod
public String getHiWorld() {
return " again!";
}
public HelloWorld2Impl (){}
}
{code}
The error I get is that in HelloWorld.java, the HelloWorld2Service cannot be resolved to a type.
I am developing with Eclipse Indigo, I'm using JBOSS 7 AS, and I have the Java 1.7 installed on my pc.
Thanks in advance for any help or hint you can provide.
Filippo
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/724513#724513]
Start a new discussion in JBoss Web Services Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 9 months