[JBoss-user] [JBossWS] - Re: Need help debugging web service deployment

2006-04-06 Thread fss
This should work!


  | ...
  | JAXBContext jaxbContext =JAXBContext.newInstance(...);
  | Marshaller m = jaxbContext.createMarshaller();
  | m.setProperty(Marshaller.JAXB_ENCODING, UTF-8);
  | 
  | DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
  | Document doc = dbf.newDocumentBuilder().newDocument();
  | 
  | m.marshal(_o, doc);
  | 
  | SOAPMessage message = MessageFactory.newInstance().createMessage();
  | SOAPBody body = message.getSOAPPart().getEnvelope().getBody();
  | element = body.addDocument(doc);
  | 
  | 



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3935429#3935429

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3935429


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - web-console Invocation Statistics

2006-03-24 Thread fss
Hi,

with the web-console you can view all Invocation Statistics+Bean Statistics of 
all deployed ejb's. Is there a way to store this statistics to a log file at 
servershutdown?  

thanx florian

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3932409#3932409

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3932409


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: No reference get from JSP client while accessing webserv

2006-03-15 Thread fss
Show your deployed ejb-jar.xml+jboss.xml!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3930299#3930299

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3930299


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: No reference get from JSP client while accessing webserv

2006-03-15 Thread fss
try

cntxt = new InitialContext();
  | ref= cntxt.lookup(Example); 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3930357#3930357

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3930357


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Problem with wsdl

2006-03-08 Thread fss
Hi Emmanuel,

you can control the address location in the file 
.../deploy/jboss-ws4ee.sar/META-INF/jboss-service.xml - 

mbean code=org.jboss.webservice.AxisService
  | name=jboss.ws4ee:service=AxisService ...

, Flo

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3928697#3928697

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3928697


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: problems generating WebService stuff with wscompile Ant

2006-03-08 Thread fss
Post your build.xml!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3928701#3928701

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3928701


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Context-root for EJB service-endpoint

2006-02-27 Thread fss
Hi Kristof,

you can set the context-root in the jboss.xml.

