[Installation, Configuration & DEPLOYMENT] - NoSuchMethodError configuring service naming during startup
by mayisee
Trying 4.2.2.GA with JAVA_HOME set to either of JDK1.5.0_15 or JDK1.6.0_5 fails creating Naming service with NoSuchMethosError while trying to use org.jnp.interfaces.MarshalledValuePair.setEnableCallByReference
Any ideas?
11:12:13,691 DEBUG [ServiceCreator] Created bean: jboss:service=Naming
11:12:13,691 DEBUG [ServiceConfigurator] CallByValue set to false in jboss:service=Naming
11:12:13,706 DEBUG [NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
11:12:13,706 DEBUG [NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
11:12:13,706 DEBUG [NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
11:12:13,706 INFO [ServiceConfigurator] Problem configuring service jboss:service=Naming
org.jboss.deployment.DeploymentException: Exception setting attribute CallByValue = false on mbean jboss:service=Naming; - nested throwable: (java.lang.NoSuchMethodError: org.jnp.interfaces.MarshalledValuePair.setEnableCallByReference(Z)V)
at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:707)
at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:332)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:462)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
at org.jboss.system.ServiceController.install(ServiceController.java:226)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141037#4141037
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141037
18 years
[Installation, Configuration & DEPLOYMENT] - Re: Automatic deploy with MainDeployer
by jaikiran
"jefec" wrote :
| Using of MainDeployer is not reqired, but I don't find any other solution (expect copying to deploy directory).
In that case, copying to the deploy directory is probably a better solution. As i mentioned in my earlier post, all you have to worry about with this approach is to ensure that the "copy" operation completes before the file is picked up for deployment. I do see a way of getting around this, JBoss by default ignores files ending with .bak extension (as well as some other extensions which you will find mentioned in the server/< serverName>/conf/jboss-service.xml file) from deployment. What you could do is while copying your application (ex: myApp.ear) to the deploy folder, copy it as myApp.ear.bak. Once the copy operation completes, just rename it to myApp.ear. This way, even if the deployment scanner starts scanning the deploy folder when the copy operation is in progress, its wont pick up this file. The file will be picked up only after the rename operation is done (which wont take any time).
Would this approach work for you?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141031#4141031
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141031
18 years
[Microcontainer] - Re: Code example for a basic parsing deployer
by david.lloyd@jboss.com
Glad I'm not the only one.
Here's the remoting-deployer-beans.xml: http://pastebin.stonekeep.com/1825
Here's RemotingMetaData.java: http://pastebin.stonekeep.com/1826
The jboss-remoting.xml that it fails to deploy is:
<remoting xmlns="urn:jboss:remoting:3.0"/>
The exception is:
Exception in thread "main" java.lang.RuntimeException: Deployment failed
| at org.jboss.cx.remoting.jrpp.EmbeddedBootstrap.deploy(EmbeddedBootstrap.java:23)
| at org.jboss.cx.remoting.jrpp.Test2.main(Test2.java:12)
| 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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
| Caused by: java.lang.ClassCastException: org.jboss.cx.remoting.metadata.RemotingMetaData
| at org.jboss.kernel.plugins.deployment.xml.BasicXMLDeployer.deploy(BasicXMLDeployer.java:147)
| at org.jboss.cx.remoting.jrpp.EmbeddedBootstrap.deploy(EmbeddedBootstrap.java:21)
| ... 6 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141017#4141017
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141017
18 years