Wolfgang Knauf [http://community.jboss.org/people/WolfgangKnauf] replied to the discussion
"Error working wih EJB3, Struts2 & JBoss 4.2GA"
To view the discussion, visit: http://community.jboss.org/message/539825#539825
--------------------------------------------------------------
Hi,
there might be some reasons for this:
-your client app contains JBoss jars which do not match the jars of your server.
-your client app contains older versions of the class files of your EJBs/EJB interfaces (either from an older compilation, or e.g. compiled with a different JDK version).
By the way: how do you develop your app? Do you use some IDE? You are running in a whole lot of errors which would probably not happen if using e.g. "Eclipse for JavaEE developers".
Best regards
Wolfgang
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/539825#539825]
Start a new discussion in EJB 3.0 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
Viacheslav Garmash [http://community.jboss.org/people/vgarmash] replied to the discussion
"WebService Client with MTOM"
To view the discussion, visit: http://community.jboss.org/message/539823#539823
--------------------------------------------------------------
Hi, Alessio.
All I can find is this https://www.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/4... here:
> *MTOM enabled clients*
>
> Web service clients can use the same approach described above or rely on the Binding API to enable MTOM (Excerpt taken from the org.jboss.test.ws.jaxws.samples.xop.doclit.XOPTestCase):
>
>
> [...]
> Service service = Service.create(wsdlURL, serviceName);
> port = service.getPort(MTOMEndpoint.class);
>
> // enable MTOM
> binding = (SOAPBinding)((BindingProvider)port).getBinding();
> binding.setMTOMEnabled(true);
>
>
>
>
> h2. Note
>
> You might as well use the JBossWS configuration templates to setup deployment defaults.
>
>
But it doesn't really help. I am having exception in the row
Service.create(wsdlURL, serviceName);
which is before we set MTOM. Actually I don't want to use MTOM at all but it still being loaded because WSDL has this:
<wsp:Policy wsu:Id="CustomBinding_ISearchService_policy">
<wsp:ExactlyOne>
<wsp:All>
<msb:BinaryEncoding xmlns:msb="http://schemas.microsoft.com/ws/06/2004/mspolicy/netbinary1" />
<wsaw:UsingAddressing />
</wsp:All>
</wsp:ExactlyOne>
</wsp:Policy>
See http://dev.virtualearth.net/webservices/v1/metadata/searchservice/dev.vir... dev.virtualearth.net.webservices.v1.search.wsdl for details.
Is there any way in configuration files to say: "use plain services and never use binary one"?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/539823#539823]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
Robert Heim [http://community.jboss.org/people/brannic] replied to the discussion
"JBoss AS 5.1 and Virtual Directories"
To view the discussion, visit: http://community.jboss.org/message/539808#539808
--------------------------------------------------------------
Ok, doing some more digging I found this article discussing External Directories which seems to be the alternative for JBoss 5.1.0.
http://community.jboss.org/wiki/ExternalDirectorieshttp://community.jboss.org/wiki/ExternalDirectories
Problem is, when I add this to the profile.xml file, I still cannot access the generated file using a URL.
<property name="bootstrapURI">${jboss.server.home.url}conf/jboss-service.xml</property>
<property name="deployersURI">${jboss.server.home.url}deployers</property>
<property name="applicationURIs">
<list elementClass="java.net.URI">
<value>${jboss.server.home.url}deploy</value>
<!-- External Directories -->
<value>${jboss.server.home.url}virtualDirectory/reporting/output</value>
<value>${jboss.server.home.url}virtualDirectory/app/output</value>
I still get a HTTP 404. I can see the file is being created in the directory specified but I can't seem to access it via URL.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/539808#539808]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]