[jboss-user] [EJB 3.0 Users] - Store multiple persistence units in one entity manager facto

2009-12-11 Thread newmanw10
I am a little confused so please bear with me.

I have two persistence units myPU1 and myPU2.  Each is defined in a separate 
jar file.  I want to get both of these persistence units into JNDI.

I also want both persistence units in the same entity manager factory (if that 
is possible)

I know that I have to use one of the following properties in my persistence.xml 
but I am not sure which or if I need both:

  | 
  | http://java.sun.com/xml/ns/persistence";
  | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  | xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
  | http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd";
  | version="1.0">
  | 
  | 
  | java:myDS  
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

I have another file that is identical except for the persistence unit name 
(myPU2).   Can I bind both of those to the same factory?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4270294#4270294

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4270294
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Web Services Users] - Re: cus tom fault mapping with jax-rpc‏

2009-11-17 Thread newmanw10
I did finally figure out what my problem was.

Are you using wscompile to generate your jax-rpc mapping file?

If so that is your problem!  I am not sure if wscompile is generating the xml 
incorrectly or if jboss does not parse wscompile's generated mapping file 
correctly.

The solution is to use wstools (which is a jboss tool).  You can find some 
information on wstools on the web but you will have to look as jboss and the 
community do not support it anymore.  Which also means that if you try and look 
for the documentation for wstools on jboss.org you will not find it.  Which is 
stupid because they still deliver this tool with 4.2.3.GA which is used a ton 
in industry.  So why not still have the wstools docs out there?

Enough ranting I guess.  All I did was use wstools to generate my mapping file, 
I still used wscompile to generate all other artifacts.  After that all was 
well I as able to deploy my service and catch a custom wsdl fault/exception on 
the client side.  Looking at the two mapping files they are different I just 
don't know if this is a jboss bug or wscompile bug.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266151#4266151

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266151
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Web Services Users] - custom fa ult mapping with jax-rpc‏

2009-10-30 Thread newmanw10
Sorry posted this in the CXF forum, this is probably a better place.  Not sure 
how to remove the CXF post on this subject.

I am currently working on an old legacy system that is using jax-rpc.  I would 
like to add in some custom faults such that I can inform clients better.  I.E. 
I can throw custom exceptions/faults such that the user can catch them to 
determine the best course of action.  However using JBoss I have not been able 
to get this to work.  The main problem is that in the SOAP message that comes 
back there is no  tag.  This tag is how the exception would get deserialized on 
the client, so without that tag the client will have no idea what 
exception/fault was thrown.

Has anyone every gotten a custom fault to work with JBoss?  My guess is no as I 
have not been able to find out anything on this problem.

I am running 4.2.3.GA and out of the box is has jbossws-native-3.0.1, I also 
installed jbossws-native-3.1.1.GA to see if it fixed the problem but I was 
still out of luck.  Please help I am all out of ideas!  Below are some code 
snippets to show what I am talking about.  If you need more please let me know.

I took a simple example jax-rpc HelloWord service from the java tutorial 
section and added a fault to the wsdl.

Here is a snippet:

  |   
  | 
  |   
  |   
  | 
  | 
  |   
  | 

I generated the jax-rpc classes:
 
Here is the fault/exception generated:

  | public class SayHelloException extends java.lang.Exception {
  | private java.lang.String message;
  |
  |
  | public SayHelloException(java.lang.String message) {
  | super(message);
  | this.message = message;
  | }
  |
  | public java.lang.String getMessage() {
  | return message;
  | }
  | }
  | 

Here is the endpoint interface:

  | public interface HelloIF extends java.rmi.Remote {
  | public java.lang.String sayHello(boolean string_1) throws
  | samples.webservices.jaxrpc.simple.SayHelloException,  
java.rmi.RemoteException;
  | }
  | 

I also creating the jax-rpc mapping file and deployed with the war in the 
web-inf directory as well as my webservices.xml and web.xml.

