[Design of JBoss Transaction Services] - BUILD FAILED: set jboss.server to the name of the JBoss serv
by ben.cotton@rutgers.edu
Hi,
I am trying to build the XTS 1.1 .jars with the ultimate goal of getting the WS-BA Framework to work "out of the box" with JBoss 5. Following Andrew's excellent instructions, I did an 'SVN co' on JBOSSTS_4_6_0_CR1/ and then proceeded with step #1:
ant jbossjta
the build steamed along happily for over 2.5 minutes, but finally FAILED on this error:
anonymous wrote :
|
|
| /* .... snipped build's earlier stdout/stderr */
|
| [java] com.arjuna.mwlabs.ts.jbossatx.init:
| [java]
| [java] BUILD FAILED
| [java] c:\Users\buddy\workspace\JBOSS_4_6_0_CR1\build.xml:145: The following error occurred while executing this line:
| [java] c:\Users\buddy\workspace\JBOSS_4_6_0_CR1\atsintegration\build.xml:74: The JBoss server 'all' does not appear to exist in the installation directory. Please set jboss.server to the name of the JBoss server instance.
| [java]
| [java] Total time: 2 minutes 39 seconds
|
I have tried export JBOSS_SERVER=$JBOSS_HOME/server/ and 3 permutations of export JBOSS_SERVER=$JBOSS_HOME/server/{all,default,minimal}, each followed by a re-build. But at that point I was just guessing my way to a work-around. I am now kinda stuck. Any tips on how I pacify this build's need for a correct jboss.server value?
Thanks,
Ben
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223471#4223471
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4223471
17 years
[Design of JBoss Web Services] - faultString: Endpoint ... Port does not contain operation me
by gopivm
Hi,
I am facing a problem while invoking the web service method which is exposed from stateless session bean (EJB3) by DII client.
This is my development environment.
Eclipse Version: 3.4.0
Jboss-4.3.2.GA
JRE 1.5.0_15
EJB 3.0
I "googled" a lot, but couldn't find any correct solution which actually works. But, there are a lot of people have faced the same problem.
Can somebody help me?
This is the error that I am getting :
AxisFault
| faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
| faultSubcode:
| faultString: Endpoint {http://woss.appservice.nbric.nbpts.com/}WarehouseServiceBeanPort does not contain operation meta data for: {http://schemas.xmlsoap.org/wsdl/}searchPersonsForWarehouseBatch
| faultActor:
| faultNode:
| faultDetail:
| {http://xml.apache.org/axis/}stackTrace:Endpoint {http://woss.appservice.nbric.nbpts.com/}WarehouseServiceBeanPort does not contain operation meta data for: {http://schemas.xmlsoap.org/wsdl/}searchPersonsForWarehouseBatch
| at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
| at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
| at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
|
My client code DII:
| QName serviceName = new QName(
| "http://localhost:8080/nbric-business-appservices/WarehouseServiceBean?wsdl",
| "WarehouseServiceBeanService");
| ServiceFactory factory = ServiceFactory.newInstance();
| Service service = factory.createService(serviceName);
| Call call = service.createCall();
| QName operationName = new QName(BODY_NAMESPACE_VALUE,
| "searchPersonsForWarehouseBatch");
| call.setOperationName(operationName);
| call.setTargetEndpointAddress(endpoint);
| call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
| // call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
| call.setProperty(ENCODING_STYLE_PROPERTY, URI_ENCODING);
| QName QNAME_TYPE_STRING = new QName(NS_XSD, "string");
| call.setReturnType(QNAME_TYPE_STRING);
| call.setOperationName(new QName(BODY_NAMESPACE_VALUE,
| "searchPersonsForWarehouseBatch"));
|
| call.addParameter("String_1", QNAME_TYPE_STRING, ParameterMode.IN);
| String[] params = { "DEFAULTS13330" };
| // Invoke the WS operation using the JAX-RPC Call's invoke method
| String result = (String) call.invoke(params);
|
WSDL :
| - <definitions name="WarehouseServiceBeanService" targetNamespace="http://woss.appservice.nbric.nbpts.com/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://woss.appservice.nbric.nbpts.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
| - <types>
| - <xs:schema targetNamespace="http://woss.appservice.nbric.nbpts.com/" version="1.0" xmlns:tns="http://woss.appservice.nbric.nbpts.com/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
| <xs:element name="NBRICApplicationException" type="tns:NBRICApplicationException" />
| <xs:element name="NBRICSystemException" type="tns:NBRICSystemException" />
| <xs:element name="searchPersonsForWarehouseBatch" type="tns:searchPersonsForWarehouseBatch" />
| <xs:element name="searchPersonsForWarehouseBatchResponse" type="tns:searchPersonsForWarehouseBatchResponse" />
| - <xs:complexType name="searchPersonsForWarehouseBatch">
| - <xs:sequence>
| <xs:element minOccurs="0" name="arg0" type="xs:string" />
| </xs:sequence>
| </xs:complexType>
| - <xs:complexType name="searchPersonsForWarehouseBatchResponse">
| - <xs:sequence>
| <xs:element minOccurs="0" name="return" type="xs:string" />
| </xs:sequence>
| </xs:complexType>
| - <xs:complexType name="NBRICApplicationException">
| - <xs:sequence>
| <xs:element minOccurs="0" name="errorCode" type="xs:string" />
| <xs:element minOccurs="0" name="message" type="xs:string" />
| </xs:sequence>
| </xs:complexType>
| - <xs:complexType name="NBRICSystemException">
| - <xs:sequence>
| <xs:element minOccurs="0" name="errorCode" type="xs:string" />
| <xs:element minOccurs="0" name="message" type="xs:string" />
| </xs:sequence>
| </xs:complexType>
| </xs:schema>
| </types>
| - <message name="NBRICSystemException">
| <part element="tns:NBRICSystemException" name="NBRICSystemException" />
| </message>
| - <message name="NBRICApplicationException">
| <part element="tns:NBRICApplicationException" name="NBRICApplicationException" />
| </message>
| - <message name="WarehouseServiceBean_searchPersonsForWarehouseBatchResponse">
| <part element="tns:searchPersonsForWarehouseBatchResponse" name="searchPersonsForWarehouseBatchResponse" />
| </message>
| - <message name="WarehouseServiceBean_searchPersonsForWarehouseBatch">
| <part element="tns:searchPersonsForWarehouseBatch" name="searchPersonsForWarehouseBatch" />
| </message>
| - <portType name="WarehouseServiceBean">
| - <operation name="searchPersonsForWarehouseBatch" parameterOrder="searchPersonsForWarehouseBatch">
| <input message="tns:WarehouseServiceBean_searchPersonsForWarehouseBatch" />
| <output message="tns:WarehouseServiceBean_searchPersonsForWarehouseBatchResponse" />
| <fault message="tns:NBRICSystemException" name="NBRICSystemException" />
| <fault message="tns:NBRICApplicationException" name="NBRICApplicationException" />
| </operation>
| </portType>
| - <binding name="WarehouseServiceBeanBinding" type="tns:WarehouseServiceBean">
| <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
| - <operation name="searchPersonsForWarehouseBatch">
| <soap:operation soapAction="searchPersonsForWarehouseBatchAction" />
| - <input>
| <soap:body use="literal" />
| </input>
| - <output>
| <soap:body use="literal" />
| </output>
| - <fault name="NBRICSystemException">
| <soap:fault name="NBRICSystemException" use="literal" />
| </fault>
| - <fault name="NBRICApplicationException">
| <soap:fault name="NBRICApplicationException" use="literal" />
| </fault>
| </operation>
| </binding>
| - <service name="WarehouseServiceBeanService">
| - <port binding="tns:WarehouseServiceBeanBinding" name="WarehouseServiceBeanPort">
| <soap:address location="http://127.0.0.1:8080/nbric-business-appservices/WarehouseServiceBean" />
| </port>
| </service>
| </definitions>
|
The EJB 3 service:
| @Stateless(name = "WarehouseServiceBean", mappedName = "WarehouseServiceBean")
| @TransactionManagement(TransactionManagementType.CONTAINER)
| @TransactionAttribute(TransactionAttributeType.REQUIRED)
| @WebService
| public class WarehouseServiceBean implements /*WarehouseServiceInterface,*/ Serializable {
|
|
| /**
| *
| */
| private static final long serialVersionUID = 1L;
|
| public WarehouseServiceBean(){
|
| }
| @WebMethod(action="searchPersonsForWarehouseBatchAction" )
| public String searchPersonsForWarehouseBatch(
| String searchString
| )
| throws NBRICApplicationException, NBRICSystemException {
| List<Person> personList = null;
|
| try {
| /* - Commented the DAO code for time being.
| final PersonDAO dao = DAOFactory.getDAOFactory(
| ApplicationConstants.HIBERNATE_DAO_FACTORY).getPersonDAO();
| // Compass Search * Starts
| //personList = dao.searchPersonCompassPOC(searchString);
| // Compass Search * Ends
|
| // Hibernate search
| personList = dao.searchUserPOC(searchString);
|
| int arrayLength = personList.size();
| Person[] personArray = new Person[arrayLength];
| for (int i = 0; i < personArray.length; i++) {
| personArray = personList.get(i);
| }*/
|
|
| return "hello";
|
| /*} catch (NBRICApplicationException e) {
|
| throw e;
| } catch (NBRICSystemException e) {
| throw e;*/
| } catch (Exception e) {
| throw new NBRICSystemException(e, ErrorCode.S_SERVER_DOWN);
| }
| }
|
| }
|
Any help is really appreciated.
Thanks in advance.
- Gopi
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223463#4223463
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4223463
17 years
[Design of Messaging on JBoss (Messaging/JBoss)] - Large messages broken
by timfox
Clebert- I tried running your new large message example but increasing message size to a real "large message size".
(1MB is not large)
On 100MB it crashed:
| [java] org.jboss.jms.example.SpawnedJMSServer out:STARTED::
| [java] Sending message of 104857600 bytes
| [java] Large Message sent
| [java] 09:13:18,868 WARN @Thread-0 (group:jbm-pinger-threads-7226213) [RemotingConnectionImpl] Connection failure has been detected Did not receive pong from server, active true client true:2
| [java] 09:13:19,032 WARN @Thread-0 (group:jbm-pinger-threads-7226213) [RemotingConnectionImpl] Connection failure has been detected Did not receive pong from server, active true client true:2
| [java] org.jboss.jms.example.SpawnedJMSServer out:09:13:19,078 WARN @Thread-5 [RemotingConnectionImpl] Connection failure has been detected Netty exception:0
| [java] org.jboss.jms.example.SpawnedJMSServer out:09:13:19,078 WARN @Thread-5 [ServerSessionImpl] Client connection failed, clearing up resources for session 629fe759-20f0-11de-b197-b5595771a611
| [java] org.jboss.jms.example.SpawnedJMSServer out:09:13:19,216 WARN @Thread-5 [ServerSessionImpl] Cleared up resources for session 629fe759-20f0-11de-b197-b5595771a611
| [java] org.jboss.jms.example.SpawnedJMSServer out:09:13:35,508 INFO @Thread-1 [JBMBootstrapServer] Shutting down
| t
|
We need to be able to send messages 4GB 10GB no problem. (Sure they will take some time, but it should work).
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223424#4223424
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4223424
17 years
[Design of EJB 3.0] - Re: Getting EJBTHREE-1337 in JBoss 5.0.0.GA with each web se
by Jonas123
"cwolters" wrote : I get the warning
|
| [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from stateless bean context, it should already have been injected
|
| with each call to a deployed web service. I'm running JBoss 5.0.0.GA with JDK6.
|
| The Web Service is defined with these annotations:
| @Stateless
| | @Remote(QuoteEndpoint.class)
| | @TransactionAttribute(TransactionAttributeType.REQUIRED)
| | @WebService(serviceName = "QuoteService", endpointInterface = "services.endpoints.QuoteEndpoint")
| | @Interceptors( { LoginEndpointInterceptor.class })
| | public class QuoteEndpointImpl extends AbstractSessionBeanImpl implements QuoteEndpoint {
| |
| | @Resource
| | public SessionContext sessionContext;
| | ...}
|
| and the webservice interface:
| @WebService
| | public interface QuoteEndpoint {
| | @WebMethod
| | EquityDTO[] getSubscriptions();
| |
| | @WebMethod
| | CustomSymbolDTO[] getCustomSymbols();
| |
| | @WebMethod
| | void receiveQuotes(QuoteDTO[] quotes);
| |
| | @WebMethod
| | void receiveEquityMappings(equityMappingDTO[] equityMappingDTOs);
| | }
|
| Is something wrong with this code? Can I ignore the warning?
|
| Please remove the warning from the log if unnecessary.
Hi guys, I just came up with the same problem, is there any solution for this warning ? Why is it happening ? Although the code works I don't want to leave it that way. Please help me.
Thanks
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223413#4223413
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4223413
17 years