?xml version=1.0 encoding=UTF-8?
  | !DOCTYPE jboss PUBLIC
  |   -//JBoss//DTD JBOSS 4.0//EN
  |   http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd;
  | 
  | jboss
  | enterprise-beans
  | session
  | ejb-nameYourBean/ejb-name
  | jndi-nameejb/YourBean/jndi-name
  |port-component
  | port-component-nameYourBean/port-component-name
  | port-component-uriyour-context-root/*/port-component-uri
  | /port-component   
  | /session
  | /enterprise-beans
  | /jboss

,Florian

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3926549#3926549

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3926549


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - JAXRPC Handler

2006-01-19 Thread fss
Hi,

I have a problem with following jaxrpc-Handler. 


public class RequestLogHandler extends GenericHandler
  | {
  | private static final Logger logger = 
Logger.getLogger(RequestLogHandler.class);
  | 
  | private SOAPMessage request;
  | 
  | public RequestLogHandler()
  | {
  | 
  | }
  | 
  | 
  | public QName[] getHeaders()
  | {
  | return new QName[0];
  | }
  | 
  | public boolean handleResponse(MessageContext msgContext)
  | {
  | ByteArrayOutputStream outRequest = null;
  | 
  | try
  | {
  | SOAPMessageContext scontext = (SOAPMessageContext) msgContext;
  | SOAPMessage response = scontext.getMessage();
  | 
  | outRequest = new ByteArrayOutputStream();
  | 
  | this.request.writeTo(outRequest);
  | response.writeTo(outRequest);
  | 
  | logger.info(outRequest);
  | outRequest.close();
  | }
  | catch (Exception e)
  | {
  | System.out.println(...);
  | }
  | 
  | return true;
  | }
  | 
  | public boolean handleFault(MessageContext msgContext)
  | {
  | ByteArrayOutputStream outRequest = null;
  | 
  | try
  | {
  | SOAPMessageContext scontext = (SOAPMessageContext) msgContext;
  | SOAPMessage response = scontext.getMessage();
  | 
  | outRequest = new ByteArrayOutputStream();
  | 
  | this.request.writeTo(outRequest);
  | response.writeTo(outRequest);
  | 
  | logger.info(outRequest);
  | outRequest.close();
  | }
  | catch (Exception e)
  | {
  | System.out.println(...);
  | }
  | 
  | 
  | return true;
  | }
  | 
  | public boolean handleRequest(MessageContext msgContext)
  | {
  | SOAPMessageContext scontext = (SOAPMessageContext) msgContext;
  | this.request = scontext.getMessage();
  | 
  | return true;
  | }
  | }
  | 

This handler should log all request-response-pairs to a log4j-Logger. When 
response is not a fault, than everthing works fine. 
When the response is a fault-message then the logger doesn't log the fault 
response. It logs the request 2-times. 

In the function handleFault the call
SOAPMessageContext scontext = (SOAPMessageContext) msgContext;
  | SOAPMessage response = scontext.getMessage();
seems to return the request not the fault Message.

Is this OK?

thanx Florian

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3918335#3918335

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3918335


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - CMP - default sysdate

2005-08-16 Thread fss
Hi,

i have a cmp entity bean for one simple table tab_test (oracle9i).

CREATE TABLE TAB_TEST(
  |   ID   NUMBER NULL,
  |   INSERT_DATE  DATE  DEFAULT sysdate   NOT NULL
  | );
  | 
  | ALTER TABLE TAB_TEST ADD (
  |   PRIMARY KEY (ID));
  | 

The field insert_date has sysdate as default and could be autogenerated from 
the database. I tried to create a new entry, but I got the following error:


13:19:22,698 INFO  [STDOUT] javax.ejb.CreateException: Could not create 
entity:java.sql.SQLException: ORA-01400: cannot insert NULL into 
(TEST.TAB_TEST.INSERT_DATE)

I can only find articles about autogenerated primary keys! But the field 
Insert_date is not a primary key??

Any suggestion?

Thanx

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3890166#3890166

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3890166


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Help: Webservice ejb-endpoint + jaxb

2005-08-03 Thread fss
I created a doc/lit webservice as sessionbean endpoint!

I processed following steps:

1. I created the xsd-schema-files for the requests and responses

schema:

  | ...
  | xs:element name=ReadRS
  | xs:complexType
  | xs:choice
  | xs:sequence
  | xs:element name=Success type=SuccessType/
  | /xs:sequence
  | xs:element name=Errors type=ErrorsType/
  | /xs:choice
  | /xs:complexType
  | /xs:element
  | ...


2. I created the wsdl-file

3. wscompile with -f:documentliteral und -f:nodatabinding to create the SEI
SEI:
  | ...
  | public javax.xml.soap.SOAPElement ReadRQ(javax.xml.soap.SOAPElement rq) 
  | throws java.rmi.RemoteException;
  | ...


4. xjc on the xsd-files to get the jaxb-databindings

5. create and deploy the bean on jboss (no errors)
Sessionbean (service endpoint):
import java.rmi.RemoteException;
  | 
  | import javax.ejb.SessionBean;
  | import javax.ejb.SessionContext;
  | import javax.xml.bind.JAXBContext;
  | import javax.xml.bind.Marshaller;
  | import javax.xml.bind.Validator;
  | import javax.xml.soap.SOAPElement;
  | import javax.xml.soap.SOAPFactory;
  | import javax.xml.transform.dom.DOMResult;
  | 
  | import de.test.ws.vo.jaxb.ReadRS;
  | import de.test.ws.vo.jaxb.ObjectFactory;
  | .
  | .
  | .
  | 
  | public SOAPElement ReadRQ(SOAPElement rq) throws RemoteException
  | {
  | SOAPElement response_ret = null;
  | 
  | try
  | {
  | ObjectFactory objFactory = new ObjectFactory();
  | 
  | JAXBContext jc = JAXBContext.newInstance(de.test.ws.vo.jaxb);
  | 
  | .
  | .
  | .
  | 
  | Marshaller m = jc.createMarshaller();
  | 
  | ReadRS response = objFactory.createReadRS();
  | 
  | response.setSuccess(...);
  | .
  | .
  | .
  | 
  | SOAPFactory factory = SOAPFactory.newInstance();
  | SOAPElement parent = factory.createElement(dummy);
  | // this produces the error
  | m.marshal(response, new DOMResult(parent)); 
  | // this produces the error
  | 
  | response_ret = (SOAPElement) parent.getChildElements().next();
  | }
  | catch(Exception e)
  | {
  | e.printStackTrace();
  | }
  | 
  | return response_ret;
  | }




The Problem:
Everthing works fine! The Sessionbean could unmarshall the Soapelement with 
jaxb. Then I processed the Object and wanted to marshall the Object - 
Soapelement. This produced the following error:

Stacktrace:
anonymous wrote : 2005-08-03 13:41:37,477 DEBUG 
[org.jboss.webservice.server.InvokerProviderEJB] makeNewServiceObject: 
class=de.test.ws.vo.TestWS_PortType
  | 2005-08-03 13:41:37,477 DEBUG 
[org.jboss.webservice.server.InvokerProviderEJB] Invoke EJB: public abstract 
javax.xml.soap.SOAPElement 
de.test.ws.vo.TestWS_PortType.ReadRQ(javax.xml.soap.SOAPElement) throws 
java.rmi.RemoteException
  | 2005-08-03 13:41:37,477 DEBUG 
[org.jboss.webservice.handler.HandlerChainBaseImpl] Enter: doHandleRequest
  | 2005-08-03 13:41:37,477 DEBUG 
[org.jboss.webservice.handler.HandlerChainBaseImpl] Exit: doHandleRequest with 
status: true
  | 2005-08-03 13:42:21,753 INFO  [STDOUT] java.lang.NullPointerException
  | 2005-08-03 13:42:21,816 INFO  [STDOUT]  at 
com.sun.xml.bind.marshaller.SAX2DOMEx.startElement(SAX2DOMEx.java:94)
  | 2005-08-03 13:42:21,816 INFO  [STDOUT]  at 
de.test.ws.vo.jaxb.impl.runtime.SAXMarshaller.endAttributes(SAXMarshaller.java:184)
  | 2005-08-03 13:42:21,831 INFO  [STDOUT]  at 
de.test.ws.vo.jaxb.impl.ReadRSImpl.serializeBody(ReadRSImpl.java:42)
  | 2005-08-03 13:42:21,831 INFO  [STDOUT]  at 
de.test.ws.vo.jaxb.impl.runtime.SAXMarshaller.childAsBody(SAXMarshaller.java:391)
  | 2005-08-03 13:42:21,831 INFO  [STDOUT]  at 
de.test.ws.vo.jaxb.impl.runtime.MarshallerImpl.write(MarshallerImpl.java:171)
  | 2005-08-03 13:42:21,831 INFO  [STDOUT]  at 
de.test.ws.vo.jaxb.impl.runtime.MarshallerImpl.marshal(MarshallerImpl.java:111)
  | 2005-08-03 13:42:21,831 INFO  [STDOUT]  at 
de.test.ws.bo.TestWSBean.ReadRQ(TestWSBean.java:128)
  | 2005-08-03 13:42:21,847 INFO  [STDOUT]  at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 2005-08-03 13:42:21,847 INFO  [STDOUT]  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 2005-08-03 13:42:21,847 INFO  [STDOUT]  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 2005-08-03 13:42:21,847 INFO  [STDOUT]  at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 2005-08-03 13:42:21,847 INFO  [STDOUT]  at