At this point I am not sure why jboss is not creating the  tag in the SOAP 
message that gets sent back to the server.

Here is how I throw the custom exception on the server:

  | throw new SayHelloException("Throwing custom exception/fault from WS");
  | 

Here is my client:

  |   try {
  |   Stub stub = (Stub) port;
  |   stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY, 
"http://localhost:8080/hello/simple";);
  |   String result = port.sayHello(true);
  |   System.out.println(result);
  |   } catch (SayHelloException ex) {
  |   System.out.println("PASS! caught a custom exception");
  |   } catch (RemoteException ex) {
  |   } catch (Exception ex) {
  |   System.out.println("FAIL! caught a Exception");
  |   }
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263201#4263201

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263201
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Web Services Users] - How to use jbossws-native

2009-10-29 Thread newmanw10
I have some problems with my legacy  jax-rpc web services and  I have been 
informed that it is probably because I need to use jbossws-native for my 
jax-rpc stuff.

I am running 4.2.3.GA out of the box, so I assume that I need to get the 
jbossws-native and put it somewhere in my jboss.

Anyone now exactly what I need to do?

Thanks!

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263023#4263023

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263023
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Web Services Users] - Use JAX-RPC in 4.2.3.GA

2009-10-06 Thread newmanw10
Does anyone know which system properties I need to set to use JAX-RPC in jboss 
4.2.3.

I don't want to use the jboss.ws stuff that comes with JBoss I want to use teh 
sun libs.  I have the libs in the correct path but I am not sure of all the 
System properties I need to set to get this to work correclty.

i.e.
-Djavax.xml.soap.MessageFactory=com.sun.xml.messaging.saaj.soap.ver1_2.SOAPMessageFactory1_2Impl
-Djavax.xml.soap.MetaFactory=com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl
-Djavax.xml.soap.SOAPFactory=com.sun.xml.messaging.saaj.soap.ver1_2.SOAPFactory1_2Impl

When I do this I get:
java.lang.ClassCastException: 
com.sun.xml.messaging.saaj.soap.ver1_1.Envelope1_1Impl
at org.jboss.ws.core.soap.SOAPEnvelopeImpl

