[Beginners Corner] - Re: JBoss 4.0.5 servlet filter problem in web.xml
by malmit
I've got a different problem. I am trying to build a document literal web service in JBoss 4.0.5 and can't get around this exception:
org.jboss.ws.WSException: Cannot obtain java/xml type mapping for: {http://www.w3.org/2001/XMLSchema}base64Binary
Here's what my wsdl looks like:
<SOAP:binding style="document" transport="http://schemas.xmlsoap.org/soap/http">
<SOAP:operation style="document" soapAction="Ping">
< input>
<mime:multipartRelated>
<mime:part>
<SOAP:body use="literal"/>
</mime:part>
<mime:part>
<mime:content part="data" type="gzip"/>
</mime:part>
</mime:multipartRelated>
</ input>
< output>
<SOAP:body use="literal"/>
</ output>
</SOAP:operation>
</SOAP:binding>
In my mapping.xml file that wscompile generated, this mapping was generated for the data mime:content:
<variable-mapping>
<java-variable-name>data</java-variable-name>
<xml-element-name>data</xml-element-name>
</variable-mapping>
My ultimate goal is to allow a web service request containing parameters passed via a normal web service request and allow an attachment of a base64 encoded binary file. Is this a bug in JBoss 4.0.5?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984531#3984531
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984531
19Â years, 6Â months
[JBoss Seam] - s:link cannot understand Facelets params?
by bfo81
Yes, I'm back *g*.
Simplified scenario: I'm using a template for data tables listing entities with an edit link at the end of each row. The concrete list entries and the editor bean are put into the template via ui-params.
The list template:
<h:dataTable var="entry" value="#{list.entries}">
|
| <ui:insert name="content" />
|
| <h:column>
| <s:link action="#{editor.edit}" value="Edit this">
| <f:param name="id" value="#{entry.id}" />
| </s:link>
| </h:column>
|
| </h:dataTable>
And a concrete "content" example, that gets decorated with the above code:
<ui:param name="editor" value="#{personEditorBean}" />
| <ui:param name="liste" value="#{personListBean}" />
|
| <ui:define name="content">
|
| ...other columns...
|
| </ui:define>
If I use h:commandLink instead of s:link, everything works fine.
But s:link is not able to understand that #{editor.edit} means (in this case) #{personEditorBean.edit}.
Caused by: javax.faces.el.PropertyNotFoundException: Base is null: editor
wtf? ^^
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984528#3984528
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984528
19Â years, 6Â months
[Beginners Corner] - Initialize EMF (Eclipse Modeling Framework) on JBoss
by winterer
Hello!
I've got a severy initialization problem using EMF (Eclipse modeling framework) on JBoss.
For transferring data from the client to the server, I'm using a generic transfer object that "carries" an EMF object. When the transfer object is serialized, it uses the EMF build in XML serialization to serialize its load (the emf object).
But when the transfer object is unmarshalled on server side, an exception is thrown, because it is required to initialize the EMF package factories first. This is just one line of code, but because the unmarshalling happens before any of my session beans are called (or even loaded by the classloader), I've no idea how to correctly initialize the EMF packages.
Apart form that it is also necessary to hold a reference to the EMF package factories all over the time to avoid that the classes are unloaded, because all initialization info is held in static fields. (If the classes were unloaded, all initialization info would be gone and all consecutive unmarshalling of my transfer objects would again fail).
Thanks for your help in advance!
Mario
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984525#3984525
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984525
19Â years, 6Â months
[EJB/JBoss] - Re: Problem when trying to access an EJB bean in an Enterpri
by ANDRIA-NTOANINA
When running the jar
I change my jboss-client.xml as you indicated.
And I got : MySession not bound
Now I reput BeanSessionBean into my jndiname and change
| @RemoteBinding(jndibinding="MySession")
|
| to
|
| @Remote
|
In my main application, I try to see what's in the InitialContext by :
| Context c = new InitialContext();
| Context ce = (Context)c.lookup("java:comp/env/ejb");
| //Object b = c.lookup("java:comp/env/ejb/BeanSessionBean");
|
| NamingEnumeration li = ce.list("");
| while(li.hasMore())
| {
| NameClassPair a= (NameClassPair)li.next();
| System.out.println("ClassName="+a.getClassName()+" Name="+a.getName());;
| }
|
in the output, I got:
anonymous wrote :
| ClassName=javax.naming.LinkRef Name=BeanSessionBean
|
there's my BeanSessionBean in the InitialContext.
But when I retry to get my Beans by:
| Context c = new InitialContext();
| Context ce = (Context)c.lookup("java:comp/env/ejb");
| Object b = c.lookup("java:comp/env/ejb/BeanSessionBean");
|
I got something like:
BeanSessionBean not bound
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984524#3984524
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984524
19Â years, 6Â months