[JNDI/Naming/Network] - jboss-client.jar really needed for Tomcat?
by henk53
Hi,
Sorry for this question which is probably extremely basic, but I'm just trying to understand what's going on under the hood.
I have a servlet running inside a standalone Tomcat 6.0.14 instance. From this servlet I would like to connect to a Jboss 4.2 EJB container to either send a message to a JMS topic, or to retrieve an EJB bean.
Since Tomcat already provides a JNDI implementation, I wonder whether I -have- to include the jbossall-client.jar in order to obtain a directory connection to Jboss from Tomcat, or whether I can somehow configure something so that new javax.naming.InitialContext(...); transparently resolves to the directory service operated by Jboss.
The catch is of course to do this without including jbossall-client.jar to the web application running on Tomcat.
Would this be possible?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149192#4149192
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149192
17 years, 11 months
[JBossWS] - @XmlMimeType(
by pdrummond
Hi all,
I am using Revision: jbossws-3.0.1-native-2.0.4.GA and trying to get attachments to work. I have no problems running the XOP test case but when I try to write my own service I always have the same problem. When I deploy my WAR the ns1:expectedContentTypes is always "application/octet-stream" even though I specify @XmlMimeType("text/plain") in the code.
My end-point code is as follows:
| package eas.attachment;
| import java.io.IOException;
| import javax.activation.DataHandler;
| import javax.jws.WebMethod;
| import javax.jws.WebService;
| import javax.xml.bind.annotation.XmlMimeType;
| import javax.xml.ws.BindingType;
| import javax.xml.ws.WebServiceException;
|
| @WebService(name = "EASEndpoint", serviceName = "EASEndpointService")
| @BindingType(value = "http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true")
| public class EASEndpointImpl implements EASEndpoint {
|
| @WebMethod
| @XmlMimeType("text/plain")
| public DataHandler fileUpload(@XmlMimeType("text/plain") DataHandler data) {
| try {
| System.out.println("Recv " + data.getContentType());
| System.out.println("Content is " + data.getContent());
| return new DataHandler("Server data", "text/plain");
| }
| catch (IOException e) {
| throw new WebServiceException(e);
| }
| }
| }
|
The code is almost identical to the WrappedEndpoint in the sample code - if I am missing something, I can't see it!!! I can confirm that the wsdl for the WrappedEndpoint does include what you'd expect - ns1:expectedContentTypes="text/plain" so why doesn't mine?
Can anyone help? I am now stepping through the JBossWS source code to determine the source of this problem and will report any findings...
Thanks,
Paul Drummond
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149184#4149184
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149184
17 years, 11 months
[Management, JMX/JBoss] - No 'jboss' MBeanServer found!
by jyotisree1
Hi,
I am new in JBossTomcat, i am using jboss-4.0.3SP1 version. When i am to execute following line of code from jsp:-
MBeanServer server = org.jboss.mx.util.MBeanServerLocator.locateJBoss();
it is giving following exception:-
java.lang.IllegalStateException: No 'jboss' MBeanServer found!
at org.jboss.mx.util.MBeanServerLocator.locateJBoss(MBeanServerLocator.java:110)
at org.apache.jsp.JSP.Cpi_jsp._jspService(org.apache.jsp.JSP.Cpi_jsp:54)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:534)
-----------------------------------------------------------------------
Please some one help me on this. Is there any configuration that i have to done any of the xml config file.
Waiting for earliest reply.
Thanks & Regards,
Jyotisree
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149183#4149183
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149183
17 years, 11 months