So it is still going into the jboss stuff instead of the jax-rpc stuff.  Any 
ideas?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258971#4258971

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258971
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Web Services Users] - How do I catch a user define exception on the client (SOAP/J

2009-10-02 Thread newmanw10
Seems like I am following the spec correctly and JAX-RPC is generating the 
exception class correctly (I think), but I still cannot get this to work.  I am 
wondering if there is something configuration wise that I need to setup in 
JBoss to get the correct exception back on the client side.

I have a user defined exception:

  | 
  | 
  | 
  | 
  | .
  | .
  | 
  |   
  |   
  |   
  | 
  | 

This generates the following code for the exception:
   
  | public class TestException extends java.lang.Exception {
  |   private java.lang.String message;
  | 
  |   public TestException(java.lang.String message) {
  | super(message);
  | this.message = message;
  |   }
  | 
  |   public String getMessage() {
  | return message;
  |   }
  | }
  | 

When I throw this exception on the server side things look ok.  However on the 
client side I catch a SOAPFaultException instead of my TestException.  Has 
anyone successfully defined an exception and caught that exception on the 
client side?

Thanks,
Billy

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258421#4258421

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258421
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Web Services Users] - How do I catch a user define exception on the client (SOAP/J

2009-10-02 Thread newmanw10
Seems like I am following the spec correctly and JAX-RPC is generating the 
exception class correctly (I think), but I still cannot get this to work.  I am 
wondering if there is something configuration wise that I need to setup in 
JBoss to get the correct exception back on the client side.

I have a user defined exception:

  | 
  | 
  | 
  | ;
  | .
  | .
  | 
  |   
  |   
  |   
  | 
  | 

This generates the following code for the exception:
   
  | public class TestException extends java.lang.Exception {
  |   private java.lang.String message;
  | 
  |   public TestException(java.lang.String message) {
  | super(message);
  | this.message = message;
  |   }
  | 
  |   public String getMessage() {
  | return message;
  |   }
  | }
  | 

When I throw this exception on the server side things look ok.  However on the 
client side I catch a SOAPFaultException instead of my TestException.  Has 
anyone successfully defined an exception and caught that exception on the 
client side?

Thanks,
Billy

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258420#4258420

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258420
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Web Services Users] - How do I catch a user define exception on the client (SOAP/J

2009-10-02 Thread newmanw10
Seems like I am following the spec correctly and JAX-RPC is generating the 
exception class correctly (I think), but I still cannot get this to work.  I am 
wondering if there is something configuration wise that I need to setup in 
JBoss to get the correct exception back on the client side.

I have a user defined exception:

  | ;
  | 
  | ;
  | ;
  | .
  | .
  | 
  |   ;
  |   
  |   
  | 
  | 

This generates the following code for the exception:
   
  | public class TestException extends java.lang.Exception {
  |   private java.lang.String message;
  | 
  |   public TestException(java.lang.String message) {
  | super(message);
  | this.message = message;
  |   }
  | 
  |   public String getMessage() {
  | return message;
  |   }
  | }
  | 

When I throw this exception on the server side things look ok.  However on the 
client side I catch a SOAPFaultException instead of my TestException.  Has 
anyone successfully defined an exception and caught that exception on the 
client side?

Thanks,
Billy

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258419#4258419

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258419
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Web Services Users] - How do I catch a user define exception on the client (SOAP/J

2009-10-02 Thread newmanw10
Seems like I am following the spec correctly and JAX-RPC is generating the 
exception class correctly (I think), but I still cannot get this to work.  I am 
wondering if there is something configuration wise that I need to setup in 
JBoss to get the correct exception back on the client side.

I have a user defined exception:

  | 
  | 
  | 
  |   
  | 
  | .
  | .
  | 
  |   
  |   
  |   
  | 
  | 

This generates the following code for the exception:
   
  | public class TestException extends java.lang.Exception {
  |   private java.lang.String message;
  | 
  |   public TestException(java.lang.String message) {
  | super(message);
  | this.message = message;
  |   }
  | 
  |   public String getMessage() {
  | return message;
  |   }
  | }
  | 

When I throw this exception on the server side things look ok.  However on the 
client side I catch a SOAPFaultException instead of my TestException.  Has 
anyone successfully defined an exception and caught that exception on the 
client side?

Thanks,
Billy

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258418#4258418

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258418
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: 4.2.3.GA messaging service?

2009-06-18 Thread newmanw10
Thanks Peter!

Is there any easy way to configure 4.2.3 to use JBoss Messaging?  What are some 
high level advantages if so.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238620#4238620

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4238620
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - 4.2.3.GA messaging service?

2009-06-18 Thread newmanw10
What messaging service is 4.2.3.GA using out of the box, Jboss Messaging or 
JbossMQ?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238615#4238615

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4238615
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security & JAAS/JBoss] - Securing MDBs

2009-06-18 Thread newmanw10
So I would like to annotate my MDBs with @SecurityDomain, and also 
@RolesAllowed.  The problem is that I do not know how to set-up jms to set-up 
my security domain info before it calls my MDB.

I am using a Cert Based Login Module so I am not sure exactly how to get jms to 
use a cert.  Perhaps the best thing to do would be to use the server cert.  But 
how do I tell jms to use that before calling my bean?

Thanks in advance.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238614#4238614

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4238614
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - JMS failover problem

2009-06-18 Thread newmanw10
Jboss 4.2.3.GA

I have a cluster with two nodes and I can bring up both nodes just fine.  I 
even see messages that state they were clustered together.  When the second 
node comes up all of the jms queues are not deployed (which is what is supposed 
to happen).

