EAP 5 "java.io.IOException: No context factory for http://...." protocol deployments

Solution Verified - Updated -

Issue

  • Is there a way to deploy a file that is available via an HTTP url ?  In JBoss 4.x there was the netboot option, that is no longer available in EAP 5.

  • Deployment of an application using the http protocol fails with the following error./twiddle.sh -s jnp://localhost:1099 -u admin -p admin invoke  "jboss.system:service=MainDeployer"  deploy http://localhost:80/counter.war

    13:55:33,102 ERROR [Twiddle] Exec failed
    javax.management.MBeanException
    at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:184)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:165)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
    at org.jboss.system.server.jmx.LazyMBeanServer.invoke(LazyMBeanServer.java:283)
    .. ..
    Caused by: org.jboss.deployment.DeploymentException: Failed to deploy: http://localhost:80/counter.war
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:838)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
    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:597)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
    ... 49 more
    Caused by: java.io.IOException: No context factory for http://localhost:80/counter.war
    at org.jboss.virtual.VFS.getVFS(VFS.java:232)
    at org.jboss.virtual.VFS.createNewRoot(VFS.java:249)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:826)
    ... 55 more

Environment

  • JBoss Enterprise Application Platform (EAP)

    • 5.1.x

    • 5.0.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.