[jboss-user] [JBossWS] - How to make XML processeing by myself using contract first (

2007-03-12 Thread oskar.carlstedt
Hi!! After reading a lot of posts I cannot find anything that really helps me here. So, time for a question. I have my WSDL file that uses types/schema/import... to import new schema types. Now I want to create a session bean (or whatever else) that can handle this request using xml beans as

[jboss-user] [JBossWS] - Re: How to make XML processeing by myself using contract fir

2007-03-12 Thread oskar.carlstedt
Thanks a lot for a quick answer! Doing this is probably the best way for me. //Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4027380#4027380 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4027380

[jboss-user] [JBossWS] - JAX-WS, possible bug? WSDL-file must be located in WEB-INF/w

2007-03-15 Thread oskar.carlstedt
Hello!! I don't know if this is a bug or the implementation is according to the specification. Anyhow, when running a JAX-WS web service having the wsdlLocation attribute set to an http-location I get an error when parsing the schema. The wsdl has a relative schema import, so changing it to a

[jboss-user] [EJB 3.0] - Create EAR with EJB3 and JAX-WS

2007-03-15 Thread oskar.carlstedt
Hello!! I have been struggling a whole day now with this topic. Reading a lot of forum questions and tips, but I can't find a solution. Now I hope some of you can help me. I want to deploy an ear file containing a jar file that contains an EJB. The ejb jar file also contains a JAX-WS-web

[jboss-user] [JBossWS] - Re: wsconsume -- unable to resolve type definition

2007-03-15 Thread oskar.carlstedt
Hello!! This is just a guess, or more, just have it in mind. I was in a project where we had to integrate the old JBoss WS4EE with Microsoft .NET. If the wsdl is using document literal and was compatible with the WS-I Basic Profile, we succeeded, otherwise not. Best Oskar View the original

[jboss-user] [EJB 3.0] - Re: Create EAR with EJB3 and JAX-WS

2007-03-15 Thread oskar.carlstedt
You might be right! How do I configure the ear (or the ear deployer) to detect an EJB3? The contents of my ear file is as described above: | test-ear-1.0-SNAPSHOT | META-INF | jboss-app.xml | lib | ... | test-ejb-1.0-SNAPSHOT.jar | Shall i remove the

[jboss-user] [EJB 3.0] - Re: Create EAR with EJB3 and JAX-WS

2007-03-15 Thread oskar.carlstedt
After some investigations I finally found that an web service annotated bean cannot reside in a JAR-file, it must be placed in a war file. These are my thoughts right now, so the following must be applied: a EJB jar file containing my EJBs a war file containing my JAX-WS endpoint so, in maven2

[jboss-user] [EJB 3.0] - Bundle jars within EAR?

2007-03-17 Thread oskar.carlstedt
Hello!! I have tried to find a solution on my problem by reading this forum, googling for a day or two, but I can't find a good solution. My problem is EAR files containing other jar files. Deploying this file give an error telling me EJBLocal is not visible... A std. EAR file can contain a

[jboss-user] [EJB 3.0] - Re: Bundle jars within EAR?

2007-03-17 Thread oskar.carlstedt
Deploying the same file again, but without the jars log4j and commons-logging. Wolla!!, It seems to work. Isn't this a classloader bug/error? What I mean is. The files I put in my ear are those I want to use, especially in isolated mode. It shall not matter if a put a log4j jar in my ear, it

[jboss-user] [JBossWS] - Re: JAX-WS servlet initializing error during deployment of j

2007-03-17 Thread oskar.carlstedt
Hi Trivedi! Can you please give me some more of your code. Then I might help you. I have been struggeling al lot now an finally found a solution that seems to work for me. //Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029087#4029087 Reply to the

[jboss-user] [JBossWS] - WSDL-location help?

2007-03-19 Thread oskar.carlstedt
Hi all!! I just want to ask if it is a requirement to put the wsdl file in the WEB-INF/wsdl folder. I want to have my WSDL (with a lot of schema-imports) on a more common place (an http://.. url). Doing this will casue JBossWS (JBoss 4.0.5.GA and JBossWS 1.2) to fail the deployment and

[jboss-user] [EJB 3.0] - Re: Bundle jars within EAR?

2007-03-19 Thread oskar.carlstedt
I will report this in JIRA. This is even worse. If I deploy my EAR file with the log4j and commons-logging jars bundled, then I must restart JBoss to be able to deploy the new ear without my logging jars. Strange, but good for you to know. Best Oskar View the original post :

[jboss-user] [EJB 3.0] - Re: Bundle jars within EAR?

2007-03-20 Thread oskar.carlstedt
Hi All!! Thanks for all replies. I think it is very important to solve this classloader inheritance issue, especially in isolated mode. AFAIK in Apache Tomcat it is possible to override jars in the libs folder when deploying a war file. Why can't I do this in JBoss? Of course, this is an

[jboss-user] [JBossWS] - Re: WSDL-location help?

2007-03-21 Thread oskar.carlstedt
Hi! Thanks for your help. I'm sorry to say, that is not what I actually need or do. I want to have control over my contract (the WSDL-file). That is why I'm using contract first development. I have external parts using my services (contracts). Therefore generated contacts is not a good

[jboss-user] [JBossWS] - Re: How Do I See the XML?

2007-03-22 Thread oskar.carlstedt
Hi! You can always turn on TRACE debugging on the ws messages. There is an uncommented row in the JBOSS_HOME/server/default/conf/log4j.xml. Now you will see the messages in the JBOSS_HOME/server/default/log/server.log file. By default the CONSOLE-appender in log4j.xml has a threshold parameter

[jboss-user] [JBossWS] - Re: How Do I See the XML?

2007-03-22 Thread oskar.carlstedt
Sorry, the links got messed. JBossWS Handler: http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#Handler_Framework Servlet filter: http://java.sun.com/products/servlet/Filters.html //Oskar View the original post :

[jboss-user] [JBossWS] - Re: dynamic clients for JBossWS/JAX-WS endpoints

2007-03-22 Thread oskar.carlstedt
Hi! I think you have to create you own web service provider. There is a section about this in the user guide (http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#Endpoint_Provider) Doing this gives you the possibility to do whatever you want to do with your request and response -

[jboss-user] [JBossWS] - Re: dynamic clients for JBossWS/JAX-WS endpoints

2007-03-23 Thread oskar.carlstedt
Hi!! Sorry, my mistake - didn't read client. You should go for dispatch when it comes to clients. Then you have full control about everything. Best Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4030957#4030957 Reply to the post :

[jboss-user] [JBossWS] - Re: dynamic clients for JBossWS/JAX-WS endpoints

2007-03-23 Thread oskar.carlstedt
Hi again, Have a look at the dispatch section in the JBossWS user guide. here is a link with a code snippet. http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#Dispatch //Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4030960#4030960 Reply to

[jboss-user] [JBossWS] - Re: WSDL-location help?

2007-03-25 Thread oskar.carlstedt
Thanks!!! I will post this issue as a bug. //Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031470#4031470 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031470 ___

[jboss-user] [EJB 3.0] - Etity reference problems

2007-03-30 Thread oskar.carlstedt
Hi All! I have a quite strange data model, but it has it explanation. Lets say we have the following tables in my db: | | --- | | A | | --- | | Aid (pk)| | | | | --- | | | --- | | B | | --- | | Bid (pk)|

[jboss-user] [EJB 3.0] - Re: Etity reference problems

2007-04-02 Thread oskar.carlstedt
Hi! Here is the stack trace. | ... | 2007-04-02 07:57:58,337 DEBUG [org.hibernate.cfg.Configuration] processing extends queue | 2007-04-02 07:57:58,337 DEBUG [org.hibernate.cfg.Configuration] processing collection mappings | 2007-04-02 07:57:58,337 DEBUG

[jboss-user] [EJB 3.0] - Re: Etity reference problems

2007-04-03 Thread oskar.carlstedt
Thank you for helping me! I found the error I did. In my code where I assigned all objects I missed to add the B item to the list of B:s in A. Doing this resolved my problem. The following steps must be applied: 1. Create A 2. Create all B:s and add them to A 3. Create C by using A and the

[jboss-user] [EJB 3.0] - Re: Entity relationship and remove operations

2007-04-03 Thread oskar.carlstedt
Hi!! I'm not sure about this. But I think I've read that you cannot specify booth name and referenceColumn when using the JoinColumn annotation. Try to just use the name attribute. //Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4034042#4034042

[jboss-user] [EJB 3.0] - Re: NOT NULL columns with a DEFAULT

2007-04-12 Thread oskar.carlstedt
I have the same problem. Did you find any answer/solution for this? Kind regards Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4036640#4036640 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4036640

[jboss-user] [JBossWS] - Re: SOAP Message with Body of any type

2007-04-12 Thread oskar.carlstedt
Hello!! I'm not sure if I understand you right here. Take a look at writing you own endpoint provider http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#Endpoint_Provider. It may help you. Best Oskar View the original post :

[jboss-user] [EJB 3.0] - Re: NOT NULL columns with a DEFAULT

2007-04-12 Thread oskar.carlstedt
Hi!! No It is not exactly what I want. I solved everything by using inheritance and the SINGE_TABLE inheritance method. Then I could skip my property I didn't want to include. But originally, I have a database specifying the default value. This value is used by other applications too. So to

[jboss-user] [EJB 3.0] - Re: NOT NULL columns with a DEFAULT

2007-04-13 Thread oskar.carlstedt
Hi!! Dtabase columns that are not part of the used implementation (not mapped by properties in the class) are not exposed in the SQL statement to the database - which is exactly what I want (the database shall set this value, not the sql statement). Regards Oskar View the original post :

[jboss-user] [JBossWS] - Element or attribute do not match QName production: QName::=

2007-04-16 Thread oskar.carlstedt
Hello!! I'm getting a strange exception when invoking a simple client inside a stateless session bean. Everything has to do with the javax.xml.namespace.QName. I'm using xml beans which I had to modify because of an extra include of the javax.xml.namespace.QName, i.e. I have removed the

[jboss-user] [JBossWS] - Re: Element or attribute do not match QName production: QNam

2007-04-16 Thread oskar.carlstedt
... one more thing ... I'm running JBoss in isolated mode. All xmlbeans jar file are bundled in the EAR file. //Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4037474#4037474 Reply to the post :

[jboss-user] [JBossWS] - How to provide soapAction from dispatch call?

2007-04-16 Thread oskar.carlstedt
Hello! I've tried a to fix this for some hours know. Maybe I'm doing something completely wrong here. I have a web service client that that is using the dispatch technique. I will use the dispatch because I'm using xmlbeans to bind my data. Here is a little code snippet of what I'm trying to

[jboss-user] [JBossWS] - Re: Element or attribute do not match QName production: QNam

2007-04-16 Thread oskar.carlstedt
It seems like using a StreamSource instead of the DOMSource will work to get around this problem. But I can't understand why. //Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4037614#4037614 Reply to the post :

[jboss-user] [JBossWS] - Re: How to provide soapAction from dispatch call?

2007-04-17 Thread oskar.carlstedt
Does anyone know if this is a bug or related to something else. Or how do I get around this problem? I found this thread on java.net forum http://forums.java.net/jive/message.jspa?messageID=190079. Doesn't help much but it seem to be a problem in jwsdp2. Regards Oskar View the original post

[jboss-user] [JBossWS] - Re: How to provide soapAction from dispatch call?

2007-04-18 Thread oskar.carlstedt
I file this as a bug in JIRA http://jira.jboss.com/jira/browse/JBWS-1611. There is no SOAPAction http header sent to the server doing the specified way. //Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4038332#4038332 Reply to the post :

[jboss-user] [EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)

2007-04-19 Thread oskar.carlstedt
Hi!! Using EJBs here is probably not the best way to go. Doing so will cause the container to create a lot of insert statements - too many to get the performance you want. If I'm wrong here, let me know. I did something like this a couple of years ago with Oracle 8.1.6. If you don't care

[jboss-user] [EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)

2007-04-19 Thread oskar.carlstedt
... one more thing. Whater decision you make here. Make sure you are using the native Oracle driver. //Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4039023#4039023 Reply to the post :

[jboss-user] [EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)

2007-04-20 Thread oskar.carlstedt
It is possible to configure hibernate to do bulk operation. Perhaps you've already tried it? If not, take a look a http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#queryhql-bulk //Oskar View the original post :

[jboss-user] [JBossWS] - Re: setProperty must be overridden by all subclasses of SOAP

2007-04-20 Thread oskar.carlstedt
Check the manual chapter 2.2.2.4 http://docs.jboss.org/jbossas/jboss4guide/r5/html/ch2.chapter.html#d0e2648 Regards Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4039275#4039275 Reply to the post :

[jboss-user] [EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)

2007-04-20 Thread oskar.carlstedt
Hi again! What I actually mean is that normally it is better to have a few really fast computers instead of a single powerful machine. And I understand your situation, you have this machine and you wan't to use it. Do you know if there are other IO-intensive tasks running on that machine at

[jboss-user] [EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)

2007-04-20 Thread oskar.carlstedt
Hi again! Here is some information from a project I attended a couple of years ago. We operated on a Sun Starfire (Sun Enterprise 1), totally 32 cpus and 32GB RAM, our domain had 12 cpus and 12 GB RAM. A lot has hapend since then, but still, such computers are not fast when it comes to

[jboss-user] [EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)

2007-04-23 Thread oskar.carlstedt
Ok!! Having indexes will slow down an insert statement. Why? The database has to write an extra entry into an index for each insert. Depending on indexed column, this may also slow down update statements. Using transacttions is even worse. The database must write into a transaction log to be

[jboss-user] [EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)

2007-04-23 Thread oskar.carlstedt
Hi All! The intention of my last post was to explain why sequences, indexes etc. make the solution less performant. I still agree with Felix. Huge bulk operations shall be done by using the tools provided by the database, in this case a stroed procedure. //Oskar View the original post :

[jboss-user] [EJB 3.0] - Re: Problem with composite Primary key which is also a forei

2007-04-23 Thread oskar.carlstedt
Hi! The @Id annotation will annotate the primary key of your class. The parent id is not the primary key of your class, it is a foreign key, but an @Id in the parent class. Remove @Id from the parentId. If you want to use composite keys, take a look here

[jboss-user] [EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)

2007-04-23 Thread oskar.carlstedt
Ok, I nunderstand. Some questions: Do you have a constant flow of messages? Do you need synchronus responses? If not, it might be possible for you to que these requests? Is is a requirement to have the data published in the database right after you have returned a response? //Oskar View

[jboss-user] [JBossWS] - Re: jboss4.0.5 + which version of jbossws + correct document

2007-04-25 Thread oskar.carlstedt
Hello!! You shall use the latest JBossWS documentation if you are using JBossWS. You can find it here http://jbws.dyndns.org/mediawiki/index.php/Main_Page Regards Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4040547#4040547 Reply to the post :

[jboss-user] [JBossWS] - Question: How does JBossWS find the business method to invok

2007-04-26 Thread oskar.carlstedt
Hello!! This may be a stupid question. Looking into the source may answer this, but I think it is better asking you for a better answer. After looking at several WSDL files generated by JBossWS (also the samples in the JBossWS distro) where document/literal is used but no soap action is

[jboss-user] [EJB 3.0] - Re: ejb-jar.xml a clear definition for EJB3

2007-05-03 Thread oskar.carlstedt
Hello! No, in general you don't need the ejb-jar.xml. You can include the ejb-jar.xml file if you intend to override settings from given annotations. But in generel, you don't need it. What you need to do is: Create a JAR-file with the ejb:s you want to deploy. This file must also include a

[jboss-user] [EJB 3.0] - Re: ejb-jar.xml a clear definition for EJB3

2007-05-03 Thread oskar.carlstedt
Oooppss.. One more thing I forgot. If you don't provide the ejb-jar.xml file, JBoss will deploy your ejbs as: NAME-OF-EAR-FILE/BEAN-CLASS-NAME/Local or NAME-OF-EAR-FILE/BEAN-CLASS-NAME/Remote. In the example above you will get something like: /my-service/MyBean/Local or /my-service/MyBean/

[jboss-user] [EJB 3.0] - Re: HQL/ JPA-QL Query Tuning: How to enforce the join order

2007-05-04 Thread oskar.carlstedt
anonymous wrote : This is just sick disgusting rubbish! Who ever invented that stuff - fire him! | No, sorry, this is not sick disgusting rubbish. As a matter of fact, the join order is of importance for many databases. One can think that a databse's execution planner should fix this, but

[jboss-user] [EJB 3.0] - @EmbeddedId vs. @IdClass - when shall I use what?

2007-05-04 Thread oskar.carlstedt
Hi all! Can anyone explain the difference between the two annotations @IdClass/@Id and @Embeddable/@EmbeddableId. When shall I use @IdClass and when shall I use @EmbeddedId? Does anyone of you have a good answer to this? I would really appreciate your help to make me understand what decision

[jboss-user] [EJB 3.0] - Re: Joined Subclass Inheritance Strategy Problem

2007-05-07 Thread oskar.carlstedt
Hello!! I'm not sure if this is what you are asking for. Take a look at the following post http://www.jboss.com/index.html?module=bbop=viewtopict=83732. It might handle what you are looking for, but in a persistent way instead of querying. With kind regards Oskar View the original post :

[jboss-user] [EJB 3.0] - Re: what´s the er ror

2007-05-07 Thread oskar.carlstedt
Are you sure you want to use Double as you id type. Normally databases are using integers for ids. Try to use Long ,or Integer if you can gurarantee that you won't exceed the max int value, instead? With kind regards Oskar View the original post :

[jboss-user] [EJB 3.0] - Re: what´s the er ror

2007-05-07 Thread oskar.carlstedt
Good work! Sometimes it is hard for JBoss to find a good error message. When you specify the column annotation, JBoss tries to save/serialize the object into that column, no matter of what type it is. So in this case, JBoss finds the UsuarioEJB and then i tries to save it into the column

[jboss-user] [JBossWS] - Re: how to deal with unicode

2007-05-09 Thread oskar.carlstedt
Hi! It looks like you have a space between the - and D character in -Dfile.encoding... //Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044366#4044366 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044366

[jboss-user] [EJB 3.0] - Re: EJB3 and jndi error.

2007-05-10 Thread oskar.carlstedt
Hi! Take a look in the jmx console/jndi view to see under what name you ejb is bound. For me it looks like you forgot a slash right after the java:. With kind regards Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044591#4044591 Reply to the post :

[jboss-user] [JBossWS] - Re: creating new targetnamespace for complex types

2007-05-15 Thread oskar.carlstedt
Hi! I think this sounds terrible for you, but you probably have to start working in the other direction. If you want to ensure your contract (the wsdl file) is changed in the way you want, then you must start with taking control over it, i.e. develop it by yourself. What I'm saying - take full

[jboss-user] [JBossWS] - Re: wstools error from WSDL to Java

2007-05-22 Thread oskar.carlstedt
Hello!! You shall use forward slashes instead of the backslash in the windows path, i.e. change C:\test\HEBService_Full_.wsdl to C:/test/HEBService_Full_.wsdl Kind Regards Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4047442#4047442 Reply to the post

[jboss-user] [JBossWS] - Re: javax.xml.rpc.JAXRPCException: Cannot obtain operation m

2007-06-04 Thread oskar.carlstedt
Hi! I read another thread on this forum having the same problem. It sounds that the SOAPAction http header is not set. Can you try to invoke the service by using SoapUI http://www.soapui.org, or enable the RequestDumperValve in tomcat's service.xml

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - War inside ear, where to place taglib jars?

2007-06-04 Thread oskar.carlstedt
Hi all! I've been struggling a lot with a problem I didn't expect do face at all. What I try to do is to create a web application using Servlet 2.4, JSTL and Spring. This is OK in Tomcat. But creating an ear file and place all dependent jar in the ear instead of the war will make JBoss (read

[jboss-user] [JBossWS] - Re: change HTTP status code in a WS fault

2007-06-20 Thread oskar.carlstedt
Hi All! I'm not sure if this works, but an idéa might be to implement a simple servlet filter that you put in front of the servlet. The filter will then invoke the http request, check the response code and change it if necessary. A normal servlet has a filter chain, and I think you can

[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-27 Thread oskar.carlstedt
Hi! It seems like JBoss can't find your datasource. It also looks like you are using toplink, are you? The example bellow is for the normal JBoss EJB3 (on top of Hibernate). Anyway, the configuration shall still be the same (please correct me if I'm wrong) except some of the properties in

[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-27 Thread oskar.carlstedt
Sorry, now thing got messed up here. We take the examples once again. Look at the JNDI-names. These got messed in the previous post. //Oskar persistence.xml | persistence xmlns=http://java.sun.com/xml/ns/persistence; | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; |

[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-27 Thread oskar.carlstedt
Hi! The datasource file has its own deployment, so this file shall be put directly in the deploy folder. When doing this you'll see JBoss deploying the ds file. After the deloyment (takes a second or two) you can find the deployed datasource in the jmx-console

[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-28 Thread oskar.carlstedt
Hello again! If your datasource is correctly deployed, then I don't know. It might be a TopLink issue. This is the way to deploy a EJB3 jar file and connect it to a datasource. When using EJB3 and JPA you are not using Hibernate directly. You are using JPA, which JBoss in turn maps to

[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-28 Thread oskar.carlstedt
Hi again! Good news! Take a look at this post on another forum http://forums.oracle.com/forums/thread.jspa?threadID=244914 //Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4058577#4058577 Reply to the post :

[jboss-user] [JBossWS] - Re: wsdl based web-service (like a paypal simulator)?

2007-10-09 Thread oskar.carlstedt
Hi! The WSDL file imports two XML-schemas that create a circular reference. A good point would be to ask them to change their design. The wsdl file at https://www.sandbox.paypal.com/wsdl/PayPalSvc.wsdl imports two xml-schemas: | import namespace=urn:ebay:apis:CoreComponentTypes

[jboss-user] [JBossWS] - Re: wsdl based web-service (like a paypal simulator)?

2007-10-09 Thread oskar.carlstedt
Hello! As I said before, this is probably due to the circular schema imports. JBoss will try to load the first schema (CoreComponentTypes.xsd). While scanning this schema JBoss will find the schema import for the 2:nd schema (eBLBaseComponents.xsd). While scanning this 2:nd schema JBoss will

[jboss-user] [EJB 3.0] - Re: How to connect multiple databases at same time?

2007-10-12 Thread oskar.carlstedt
Hello! AFAIK the whole idea with JPA is to have one data source per ejb-jar-file (but I might have misunderstood everything). If you need to persist data into several schemas you have to create a super/delegating ejb that will lookup the correct ejb to use for persistence. So, you have to

[jboss-user] [JBossWS] - Re: Multithreading in Jboss 4.0.1

2007-10-18 Thread oskar.carlstedt
Hi! The most correct way to do this is to write your own MBean/Service. AFAIK threads are not allowed inside an EJB (some application servers will allow threads in the EJB). So writing your own MBean that will take care of multithreading might solve your problem. Creating MBeans is about

[jboss-user] [JBossWS] - Re: JBOSS Webservice Thai Language

2007-10-18 Thread oskar.carlstedt
Hi! You have to set the encoding to UTF-8 (default is ISO-8859). I'm not sure if there is any other way right now than setting the file.encoding parameter to UTF-8. So add -Dfile.encoding=UTF-8 to your JAVA_OPTS when starting JBoss. Good luck! /Oskar View the original post :

[jboss-user] [JBossWS] - Re: Deployed service statistics

2007-10-22 Thread oskar.carlstedt
Hi! Just take a look in the source code for the jbossws web application and you´re up and running. It's really simple when you find the correct source. Anyway, here is a code snippet ... | // get SPI provider and endpoint registry | SPIProvider spiProvider =

[jboss-user] [JBossWS] - Re: JBoss and Apache Axis compatibility

2007-10-23 Thread oskar.carlstedt
Hi! If you are creating contract first web services, there should be no problem at all. If you are generating your contract you can get into trouble. So stick to contract first and generate booth service implementation and client usage from the contract to be on the safe side. Regards Oskar

[jboss-user] [JBossWS] - Re: Deployed service statistics

2007-10-23 Thread oskar.carlstedt
Hi! http://repository.jboss.org/maven2/jboss/jbossws-spi/1.0.0.GA/jbossws-spi-1.0.0.GA.jar //Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4097904#4097904 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4097904

[jboss-user] [EJB 3.0] - Re: How to start a session bean as soon as it is deployed

2008-02-03 Thread oskar.carlstedt
Hi All! Important to know. An ejb is NOT started just because it is deployed. It is just available to a client through the application server. There is no method invoked on an ejb during or just after the deploy. Ok, there are ways to go around this. Add a service to your ejb that is invoking

[jboss-user] [JBossWS] - Re: reading a local properties file

2008-02-03 Thread oskar.carlstedt
Hello! This is the way to go. Never add a properties-file in the WEB-INF folder. A better place is on the classpath, i.e. in the WEB-INF/classes directory. Then you can access this file with the following command: |

[jboss-user] [EJB 3.0] - Re: Detect client disconnection

2008-02-03 Thread oskar.carlstedt
Hello! Unfortunately there are no safe functions in javascript to detect when the browser window is closed. For me it sounds better to grab the output stream from the response and check it in a separate thread while the session bean is executing. I think you can write an empty/blank character

[jboss-user] [JBossWS] - Re: SOAPElement as input param

2008-02-06 Thread oskar.carlstedt
Hi! Just use a javax.xml.ws.Provider SOAPElement provider. You create a class that implements the Provider interface. You'll get something like: | @Local | @Stateless | @WebServiceProvider( | serviceName = ..., | portName = ..., | targetNamespace = ..., |

[jboss-user] [JBossWS] - MTOM using javax.xml.ws.Provider?

2008-02-06 Thread oskar.carlstedt
Hello! Is it possible to implement MTOM when using the javax.xml.ws.Provider SOAPMessage ? Does any of you have a simple example. Best regards /Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4127174#4127174 Reply to the post :

[jboss-user] [JBossWS] - Re: Specifying the server's URL in the client?

2008-02-12 Thread oskar.carlstedt
Hi! You can always set the url in the service object when adding the port, like the following: | Service service = Service.create(new QName(..., ...)); | service.addPort(new QName(..., ...), SOAPBinding.SOAP11HTTP_BINDING, http://service.location/at/some/context;); | dispatch =

[jboss-user] [JBossWS] - Re: Specifying the server's URL in the client?

2008-02-13 Thread oskar.carlstedt
Hi! Attachments are a tricky part. The simplest way to do is to add your attachment as a base64binary in your schema, but that is not what you always want to do. I've been asking a lot about how to use MTOM on a SOAPMessage, but I didn't get any response at all. To answer your question about

[jboss-user] [JBossWS] - Re: Specifying the server's URL in the client?

2008-02-13 Thread oskar.carlstedt
Sorry! Didn't get it all. I think this thread would give you answers about how to do handle attachments in the way you want. http://www.jboss.com/index.html?module=bbop=viewtopict=124280 /Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4129309#4129309

[jboss-user] [JBossWS] - Re: out parameter

2008-02-21 Thread oskar.carlstedt
Hi! In such cases you have to return the new state to the client in form av a returned object. So you cannot have this method as a void method. Cheers /Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4131113#4131113 Reply to the post :

[jboss-user] [JBossWS] - Re: out parameter

2008-02-26 Thread oskar.carlstedt
Hi again! Now I look at all these parts on a communication level. There might be a feature in JAXB to do all this state synchronization without your/my knowledge. I don't know. But the concept of web services does not support this kind of void feature where you change a value in your method

[jboss-user] [JBossWS] - Re: jdk 1.6, jbossws 2.0.1 and jboss as 4.2.2.ga

2008-02-28 Thread oskar.carlstedt
Hi All! Downgrade your JVM and your problem shall be gone. It has to do with the SOAP-implementation (SAAJ). I think you can switch SAAJ-implementation by adding a newer saajImpl.jar file to the $JBOSS_HOME/lib/endorsed directory. I'm not sure about the last part about SAAJ but it is a known

[jboss-user] [Security JAAS/JBoss] - How to design multi language SOA security?

2008-01-07 Thread oskar.carlstedt
Hello all!! I'm writing this into the JBoss security forum because I can't find any better place to put it. I hope I will get some good answers or at least good advices of how to implement a security model in a multi language SOA environment. I have an environment where we have some Perl

[jboss-user] [EJB 3.0] - Re: Sequence Generator Question

2008-01-28 Thread oskar.carlstedt
Hi Kasim! Sequenzes are not hibernate specific stuff. Instead sequences are database specific counters. Oracle are using sequnces, but MsSQL, MySQL, etc. are using identity mappings. If you are using MySQL you probably use an auto_increment to get the same feature as an Oracle sequence.

[jboss-user] [EJB 3.0] - Re: @GeneratedValue(strategy=GenerationType.AUTO) for oracle

2008-07-15 Thread oskar.carlstedt
Hi! I haven not read all posts but I know the following works with Oracle. 1. Annotate your entity with @Entity as normal. 2. Annotate your ID column with @Id. @GeneratedValue(strategy=GenerattionType.AUTO, generator=seqMyObject), @SequenceGenerator(name=seqMyObject,

[jboss-user] [JBossWS] - How di I get detail in SOAPFault

2007-09-04 Thread oskar.carlstedt
Hello! I can't get the detail element of the SOAPFault. Is there a magic way to do this. I have a Provider SOAPMessage implementation. When I do the following ... | @Local | @Stateless | @WebServiceProvider( | serviceName = MyService, | portName =

[jboss-user] [JBossWS] - Re: How di I get detail in SOAPFault

2007-09-04 Thread oskar.carlstedt
The response I get from JBoss is: | env:Envelope xmlns:env=http://schemas.xmlsoap.org/soap/envelope/; |env:Header/ |env:Body | env:Fault | faultcode xmlns:codeNS=http://schemas.xmlsoap.org/soap/envelope/;codeNS:Server/faultcode |

[jboss-user] [JBossWS] - Re: How di I get detail in SOAPFault

2007-09-05 Thread oskar.carlstedt
... and I was expecting something like | env:Envelope xmlns:env=http://schemas.xmlsoap.org/soap/envelope/; |env:Header/ |env:Body | env:Fault | faultcode xmlns:codeNS=http://schemas.xmlsoap.org/soap/envelope/;codeNS:Server/faultcode |

[jboss-user] [JBossWS] - Re: Sample application

2007-09-12 Thread oskar.carlstedt
Hello! There are several examples in the JBossWS-distribution. Just download the normal distribution (src distribution is not required). The distribution zip file contains another zip file with lots of examples about how to do what in what situation. Build the examples, deploy them into JBoss

[jboss-user] [EJB 3.0] - Re: JTA EntityManager cannot access a transactions

2007-09-19 Thread oskar.carlstedt
Hello! I'm not sure , but if I look at your code you instantiate the em by yourself. Examples I've seen do not do that, they leave that part to JBoss, like the following code. Are you sure you get the correct entity manager? | | @Stateless |

[jboss-user] [EJB 3.0] - How do I invoke a method just after an ear-deploy?

2007-09-26 Thread oskar.carlstedt
Hello! Does any of you out there know how to invoke an ejb3 method just after deploy of the ear file? (i.e. not the @PostConstruct, @PostActivate because these methods are called once per ejb instance). There is a way to use an mbean and do something in the start method. But for me this is

[jboss-user] [EJB 3.0] - Re: How do I invoke a method just after an ear-deploy?

2007-09-27 Thread oskar.carlstedt
Thank you all for quick replies. I tried the service annotoation as describen in the ejb tutorial. I think it must be the simplest way to go by simply adding the @Service-annotation. Doing is will make the deployment to fail in JBoss 4.2.1.GA also having JBossWS 2.0.1.GA installed. I get the

[jboss-user] [EJB 3.0] - Can't load @Service in JBoss 4.2.1

2007-09-28 Thread oskar.carlstedt
Hello! I asked this question in an earlier thread (http://www.jboss.com/index.html?module=bbop=viewtopict=119784), but it is another topic so a new thread i better. So, the problem is when I deploy a simple POJO annotated @Service inside an ear-file. My implementation is as follows:

[jboss-user] [EJB 3.0] - Re: How do I invoke a method just after an ear-deploy?

2007-09-28 Thread oskar.carlstedt
I started a new thread for this last question. Please see http://www.jboss.com/index.html?module=bbop=viewtopicp=4089721#4089721 Best Regards Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4089732#4089732 Reply to the post :

[jboss-user] [JBossWS] - Re: SOAPMessage error: setProperty must be overridden by all

2007-09-28 Thread oskar.carlstedt
Hi! This is probably because you are running JBoss with Java SE 1.6. The SOAP implementation is bundled in the std Java 1.6 distribution. That is probably why you can't find the specified jar on your harddrive. Cheers, Oskar View the original post :

[jboss-user] [JBossWS] - Re: SOAPMessage error: setProperty must be overridden by all

2007-09-28 Thread oskar.carlstedt
Hi! Everything I know is that the javax.xml.soap... implementations are found in the $JRE_HOME/lib/rt.jar ($JDK_HOME/jre/lib/rt.jar). If you want to override these implementation then you must place the correct jar files in the endorsed folder. You can read more about the Java Endorsed

[jboss-user] [EJB 3.0] - Re: Can't load @Service in JBoss 4.2.1

2007-09-28 Thread oskar.carlstedt
It fixed the problem. I had bundled the jboss-annotations-3.0.jar file to my ear file (didn't set the scope of the above jar to provided in my maven project). So my mistake. Removing that jar file from the ear solved my problem. Thanks for all help! /Oskar View the original post :

[jboss-user] [JBossWS] - Re: Installation fails on JBOSS 4.0.4.

2007-10-02 Thread oskar.carlstedt
JBossWS 1.2.1.GA and above are made for JBoss 4.0.5.GA and above. anonymous wrote : Currently, we have integration layers for the JBossAS-5.0, JBossAS-4.2, JBossAS-4.0.5 and above. See http://jbws.dyndns.org/mediawiki/index.php?title=Install_JBossWS for more information about this. Regards

  1   2   >