But when I bring the master down I get a bunch of jms failures.  My queue will 
not reconnect and I get error messages like:
[ERROR] [org.jboss.resource.adapter.jms.inflow.JmsActivation]  Unable to 
reconnect org.jboss.resource.adapter.jms.inflow.JmsActivation

Followed by javax.naming.NameNotFoundException: queue/myTestQueue.

Anyone run into anything like this?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238595#4238595

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4238595
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - Re: JMS Failover to Master node : SpyJMSException: Cannot au

2009-06-18 Thread newmanw10
I am running into the same problem.  Has any one else  seen this and solved 
this?

I can see the nodes cluster, but jms is not happy on the failover node.

Any ides?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238516#4238516

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4238516
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - Re: deploy-hasingleton broke?

2009-06-17 Thread newmanw10
You say you can also, I am confused.

Does this mean I should still put my ear with me MDB in the deploy-hasingleton 
directory?

Also deploy-hasingleton is for the cluster!  It will deploy once on the master 
when the master comes up.  If the master goes down a node in the cluster will 
take over as the master and everything in deploy-hasingleton will now be 
deployed to this new master.  Hence the services in deploy-hasingleton will 
only ever be deployed to one node.

I tried to use the @Depends annotation And it does not work I get a deploy 
exception.  My bean will not deploy becuase it is waiting on 
HASingletonDeploer.  Not sure why this is happening.

Has anyone used @Depends to solve the issue of trying to deploy a singleton MDB?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238237#4238237

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4238237
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - deploy-hasingleton broke?

2009-06-16 Thread newmanw10
I am trying to deploy an ear with an MDB into the deploy-hasingleton directory. 
 Seems to be deploying my bean before jms is deployed.  Shouldn't jboss deploy 
all xml's first?

Has anyone else run into this problem before?  How do I get a singleton MDB to 
deploy?  I am read the jboss docs a few times and seem like I should be able to 
shove my ear in the deploy-hasingleton directory and it will work.  I cannot 
find anything about config changes that I need to make so that things are 
deployed in the correct order.

Any ideas? Thanks in advance

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238029#4238029

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4238029
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - Re: Deploying an EAR in singleton mode in a two machines clu

2009-06-15 Thread newmanw10
I am having the same problem.  Has anyone come up with a solution?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237751#4237751

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237751
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Singleton MDB problem

2009-06-15 Thread newmanw10
Also reaching on the web I found that for this to work in a clustered env. I 
need to deploy my MDB in deploy-hasingleton.  Does this mean deploy to 
deploy-hasingleton on each node of the cluster or just on one node of the 
cluster?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237740#4237740

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237740
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Singleton MDB problem

2009-06-15 Thread newmanw10
I want a singleton MDB so that only one message gets processed at a time.  I.E. 
receive the message from the queue, process the message in its entirety, then 
process the next message.

I have deployed the jms service as deploy-hasingleton, and I have the 
@ActivationConfigProperty for maxSession set to 1.

Here is what looks like is happening.
1. Receive message from queue (mark as complete or acknowledge)
2. Receive another message from queue before 1st message is done processing.

I have also tried to set the @ActivationConfigProperty for acknowledgeMode to 
Client-acknowledge, but I am not sure that works since jboss does not document 
that.  This was so that I could call message.acknowldge() when I am done 
processing so that the next message would not start processing. 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237739#4237739

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237739
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Does jboss store java.naming.provider.url

2009-06-13 Thread newmanw10
Never mind found a good solution.  For my outside app server app I just need to 
specify a jndi.properties somewhere in the classpath and then I can just create 
a default initial context.

jndi.properties file:

  | ### JBossNS properties
  | java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  | java.naming.provider.url=jnp://localhost:1099
  | java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  | 


  | InitialContext = new InitialContext();  // Will use jndi.properties file
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237452#4237452

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237452
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Does jboss store java.naming.provider.url

