[jboss-user] [JBoss Portal] - Re: JBoss 2.6 CMS Security Issue

2008-07-15 Thread rcarmichael
I have the same issue. Is it possible to denote a security constraint on a cms window so that it wouldn't be shown if a user doesn't have a given role? Or as the above poster mentions, it would be nice to tell JBoss to simply not show the window if permissions were denied instead of showing the

[jboss-user] [JBossWS] - Annotation to specify WS url

2008-05-08 Thread rcarmichael
So far I have been able to use web services in JBoss without having to modify my web.xml (or any xml files really) at all thanks to great annotations. However, I recently started adding version numbers to my wars/ears/jars and this has caused a number of problems. One of them is that JBoss uses

[jboss-user] [JBossWS] - Re: Annotation to specify WS url

2008-05-08 Thread rcarmichael
Well I like answering my own questions.. indeed, there is an annotation for this: org.jboss.wsf.spi.annotation.WebContext Thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4149528#4149528 Reply to the post :

[jboss-user] [JBoss Portal] - MembershipModule getUsers bug?

2008-04-22 Thread rcarmichael
I believe that there is a bug in the getUsers function of MembershipModule. If you have a portlet (like below) using the getUsers function, then go to the admin portlet and assign a user to a role (in this example, 'testrole'), this portlet will continue to return a list of size 0 until you

[jboss-user] [JBoss Portal] - Re: MembershipModule getUsers bug?

2008-04-22 Thread rcarmichael
Thank you, I wasn't able to find that when I searched jira earlier. The fix works great. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4145975#4145975 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4145975

[jboss-user] [JBossWS] - Re: Web services using common complex types

2008-04-11 Thread rcarmichael
Thanks for confirming the fact that customizations is the way to go Thomas, I just wanted to see if there was an easier way. It would seem like I should be able to provide a namespace for POJO_C so that this could be done automatically, but I can handle the manual way. Thanks again! View the

[jboss-user] [JBossWS] - Re: Web services using common complex types

2008-04-11 Thread rcarmichael
Just to update, I figured out that if I specify @XmlType(namespace=...) on my @Entitys that the web services are using, wsimport (if you don't use the -p option) would do what I want for me without having to specify JAXB customization files. I still think that it would be neat if I could

[jboss-user] [JBossWS] - Web services using common complex types

2008-04-10 Thread rcarmichael
Although I am an experienced programmer, I have to admit I am relatively new to Web Services and XML in general, so please bear with me... Let's say I have two web services, WS_A and WS_B. They both reference POJO_C (let's say both WS_A and WS_B have a function called getC that returns POJO_C).

[jboss-user] [JBossWS] - Cyclic web services

2008-04-01 Thread rcarmichael
Let's say I have a web service called getVehicle(int vehicleId) and I'm expecting it to return me a Vehicle object. If Vehicle has a java.util.Set of Wheel objects, and the Wheel object has a reference to its owner (Vehicle), then obviously there is an issue here when trying to persist to XML

[jboss-user] [JBoss Portal] - Re: Wrong tx on thread in UserModule

2008-03-28 Thread rcarmichael
Could it be that because it throws an exception when the user does not exist you never get to the ut.commit() and that's why that particular exception is being thrown? Just a wild shot in the dark. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4139731#4139731

[jboss-user] [EJB 3.0] - Re: Datasource not bound doing JPA outside of container

2008-03-22 Thread rcarmichael
waynebaylor wrote : JNDI names with the java:/ prefix are only visible from within the same JVM. you'll have to bind your persistence unit to a global JNDI name to get at it from outside the app. server Wow, I had no idea - I should have known that. Thanks a bunch for the tip. - Ryan View the

[jboss-user] [EJB 3.0] - Datasource not bound doing JPA outside of container

2008-03-20 Thread rcarmichael
I'm trying to write JUnit tests for some of our JPA stuff. I'm essentially just trying to get an EntityManager for my persistence units from a standalone java app. I've tried this: | System.setProperty(Context.INITIAL_CONTEXT_FACTORY,org.jnp.interfaces.NamingContextFactory); |

[jboss-user] [EJB 3.0] - Re: Datasource not bound doing JPA outside of container

2008-03-20 Thread rcarmichael
By the way you'll notice my datasource name switches between MyDS and CobraShadowDS, I was trying to change the name to make it simpler but I missed a spot, sorry :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4138151#4138151 Reply to the post :

[jboss-user] [JBossWS] - Re: @WebService method argument names

2008-03-06 Thread rcarmichael
That solution works perfectly, thank you for taking the time to respond. - Ryan View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134559#4134559 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134559

[jboss-user] [EJB 3.0] - Re: @Interceptor call failure on @WebMethod

2008-03-06 Thread rcarmichael
Sorry for the me too post, but this is really unfortunate. @Interceptors just plain don't work on beans marked with only @Stateless and @WebService. Add @Service, @Local or @Remote, it works fine. This is on AS 4.2.2. Has this at least been added to the bug list? Are there any other

[jboss-user] [EJB 3.0] - Re: @Interceptor call failure on @WebMethod

2008-03-06 Thread rcarmichael
I did not find the issue currently on JIRA, so I filed one with an example. http://jira.jboss.org/jira/browse/EJBTHREE-1206 - Ryan View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134718#4134718 Reply to the post :

[jboss-user] [JBossWS] - @WebService method argument names

2008-03-05 Thread rcarmichael
If I've got an EJB3 Bean with @Stateless and @WebService defined with a method like: | addNumbers(int num1, int num2) | the WSDL generated will simply call the arguments arg0 and arg1. Is there a way to force the WSDL generated to actually use the proper argument names? In this silly

[jboss-user] [EJB 3.0] - @Service + @WebService

2008-03-05 Thread rcarmichael
Going based on some information found through google search: http://bill.burkecentral.com/2007/09/19/ejb-31-immediate-feedback-on-ejb-singletons-and-concurrency-needed/ it looks as though I should be able to (or is it not working yet?) define a singleton via the @Service annotation that also

[jboss-user] [EJB 3.0] - Re: @Service + @WebService

2008-03-05 Thread rcarmichael
Sorry forgot to mention I'm using JBoss Portal 2.6.4 (AS 4.2.2) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134372#4134372 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134372

[jboss-user] [JBoss Portal] - CMS auto deploy archive

2008-03-04 Thread rcarmichael
Using JBoss Portal 2.6.4, is it possible to include a .zip or some other kind of archive in my EAR file and have it automatically (at deploy time) upload that archive to CMS? Since I can define everything else (portal, pages, windows, portlets) and some of my windows refer to CMS entries, it