2009-06-13 Thread newmanw10
I have a method that sends messages to a jms queue and this method can be 
called inside and outside the appserver.

In that method I need to create an InitialContext to lookup the jms queue.  
This is great from within the appserver because when I create the 
InitialContext the PROVIDER_URL is already set.

I am hoping that there is a system property that I can lookup.  That way I can 
also set that system property in my app that runs outside the server and I 
don't need to change the method.

I.E.

  | Properties p = new Properties()
  | // This works because this system property seems to be set by jboss
  | p.put(Context.INITIAL_CONTEXT_FACTORY, 
System.getProperty(Context.INITIAL_CONTEXT_FACTORY));
  | // This does not work becuase this property is not set
  | p.put(Context.PROVIDER_URL, System.getProperty(Context.PROVIDER_URL));
  | 

So as you can see from the code it does not seem jboss stores the PROVIDER_URL 
system property the same way it store the INITIAL_CONTEXT_FACTORY.  Which seems 
wrong because jboss should know its own URL.

Any ideas?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237451#4237451

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237451
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Connecting to JmsXA outside app server

2009-06-10 Thread newmanw10
I want to insert a jms message into a queue from outside the appserver but I am 
having problems find JmsXA.


  | Properties p = new Properties();
  | p.put(Context.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory");
  | p.put(Context.URL_PROVIDER, ""jnp://myserver:1100");
  | InitialContext cxt = new InitialContext(p);
  | ConnectionFactory factory = (ConnectionFactory) cxt.lookup("java:/JmsXA");
  | 

I get a JmsXA name not found exception.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4236807#4236807

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4236807
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - MDB jboss properties

2009-06-09 Thread newmanw10
I cannot find anywhere a list of jboss's MDB properties/annotations that I can 
use.  Can someone please point me in the right direction.

Thanks

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4236410#4236410

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4236410
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security & JAAS/JBoss] - Re: Problems with db when using security domain

2009-02-24 Thread newmanw10
So this seems like a bug with JBoss(4.2.2.GA) but I am not sure if anyone is 
aware of it or has reproduced it.

Basically just create a security domain.  My domain is using the 
BaseCertLoginModule.  Then have two datasources setup, one that is named 
'DefaultDS' and one that is named something else 'AnotherDS'.  Configure each 
data source with a different driver.  When you get inside a bean get the 
'AnotherDS' and call getConnection, then call something like prepareStatment.  
Sit back and watch the driver for the 'DefaultDS' get called.

Something is getting corrupted in JBoss when you use @SecurityDomain or when 
you set-up the context specific stuff for use with the security domain i.e. 
Context.SECURITY_PRINIPAL..

How do i get JBoss to look at this issue and confirm there is a bug?

Thanks,
Billy

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4212723#4212723

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212723
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security & JAAS/JBoss] - Re: Problems with db when using security domain

2009-02-20 Thread newmanw10
So i think what is happening is that somehow i am getting the DefaultDS even 
though I am asking for a different DS(ExampleDS).  Well myabe not exactly 
because it seems like I have the right datasource from what the debugger tells 
me but I somehow end up in the driver class for the default datasource which is 
really messing things up.

Seems like this is a bug in jboss, please help!

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211942#4211942

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211942
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security & JAAS/JBoss] - Problems with db when using security domain

2009-02-19 Thread newmanw10
I am trying to use a custom login module but when I do so I have problems 
getting to my DB.

So without the @SecurityDomain("customSecurityDomain") annotation everything 
works just fine.  When I use that security domain things look good from and EJB 
security standpoint as the user is authenticated before accessing the bean.  
But later in the bean I try and get a a DB connection:

@Resource(mappedName="ExampleDS")
DataSoource ds;

dbConnection = ds.getConnection();

I then get a ORA-28150: proxy not authorized to connect as client.

I don't even use a datasource in my custom login module so now where in my 
application-policy definition do i reference an DB.

But some how something is getting messed up.

Please help I have been looking at this for a while now and I have no idea what 
might be wrong.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211646#4211646

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211646
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Cannot build bottom up web service in eclipse using JBos

2008-11-12 Thread newmanw10
Ah ok I see.  But that does not fix my problem.  Actually I had that set 
correctly all along.

Select project TestWeb in project explorer, and then right click and select new 
-> other -> web service, and the Service Project fills in correclty.

Another question, I would like to deploy this war as a war, I do not want to 
pacakage it in an EAR.  Is this possible?  If so why is the wizard asking me 
for a Service EAR project.  Maybe this is my problem, but I am guessing no 
since the example I am following does not have me create an EAR.

Thanks again guys

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188807#4188807

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188807
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Cannot build bottom up web service in eclipse using JBos

2008-11-11 Thread newmanw10
In the * Service Project *??

I am sorry I am not quite sure what you mean could you explain a little more.

Thanks for your help.

Billy

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188482#4188482

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188482
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Cannot build bottom up web service in eclipse using JBos

2008-11-10 Thread newmanw10
Sounds good.

Like I said I created a simple web service that returns a int.  I can publish 
the web service using 'run as server" in eclipse and select the JBOSS 4.2 
server.  I can go to http://localhost:8080/jbossws/services and see my service 
and the WSDL.

I can create a WSDL file in eclipse by new -> other -> WSDL and give it the url 
of the WSDL on the server.

BUT if I try and create the WSDL through new -> other -> web service I get the 
error in the first post.

Also I want to create  a client web service by new -> other -> web service 
client.  When I select either my WSDL I generated in eclipse or the one on the 
server I get the same error as in the last post.

I am using Eclipse v3.4 (for EE), and JBOSS 4.2.

Thanks again and let me know if I can provide you with anything else.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188286#4188286

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188286
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Cannot build bottom up web service in eclipse using JBos

2008-11-10 Thread newmanw10
Ok even better.  So I cannot create the WSDL file using the web services 
wizard, but since I have deployed the service I can create a WSDL sing the WSDL 
creation wizard.

So problem solved right?  Wrong I cannot create a web service client using th 
eurl of WSDL file or the WSDL file I created using the wizard.

Why is it so hard to setup eclipse to use JBOSS.  Someone else out there has to 
be doing this right?

So here is the error I get when trying to create a web service client using the 
web service client wizard:

Failed to Generate Web Service code, please check the log for more details
org.eclipse.core.runtime.CoreException: parsing WSDL...


[ERROR] Failed to read the WSDL document: file:/C:/jboss-4.2.2.GA/bin/and, 
because 1) could not find the document; /2) the document could not be read; 3) 
the root element of the document is not .
unknown location

Failed to parse the WSDL.
Failed to invoke WsImport
java.lang.IllegalStateException: WsImport invocation failed. Try the 
verbose switch for more information
at 
org.jboss.ws.tools.jaxws.impl.SunRIConsumerImpl.consume(SunRIConsumerImpl.java:190)
at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:216)
at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:79)

at 
org.jboss.tools.ws.creation.core.commands.AbstractGenerateCodeCommand.execute(AbstractGenerateCodeCommand.java:88)
at 
org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.runCommand(CommandFragmentEngine.java:419)
at 
org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.visitTop(CommandFragmentEngine.java:359)
at 
org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.moveForwardToNextStop(CommandFragmentEngine.java:254)
at 
org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager$6.run(SimpleCommandEngineManager.java:294)
at 
org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:458)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:366)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
at 
org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager.runForwardToNextStop(SimpleCommandEngineManager.java:264)
at 
org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.runForwardToNextStop(WizardPageManager.java:91)
at 
org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.performFinish(WizardPageManager.java:262)
at 
org.eclipse.wst.command.internal.env.ui.widgets.DynamicWizard.performFinish(DynamicWizard.java:382)
at 
org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:742)
at 
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at 
org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:253)
at 
org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:273)
at 
org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:281)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
at 
org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at 
org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
at 
org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:247)
at 
org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
at 
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
at 
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
at 
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal

[jboss-user] [JBoss Tools (users)] - Re: Cannot build bottom up web service in eclipse using JBos

2008-11-10 Thread newmanw10
A little more info.  I am able to deploy the web service.  And I can use the 
web service explorer in Eclipse to see my web service and even test it.  It is 
working fine.

But when I use the web services wizard to create a WSDL file for my web service 
I get the error I mentiond before.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188255#4188255

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188255
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Cannot build bottom up web service in eclipse using JBos

2008-11-10 Thread newmanw10
Thanks for the response.  I have auto build turned on in Eclipse so I do have 
the class built.  I did double check though.

Plus it is not really warning me about a specific class, i.e. it never really 
said cannot find class 'Hello', it said cannot load class [and], that is a 
little weird.  I really think that I do not have something setup correctly in 
Eclipse to use JBoss WS correctly.

Any more ideas?

Thanks again.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188152#4188152

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188152
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Cannot build bottom up web service in eclipse using JBossWS

2008-11-07 Thread newmanw10
I am running into a problem creating a WSDL file using Eclipse IDE v3.4. When I 
go through through the 'bottom up web service' wizard and select JBossWS for my 
web service runtime and choose a simple web service that I created I get the 
following erorr: 

Error: Could not load class [and]. Did you specify a valid --classpath? 

When I hit next on the 'JBoss Web Service Code Generation Configuration' menu. 
I have both check boxes checked which are 'Generate WSDL file' and 'Update 
default web.xml' 

I assume that I do not have something setup correctly in Eclipse as far as 
JBoss is concerened. 

Please help I have been struggling with this for over a week and I cannot find 
anything on the web as to why this is happening. 

Thanks, 
Billy

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187735#4187735

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187735
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Cannot create J2EE JBOSS project in Eclipse

2008-11-07 Thread newmanw10
I have the eclipse plugin for jboss.  I tried looking at the doc you provided 
but it did not help me in terms of eclipse.  Any eclipse turtorial (that are 
recent for eclipse v3.4) using jboss that anyone knows about.  I am having 
problem creating a web service using JBossWS.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187729#4187729

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187729
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Create WSDL file using jbossws in Eclipse

2008-11-06 Thread newmanw10
I am running into a problem creating a WSDL file using Eclipse IDE v3.4.  When 
I go through through the 'bottom up web service' wizard and select JBossWS for 
my web service runtime and choose a simple web service that I created I get the 
following erorr:

Error: Could not load class [and]. Did you specify a valid --classpath?

When I hit next on the 'JBoss Web Service Code Generation Configuration' menu.  
I have both check boxes checked which are 'Generate WSDL file' and 'Update 
default web.xml'

I assume that I do not have something setup correctly in Eclipse as far as 
JBoss is concerened.

Please help I have been struggling with this for over a week and I cannot find 
anything on the web as to why this is happening.

Thanks,
Billy

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187530#4187530

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187530
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Cannot create J2EE JBOSS project in Eclipse

2008-10-24 Thread newmanw10
Hi,

I've been looking at the JBOSS tutorial found here:
http://docs.jboss.com/jbosside/tutorial/build/en/pdf/JBossIDE-Tutorial.pdf

My problem starts at page 4, when i try to Create a new J2EE Project.
According to the tutorial, i should have the following option:
Select File > New >Project >JBoss-IDE > J2EE Projects >J2EE 1.4 Project.

However, i don't have "JBoss-IDE" as an option. All i have is "JBOSS jBPM" and 
"JBoss Tools Web". 

>From looking at the JBOSS info it looks like the replaced the JBOSS IDE plugin 
>with the JBOSS AS Tool plugin. Do I have to setup something in eclipse? What 
>am I missing? Please help!

Thanks,
Billy

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4184501#4184501

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4184501
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user