[jboss-user] [JBoss Web Services Users] - Re: Cannot call JBoss web service through intermediary (soap
Solved it. The problem seems to be that I didn't use the @WebMethod annotation to define soapAction names. While you can connect directly without them, it appears that you need them to connect indirectly. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269396#4269396 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269396 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Web Services Users] - Cannot call JBoss web service through intermediary (soapUI).
Hello, I'm having a bit of an odd problem. I have deployed a dummy JbossWS web service onto JBoss AS 5.0.1 and developed a client for it using Axis 1.5. This works fine. I then loaded up soapUI and pointed it to my web service and ran the test suite. Again, everything worked. However, when I attempt to connect through a soapUI mock service, I get an "Missing operation for soapAction [http://hello.ws.com/HelloWorld/helloRequest] and body element [{http://hello.ws.com/}hello] with SOAP Version [SOAP 1.1]" error. The WSDL's for the two web services are identical except that the one deployed by soapUI prefixes with "" while the version created by JBoss has no XMLDecl element. I'm not sure if this is a JBossWS, Axis or SoapUI, but I figured I'd try here first. Any one encountered anthing like this before? soapUI error: | org.apache.axis2.AxisFault: Missing operation for soapAction [http://hello.ws.com/HelloWorld/helloRequest] and body element [{http://hello.ws.com/}hello] with SOAP Version [SOAP 1.1] | at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:517) | at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:371) | at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417) | at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) | at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) | at com.ws.hello.HelloWorldServiceStub.hello(HelloWorldServiceStub.java:181) | at com.test.TestHelloWorld.testHello(TestHelloWorld.java:27) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | at java.lang.reflect.Method.invoke(Unknown Source) | at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) | at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) | at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) | at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) | at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) | at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) | at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73) | at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46) | at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180) | at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41) | at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173) | at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) | at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) | at org.junit.runners.ParentRunner.run(ParentRunner.java:220) | at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46) | at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) | at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) | at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) | at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) | at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) | The web service: | package com.ws.hello; | | import javax.jws.WebService; | | | @WebService | public class HelloWorld { | public String hello(String name) { | return "Hello "+name; | } | } | The client: | package com.test; | | import java.io.IOException; | import java.rmi.RemoteException; | | import org.junit.BeforeClass; | import org.junit.Test; | | import com.ws.hello.HelloWorldServiceStub; | import com.ws.hello.HelloWorldServiceStub.*; | | public class TestHelloWorld { | private static HelloWorldServiceStub stub; | | @BeforeClass | public static void initialize() throws IOException{ | stub = new HelloWorldServiceStub(); | } | | @Test | public void testHello() throws RemoteException{ | Hello h = new Hello(); | h.setArg0("World"); | HelloE e = new HelloE(); | e.setHello(h); | | HelloResponse r = stub.hello(e).getHelloResponse(); | System.out.println(r.get_return()); | } | } | The Axis log (long): | - mapActionToOperation: Mapping Action to Op
[jboss-user] [JBoss Web Services Users] - Re: JBossWS is Java EE 5 compliant?
Great, thanks Alessio. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268325#4268325 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268325 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Web Services Users] - Re: JBossWS is Java EE 5 compliant?
Hi Peter, Thanks for your response. While JBoss AS 5 is JEE5 compliant, do you happen to know if the same is true for JBossWS? My main concern is portability for any web services I create in JBossWS should my company decide to change application servers in the future. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268287#4268287 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268287 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Web Services Users] - JBossWS is Java EE 5 compliant?
Hello, The last word I've seen on this is the 2007 whitepaper which states that JBossWS is not fully Java EE 5 compliant. Can anyone confirm otherwise? For example, if I were to create an application in JBossWS, would I be able to deploy it to another Java EE 5 compliant application server (as listed http://java.sun.com/javaee/overview/compatibility.jsp)? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267706#4267706 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267706 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Web Services Users] - WSDL 2.0 supported?
Hello, This likely seems like an obvious question, but both Google and the search on these forums is turning up almost nothing. Does JBossWS (native) support WSDL 2.0? If so, are there any drawbacks to using it (i.e., can't use WS-RM or anything). Thanks. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256964#4256964 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256964 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Web Services Users] - JBossWS on Geronimo?
Hello, Is is possible to deploy a JBossWS web service on Apache Geronimo? If so, can anyone point me to a guide on how to do so? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4255177#4255177 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4255177 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Streamlined tutorial on JBossWS w/ policies (WS-RM)?
Finally got it. I wrote up a fairly detailed explanation how on Google Knol if it's of use to anyone. http://knol.google.com/k/neil-mcfarlane/creating-your-first-web-services-in-java/ View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4243545#4243545 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4243545 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Streamlined tutorial on JBossWS w/ policies (WS-RM)?
Still banging my head on this one. Could anyone let me know if the server code I have posted is valid? Is the @Policy annotation compatible with WS-RM? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4243034#4243034 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4243034 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Streamlined tutorial on JBossWS w/ policies (WS-RM)?
Hello, I'm relatively new to Web Services (only done very simple clients) and I've been struggling to get a WS-RM service/client up for a few days now. Part of the problem is that I'm seeing many, many different ways on how this is done, to the point that I'm not sure what the "correct" way is. The service part is, thanks to the @Policy annotations, seemingly very simple for me to set up: Service | package com.webService; | | import javax.jws.WebService; | | import org.jboss.ws.extensions.policy.PolicyScopeLevel; | import org.jboss.ws.extensions.policy.annotation.Policy; | import org.jboss.ws.extensions.policy.annotation.PolicyAttachment; | | @PolicyAttachment | ( |@Policy |( | policyFileLocation = "WEB-INF/wsrm-exactly-once-in-order-policy.xml", | scope = PolicyScopeLevel.WSDL_BINDING |) | ) | @WebService | public class Reliable { | public String echo(String parameter){ | return "You reliably passed the string '"+parameter+"'"; | } | } | configuration XML file | | http://schemas.xmlsoap.org/ws/2004/09/policy"; |xmlns:wsrmp="http://docs.oasis-open.org/ws-rx/wsrmp/200702"; | xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";> | | | | | | | | Now, I'm stuck. I gather that I need to somehow configure my client to use RM ("The RM Destination requires the use of WSRM" is the message I'm getting), but I am uncertain how to optimally do this. Client | public void testReliable(){ | Reliable port = new ReliableService().getReliablePort(); | | //I need some stuff here it seems | | port.echo("a test message"); | } | Could someone provide me with the simplest guidelines I need to follow that would work? I should mention that one of my goals is keep the XML configuration to an absolute minimum, centralizing as much as possible within the application itself. Thanks to anyone who can help me out. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241997#4241997 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241997 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Running JBoss 5 within Eclipse with a different set of p
Thanks Peter. Using what you said I think I found the solution. Instead of editing the launch configuration though, you can actually just double-click on the server from either the "Servers" or "JBoss Server View" views to open up the "Overview" window. >From there, select "Open launch configuration" and add the ports-01 parameter >to the "Arguments" tab. After that, you can modify the "Server Properties" on >the main "Overview" window you have to adjust the port to "8180" and the JNDI >Port to "1199" (I'd guess more if you use ports-02 etc.). While my server starts up fine (and is recognized as starting), I find that it doesn't shutdown properly. At first I was getting a whole heap of errors (it was still looking for 1099), but now I don't get any messages at all. It does shutdown and restart without a hitch, but it's still a little worrisome. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226067#4226067 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226067 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Running JBoss 5 within Eclipse with a different set of p
I should specify, I'm running Eclipse 3.4.2 w/ JBoss Tools. The JBoss version is 5.0.1.GA. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225980#4225980 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225980 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Running JBoss 5 within Eclipse with a different set of ports
Hello. I can't use the default set of ports with JBoss and would like to run it with one of the alternative sets. I can do this on "stand-alone" JBoss by creating a new .bat file with the contents "run.bat -Djboss.service.binding.set=ports-01", but I'm not sure how do to the equivalent when running JBoss from within Eclipse. Is there a way to supply parameters? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225978#4225978 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225978 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Automatically assign ports?
That seems like quite a bit of effort, especially for large development teams where not everyone has admin privilages on their machine. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139772#4139772 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139772 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: upgrade to WTP 2.0.2 breaks EAR deployment in JBoss Tool
I've tried the latest WTP patch and am still having the same issues with Eclipse Europa JEE Winter. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139747#4139747 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139747 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Automatically assign ports?
Hello, Is there any kind of "developement" mode or some kind of setting for JBoss AS which can tell it to grab a free port? I'm constantly getting "port in use" errors and it's kind of a drag to keep changing the settings. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139426#4139426 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139426 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 2.1.0 A1
Can you post a quick link to the main differences we can expect to see in 2.1.0? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128906#4128906 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128906 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JBoss Seam, a great product that doesn't work :(
Agreed with above. For those of us coming from a more simple model (i.e. basic Struts, or even just plain Java development), having to deal with all the things Seam pulls together is a pretty tough start. I've been playing with it for a week and am just now starting to get the hang of what's going... or at least so I think. Still, when you look at what you're saving by not having to use each component individually, and all the "plumbing code" you are spared, it's tough to go back. Big bonus in that, being an application stack instead of a web framework, it's not as likely to go obsolete any time soon. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123673#4123673 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123673 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Stateless bean holding data?
Hello, I have two pages, edit and search. From the edit screen, the user can go to the search screen (which also contains a list). From the search/list screen, they can select an entity to edit. The problem is that my list, which is part of a stateless session bean, is being retained throughout trips to the search/list page. I.e., the previous search results are being shown after leaving and coming back. Is this the expected behaviour? My edit page is backed by a stateful session bean using the default conversation scope, so could that be throwing things off? Should I just add a "clearList()" call to my links from the search page to empty it as I leave? The code for the list page and its stateless session bean are below: | package org.domain.myProject.session; | | import java.util.ArrayList; | import java.util.List; | | import javax.ejb.Stateless; | import javax.persistence.EntityManager; | import javax.persistence.PersistenceContext; | | import org.domain.myProject.entity.Person; | import org.domain.myProject.session.local.SearchPeopleLocal; | import org.jboss.seam.annotations.In; | import org.jboss.seam.annotations.Logger; | import org.jboss.seam.annotations.Name; | import org.jboss.seam.faces.FacesMessages; | import org.jboss.seam.framework.EntityQuery; | import org.jboss.seam.log.Log; | | @Stateless | @Name("searchPeople") | public class SearchPeopleAction implements SearchPeopleLocal { | @Logger | private Log log; | | @In | FacesMessages facesMessages; | | @PersistenceContext | private EntityManager em; | | private List peopleList; | | @SuppressWarnings("unchecked") | public void search() { | /* | * We are using an EntityQuery since it seems to be the quickest solution to | * dynamic searches. | */ | EntityQuery eq = new EntityQuery(); | eq.setEntityManager(em); | eq.setEjbql("from Person p"); | | /* | * The EntityQuery can have restrictions (basically the "WHERE" part of the SQL) | * placed on the returned results. Since they are (I believe) called remotely | * from this class, we have to pass the 'seamComponent.parameter' (which is | * the value that we'll be restricting on) in expression language | */ | List restrictions = new ArrayList(); | restrictions.add("lower(p.name) like lower(concat('%',#{searchPeople.name},'%'))"); | eq.setRestrictions(restrictions); | | peopleList = eq.getResultList(); | | if (peopleList.size() == 0) | facesMessages.add("Search returned no results"); | | log.info("Result list size is #0", log.info("Result list size is #0", peopleList.size()); | } | | // The below variables (and their getters / setters) are used to make | // the dynamic query | private String name; | | public String getName() { | return name; | } | | public void setName(String name) { | this.name = name; | } | | public List getPeopleList() { | return peopleList; | } | | public void setPeopleList(List peopleList) { | this.peopleList = peopleList; | } | } | | http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> | http://www.w3.org/1999/xhtml"; | xmlns:s="http://jboss.com/products/seam/taglib"; | xmlns:f="http://java.sun.com/jsf/core"; | xmlns:h="http://java.sun.com/jsf/html";> | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If it's of any use, I can also post the code for the edit page and it's stateful session bean. Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123652#4123652 Reply to the post : http://www.jboss.com/inde
[jboss-user] [JBoss Seam] - Re: Seam 2.0.1.CR2 is out
For the sake of convenience, could we get a URL to the change log for this release? I wasn't able to find one (at a quick glance) on the site posted at the top comment. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123571#4123571 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123571 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Shortcut for session bean interfaces?
Aye, a simple annotation like "@DirectLocalInterface" for Session beans would be nice. Still, since EJB 3.1 is due out at the end of this year, I guess the issue is essentially taken care of then. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123295#4123295 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123295 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Only on specific scenario -
Really wish there was an edit. Taking the person out of the page scope prevents me from being able to update (each save is treated as a new user), so it's not a solution. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123204#4123204 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123204 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Only on specific scenario -
Oh, I should mention that this also works if I take the person out of the page scope and leave it at just | @In(required = false) | @Out | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123202#4123202 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123202 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Only on specific scenario - "all-delete-orphan" was no longe
Hello. I have a demo app where the user can enter people and save them to a database. Each person can have 0..* email addresses. The user can also go to a seperate page where the people are listed and select one to edit (taking them back to the first screen, now pre-populated with the person data) The following use cases work just fine: * Save new person with and without emails * Edit person with emails * Edit person without emails, who formerly had emails * Edit person (who had an email added, and removed before being saved) * Save new person without email, go to list page, select the person, then edit them * Etc. What's odd is that in one scenario, it doesn't work. That's if I create a new person, save them (without adding any emails), then modify them and save again (still without adding any emails). If, at any point, I add an email, even without saving it, it works. The error I get when this does happen is as such: A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance Here's the relevant snippets of my code: | @Stateful | @Name("editPerson") | public class EditPersonForm implements EditPersonLocal { | @PersistenceContext(type = EXTENDED) | private EntityManager em; | | @In(required = false) | @Out(scope = ScopeType.PAGE) | private Person person; | | @In(required = false) | @Out(required = false) | private EmailAddress emailAddress; | | public void addEmail() { | log.info("Adding email address #0", emailAddress.getUrl()); | person.addEmailAddress(emailAddress); | | //Blank the email address entry point | emailAddress = new EmailAddress(); | } | | public void removeEmail(EmailAddress emailAddress) { | log.info("Removing email address #0", emailAddress.getUrl()); | person.removeEmailAddress(emailAddress); | } | | public void savePerson() { | if (person.getId() != null){ | em.merge(person); | } | else { | em.persist(person); | } | | // Note that the id of our person was generated and populated. | facesMessages.add("#0 was saved with an id of #1", person.getName(), person.getId()); | | log.info(person.getName() + " was saved."); | } | } | | Name: | | | | | Emails: | URL: | | | | | | | | | | | | | | | | | | | | | @Entity | @Name("person") | public class Person { | | @Id @GeneratedValue | private Long id; | | @NotNull | private String name; | | @OneToMany(cascade = CascadeType.ALL, fetch=FetchType.EAGER, mappedBy="person") | @org.hibernate.annotations.Cascade(org.hibernate.annotations.CascadeType.DELETE_ORPHAN) | private Collection emailAddresses; | | public Long getId() {return id;} | public void setId(Long id) {this.id = id;} | | public String getName() {return name;} | public void setName(String name) {this.name = name;} | | public Collection getEmailAddresses() { | return emailAddresses; | } | public void setEmailAddresses(Collection emailAddresses) { | this.emailAddresses = emailAddresses; | } | public void addEmailAddress(EmailAddress email){ | if (emailAddresses == null) emailAddresses= new ArrayList(); | email.setPerson(this); | emailAddresses.add(email); | } | public void removeEmailAddress(EmailAddress emailAddress){ | if (emailAddresses != null){ | emailAddresses.remove(emailAddress); | } | } | } | | @Entity | @Name("emailAddress") | public class EmailAddress { | | @Id @GeneratedValue | private Long id; | | @NotNull | private String url; | | @ManyToOne | @JoinColumn(name="person_id") | private Person person; | | public Long getId() {return id;} | public void setId(Lo
[jboss-user] [JBoss Seam] - Shortcut for session bean interfaces?
Hello. If I have a simple session bean, is there any kind of shortcut I can take to prevent having to create a local / remote interface? Something which I can use to keep all the code for the class and its interface in one Java file? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123055#4123055 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123055 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Ending default scope SFSB's needed?
Really? That's very useful then. I've been smacking my head trying to figure out how to get what I needed (ideally something similar to the Page scope since I'm trying to avoid the session scope, but that's not allowed for stateful beans) until I just tried the default and it worked. Thank you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122818#4122818 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122818 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Ending default scope SFSB's needed?
Yeah, but I'm not explictly calling @Start or @End on any of my methods. How does Seam determine when I'm finished with this session bean? | package org.domain.myProject.session; | | import static javax.persistence.PersistenceContextType.EXTENDED; | | import java.util.List; | | import javax.ejb.Remove; | import javax.ejb.Stateful; | import javax.ejb.Stateless; | import javax.persistence.EntityManager; | | import javax.persistence.PersistenceContext; | | import org.domain.myProject.entity.EmailAddress; | import org.domain.myProject.entity.Person; | import org.domain.myProject.session.local.EditPersonLocal; | import org.jboss.seam.ScopeType; | import org.jboss.seam.annotations.Destroy; | import org.jboss.seam.annotations.In; | import org.jboss.seam.annotations.Logger; | import org.jboss.seam.annotations.Name; | import org.jboss.seam.annotations.Out; | import org.jboss.seam.annotations.Scope; | import org.jboss.seam.contexts.Context; | import org.jboss.seam.contexts.Contexts; | import org.jboss.seam.faces.FacesMessages; | import org.jboss.seam.log.Log; | | @Stateful | @Name("editPerson") | //@Scope(ScopeType.EVENT) | public class EditPersonForm implements EditPersonLocal { | | @Logger | private Log log; | | @In | FacesMessages facesMessages; | | @PersistenceContext(type = EXTENDED) | private EntityManager em; | | @In(required=false) | @Out(scope=ScopeType.PAGE) | private Person person; | | @In(required=false) | @Out(required=false) | private EmailAddress emailAddress; | | public void addEmail() { | person.addEmailAddress(emailAddress); | | log.info("Email address " +emailAddress.getUrl() + " Added to "+ person.getName()); | | emailAddress = new EmailAddress(); | } | | public void removeEmail(EmailAddress emailAddress) { | log.info("Removing Email address " +emailAddress.getUrl()); | person.removeEmailAddress(emailAddress); | } | | public void savePerson() { | if (person.getId()!=null) | em.merge(person); | else | em.persist(person); | | //Note that the id of our person was generated and populated. | facesMessages.add("Person was saved with an id of "+ person.getId()); | | log.info(person.getName() +" was saved."); | } | | public void editPerson(Person person) { | log.info("Getting Id: " + person.getId()); | person = (Person) em.createQuery("from Person p where p.id =" +person.getId()).getSingleResult(); | } | | @Destroy @Remove |public void destroy() {} | | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122810#4122810 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122810 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Ending default scope SFSB's needed?
Hello. If I have a stateful session bean in the default (i.e. undeclared) conversation scope, do I need (or is it good practice) to end it somehow? Or can I just let Seam take care of it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122801#4122801 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122801 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Displaying dataTable row numbers with uiComponent, what
Hmm... I was hoping to avoid binding and creating additional components if possible. It's not a highly needed feature, and I think the solution on that thread outweighes the benefits. Still, nothing about the uiComponent? That looked like the nice and simple solution I was looking for. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122800#4122800 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122800 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Displaying dataTable row numbers with uiComponent, what
I've tried without the (so that it looked exactly as the demo) and had the same result. Nothing special about person, it's a fairly standard basic entity bean: | package org.domain.myProject.entity; | | import java.util.ArrayList; | import java.util.Collection; | | import javax.persistence.CascadeType; | import javax.persistence.Entity; | import javax.persistence.GeneratedValue; | import javax.persistence.Id; | import javax.persistence.OneToMany; | | import org.hibernate.validator.NotNull; | import org.jboss.seam.annotations.Name; | | @Entity | @Name("person") | public class Person { | | @Id @GeneratedValue | private Long id; | | @NotNull | private String name; | | @OneToMany(cascade = CascadeType.ALL, mappedBy="person") | private Collection emailAddresses; | | public Long getId() {return id;} | public void setId(Long id) {this.id = id;} | | public String getName() {return name;} | public void setName(String name) {this.name = name;} | | public Collection getEmailAddresses() { | return emailAddresses; | } | public void setEmailAddresses(Collection emailAddresses) { | this.emailAddresses = emailAddresses; | } | public void addEmailAddress(EmailAddress email){ | if (emailAddresses == null) emailAddresses= new ArrayList(); | email.setPerson(this); | emailAddresses.add(email); | } | public void removeEmailAddress(EmailAddress emailAddress){ | if (emailAddresses != null){ | emailAddresses.remove(emailAddress); | } | } | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122741#4122741 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122741 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Displaying dataTable row numbers with uiComponent, what am I
Hello. The Seam reference guide has the following snippet (pg. 113 / 322) anonymous wrote : | Alternatively, you can access the JSF component tree through the implicit uiComponent handle. The following | example accesses getRowIndex()of the UIData component which backs the data table during iteration, it prints | the current row number: | | | | | Row: #{uiComponent['lineItemTable'].rowIndex} | | | | ... | | | JSF UI components are available with their client identifier in this map. | I've tried it in my code (shown below), but I only get a blank. | | | Row: | | ... | Is there something else I need to do to have it display? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122700#4122700 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122700 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problems with list page, persistence, and detached entit
Thanks. Quick question Pete, where can I find how to do a SMPC when deploying in an ear? Is there a workaround to the below JIRA issue? http://jira.jboss.org/jira/browse/JBIDE-1409?decorator=printable View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121849#4121849 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121849 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problems with list page, persistence, and detached entit
It seems to work just as well by using the conversation scope, with less code and, of course, a smaller footprint. | package org.domain.myProject.session; | | import static javax.persistence.PersistenceContextType.EXTENDED; | | import java.util.List; | | import javax.ejb.Remove; | import javax.ejb.Stateful; | import javax.persistence.EntityManager; | import javax.persistence.PersistenceContext; | | import org.domain.myProject.entity.User; | import org.domain.myProject.session.local.EditUserLocal; | import org.jboss.seam.ScopeType; | import org.jboss.seam.annotations.Begin; | import org.jboss.seam.annotations.Destroy; | import org.jboss.seam.annotations.End; | import org.jboss.seam.annotations.Factory; | import org.jboss.seam.annotations.In; | import org.jboss.seam.annotations.Logger; | import org.jboss.seam.annotations.Name; | import org.jboss.seam.annotations.Out; | import org.jboss.seam.annotations.Scope; | import org.jboss.seam.annotations.datamodel.DataModel; | import org.jboss.seam.annotations.datamodel.DataModelSelection; | import org.jboss.seam.faces.FacesMessages; | import org.jboss.seam.log.Log; | | @Stateful | @Name("editUser") | @Scope(ScopeType.CONVERSATION) | public class EditUserForm implements EditUserLocal { | | @Logger | private Log log; | | @In | FacesMessages facesMessages; | | @PersistenceContext(type = EXTENDED) | private EntityManager em; | | @DataModelSelection | @Out(required=false) | private User user; | | @DataModel | private List users; | | @SuppressWarnings("unchecked") | @Factory("users") | @Begin | public void findUsers(){ | log.info("* Finding the users"); | if (users == null) | log.info("users is null"); | else if (users.size() == 0) | log.info("users has a size of zero"); | else | log.info("Strange, because users has " +users.size() + " entries"); | | users = em.createQuery("from User u").getResultList(); | } | | public void remove(){ | log.info("Deleting " +user.getName()); | em.remove(user); | users.remove(user); | } | | @End | public void clear(){ | //We're clearing user since it is being outjected and would otherwise populate the entry page. | user = null; | } | | public void update() { | log.info("Updating " + user.getId()); | em.persist(user); | } | | @Destroy @Remove | public void destroy() {} | } | Using it like this though, doesn't require the ScopeType.PAGE at all, which was what I originally wanted. Is this kind of situation just not applicable to using the PAGE scope? If not, when would we use it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121447#4121447 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121447 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problems with list page, persistence, and detached entit
Here's how I want it to work: | * Save users to a database on the entry page | * On navigation to the list page, pull users from the database into a list in the scope and display them | * Do not call the database to update the list since it's in the scope | * When leaving the page, remove all traces from the scope | | | Now, I got that working with the following: | | | | package org.domain.myProject.session; | | | | import static javax.persistence.PersistenceContextType.EXTENDED; | | | | import java.util.List; | | | | import javax.ejb.Remove; | | import javax.ejb.Stateful; | | import javax.persistence.EntityManager; | | import javax.persistence.PersistenceContext; | | | | import org.domain.myProject.entity.User; | | import org.domain.myProject.session.local.UserEditLocal; | | import org.jboss.seam.ScopeType; | | import org.jboss.seam.annotations.Destroy; | | import org.jboss.seam.annotations.Factory; | | import org.jboss.seam.annotations.In; | | import org.jboss.seam.annotations.Logger; | | import org.jboss.seam.annotations.Name; | | import org.jboss.seam.annotations.Out; | | import org.jboss.seam.annotations.Scope; | | import org.jboss.seam.annotations.datamodel.DataModel; | | import org.jboss.seam.annotations.datamodel.DataModelSelection; | | import org.jboss.seam.contexts.Contexts; | | import org.jboss.seam.faces.FacesMessages; | | import org.jboss.seam.log.Log; | | | | @Stateful | | @Name("userEdit") | | @Scope(ScopeType.SESSION) | | public class UserEditForm implements UserEditLocal { | | | | @Logger | | private Log log; | | | | @In | | FacesMessages facesMessages; | | | | @PersistenceContext(type = EXTENDED) | | private EntityManager em; | | | | @DataModelSelection | | @Out(required=false) | | private User user; | | | | @DataModel(scope=ScopeType.PAGE) | | private List users; | | | | @SuppressWarnings("unchecked") | | @Factory("users") | | public void findUsers(){ | | log.info("* Finding the users"); | | if (users == null) | | log.info("users is null"); | | else if (users.size() == 0) | | log.info("users has a size of zero"); | | else | | log.info("Strange, because users has " +users.size() + " entries"); | | | | users = em.createQuery("from User u").getResultList(); | | | | } | | | | public void remove(){ | | log.info("Deleting " +user.getName()); | | em.remove(user); | | users.remove(user); | | } | | | | public void clear(){ | | log.info("Clearing the userEdit bean from the session"); | | Contexts.getSessionContext().remove("userEdit"); | | } | | | | public void update() { | | //TODO write the update method | | } | | | | @Destroy @Remove | | public void destroy() {} | | } | | | | | | package org.domain.myProject.session; | | | | import javax.ejb.Stateless; | | import javax.persistence.EntityManager; | | import javax.persistence.PersistenceContext; | | | | import org.domain.myProject.entity.User; | | import org.domain.myProject.session.local.SaveUserLocal; | | import org.jboss.seam.annotations.In; | | import org.jboss.seam.annotations.Logger; | | import org.jboss.seam.annotations.Name; | | import org.jboss.seam.annotations.Out; | | import org.jboss.seam.contexts.Context; | | import org.jboss.seam.contexts.Contexts; | | | | import org.jboss.seam.faces.FacesMessages; | | import org.jboss.seam.log.Log; | | | | @Stateless | | @Name("saveUser") | | public class SaveUserAction implements SaveUserLocal { | | | | @Logger | | private Log log; | | | | @In | | FacesMessages facesMessages; | | | | @PersistenceContext | | private EntityManager em; | | | | /* We have an '@Out' on this to push back user (after any modifications we make | | * in our bean here) onto the page. Since we're nullifying user in our save method, | | * we need to state that it's not required to have any value. | | */ | | @In @Out(required=false) | | private User user; | | | | public void saveUser() { | | //Simple persisting with the EntityManage
[jboss-user] [JBoss Seam] - Re: [Newbie] Understanding Bijection
Yup, looks right to me. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121328#4121328 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121328 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problems with list page, persistence, and detached entit
If I put the SFSB into a long running conversation, then what would be the useage of the PAGE scope? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121286#4121286 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121286 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Problems with list page, persistence, and detached entities
Hello. I seem to be doing something wrong with my Stateful Session Bean in that I can't seem to have it persist properly. I have a list page where I want to delete previously entered users. I've put the @DataModel into the page scope, as I want it to be kept available until I leave the page. | package org.domain.myProject.session; | | import static javax.persistence.PersistenceContextType.EXTENDED; | | import java.util.List; | | import javax.ejb.Remove; | import javax.ejb.Stateful; | import javax.persistence.EntityManager; | import javax.persistence.PersistenceContext; | | import org.domain.myProject.entity.User; | import org.domain.myProject.session.local.UserEditLocal; | import org.jboss.seam.ScopeType; | import org.jboss.seam.annotations.Destroy; | import org.jboss.seam.annotations.Factory; | import org.jboss.seam.annotations.In; | import org.jboss.seam.annotations.Logger; | import org.jboss.seam.annotations.Name; | import org.jboss.seam.annotations.Out; | import org.jboss.seam.annotations.datamodel.DataModel; | import org.jboss.seam.annotations.datamodel.DataModelSelection; | import org.jboss.seam.faces.FacesMessages; | import org.jboss.seam.log.Log; | | @Stateful | @Name("userEdit") | public class UserEditForm implements UserEditLocal { | | @Logger | private Log log; | | @In | FacesMessages facesMessages; | | @PersistenceContext(type = EXTENDED) | private EntityManager em; | | @DataModelSelection | @Out(required=false) | private User user; | | @DataModel(scope=ScopeType.PAGE) | private List users; | | @SuppressWarnings("unchecked") | @Factory("users") | public void findUsers(){ | log.info("* Finding the users"); | if (users == null) | log.info("users is null"); | else if (users.size() == 0) | log.info("users has a size of zero"); | else | log.info("Strange, because users has " +users.size() + " entries"); | users = em.createQuery("from User u").getResultList(); | } | | public void remove(){ | log.info("Deleting user " +user.getName()); | em.remove(user); | users.remove(user); | } | | public void update() { | //TODO write the update method | } | | @Destroy @Remove | public void destroy() {} | } | The following is my console log: | 19:48:04,917 INFO [STDOUT] Hibernate: | insert | into | User | (id, name) | values | (null, ?) | 19:48:04,917 INFO [STDOUT] Hibernate: | call identity() | 19:48:04,917 INFO [SaveUserAction] John was saved. | 19:48:08,401 INFO [UserEditForm] * Finding the users | 19:48:08,401 INFO [UserEditForm] users is null | 19:48:08,417 INFO [STDOUT] Hibernate: | select | user0_.id as id0_, | user0_.name as name0_ | from | User user0_ | 19:48:11,323 INFO [UserEditForm] * Finding the users | 19:48:11,323 INFO [UserEditForm] users is null | 19:48:11,323 INFO [STDOUT] Hibernate: | select | user0_.id as id0_, | user0_.name as name0_ | from | User user0_ | 19:48:11,323 INFO [UserEditForm] Deleting user Vader | 19:48:11,339 INFO [STDOUT] Hibernate: | delete | from | User | where | id=? | 19:48:26,495 INFO [UserEditForm] * Finding the users | 19:48:26,495 INFO [UserEditForm] users is null | 19:48:26,495 INFO [STDOUT] Hibernate: | select | user0_.id as id0_, | user0_.name as name0_ | from | User user0_ | 19:48:26,495 INFO [UserEditForm] Deleting user Skywalker | 19:48:26,511 INFO [STDOUT] Hibernate: | delete | from | User | where | id=? | And this is the page I'm calling it from: | http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> | http://www.w3.org/1999/xhtml"; | xmlns:s="http://jboss.com/products/seam/taglib"; | xmlns:f="http://java.sun.com/jsf/core"; | xmlns:h="http://java.sun.com/jsf/html";> | | | | | | | | | | | | | | | | | |
[jboss-user] [JBoss Seam] - Re: Removing Stateful Session Beans from the Session gracefu
Thanks Pete, I'll give that a go. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121040#4121040 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121040 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Removing Stateful Session Beans from the Session gracefu
Oh, I should have asked. I assume "foo" refers to the Seam component name? Is there a way to get this without typing it in directly (i.e. "this.getContextName()" or some such thing) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121044#4121044 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121044 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Removing Stateful Session Beans from the Session gracefully
Hello, I'm currently in the midst of (slowly) teaching myself how to use Seam. In my "myFirstProject" project, I've got two pages, one which saves entities to the database, and another which pulls them out, lists them and allows the user to delete them. Each screen can navigate to the other. For my list, I'm using a Stateful Session Bean (SFSB) in the session scope. When I go back to the entry screen and add more users, naturally they won't appear on the list screen since its drawing on a list currently in the session (populated by a "@factory" method) I've been looking around, but I can't seem to find how to properly remove objects from the session scope properly when they are no longer needed. Am I supposed to call the "destroy()" method when I go back to the entry screen? Should I instead change this into the conversation scope (which seems a bit much for a single list page) and add a "@begin" and "@end"? Is there a much more elegant solution I'm simply overlooking? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120899#4120899 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120899 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: s:validateAll don't works.
This one caught me up (for about an hour or so) as well. There is no validation done on blank fields. Another problem is that blank fields are passed not as null, but as zero-length strings, so they'll sneak by any @NotNull annotations in both the presentation and business logic layer (making me question their usefulness). Any idea if these issues are being looked after in the next version of Seam and/or JSF? I'd imagine that the second problem could be fixed pretty easily by lumping blank Strings in with null values by default; this could be disabled with "@NotNull(allowEmptyString=true)" or so. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120592#4120592 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120592 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Hibernate + JSF
Hello, Can anyone recommend a good tutorial for integrating Hibernate with a simple JSF application? This is for a proof-of-concept project, so a sample application would be ideal. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079251#4079251 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079251 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - JVM Bind, port in use, but no application using it
Hello. Recently, an application I had running on JBoss AS crashed. I attempted to shut down the sever, but it didn't seem to take very well and now I can't restart it. When I try, I get a JVM bind error, telling me that the port is in use. I used NetStat to see what was on the port, but it didn't show anything using it. Can anyone offer any suggestions? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041968#4041968 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041968 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Beginner question: building portlets (JBoss Wiki)
Hello. I seem to have gotten quite rusty at basic programming. Is there a guide available anywhere on how to build portlets from their source? I looked at the http://labs.jboss.com/portal/portletswap/userguide/html/portlets.html, but it didn't explain much beyond "use Ant". This question is primarily geared towards the JBoss Wiki portlet. If it's significant, I'm using the Eclipse IDE. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035009#4035009 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035009 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Error with Event Test (JBoss 2.6-Beta1)
Hello. When I ran the Event Test in JBoss 2.6-Beta1, I get the following error" | type Exception report | | message | | description The server encountered an internal error () that prevented it from fulfilling this request. | | exception | | javax.servlet.ServletException | org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:407) | javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | | root cause | | java.lang.IllegalStateException | org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:418) | org.jboss.portal.core.controller.classic.AbstractResponseHandler.sendStatusCode(AbstractResponseHandler.java:44) | org.jboss.portal.core.controller.portlet.PortletResponseHandler.handleResponse(PortletResponseHandler.java:136) | org.jboss.portal.core.controller.classic.ClassicController.handleResponse(ClassicController.java:167) | org.jboss.portal.core.controller.classic.ClassicController.handle(ClassicController.java:91) | sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | java.lang.reflect.Method.invoke(Method.java:585) | org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) | org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) | org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287) | $Proxy229.handle(Unknown Source) | org.jboss.portal.server.RequestControllerDispatcher.invoke(RequestControllerDispatcher.java:51) | org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131) | org.jboss.portal.core.cms.aspect.IdentityBindingInterceptor.invoke(IdentityBindingInterceptor.java:46) | org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38) | org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115) | org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:67) | org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38) | org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115) | org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:108) | org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38) | org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115) | org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:188) | org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38) | org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115) | org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:85) | org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38) | org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115) | org.jboss.portal.core.aspects.server.TransactionInterceptor.org$jboss$portal$core$aspects$server$TransactionInterceptor$invoke$aop(TransactionInterceptor.java:49) | org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N514360653004530.invokeNext(TransactionInterceptor$invoke_N514360653004530.java) | org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79) | org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:262) | org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N514360653004530.invokeNext(TransactionInterceptor$invoke_N514360653004530.java) | org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java) | org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38) | org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115) | org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157) | org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:381) | javax.servlet.http.HttpServlet.service(HttpSer
[jboss-user] [JBoss Portal] - Re: what is mean by SAR
A SAR is a Service Archive. Could you be a bit more specific as to why you need one? What are you trying to accomplish? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025895#4025895 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025895 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Biweekly builds for Windows?
Hello Prabhat. I looked at that site prior and, apologies if I seem dense, but I was under the impression that *.tar files meant that it was a Linux deployment. Additionally, on opening the archive, it looks considerably different then what I am accustomed to while working with the bundled packages (which is basically, "select this file to start everything"). If this can work with Windows, then could I request that either a bundled installation be put up (again, bi-weekly or so), or that a set of installation instructions be put / linked to on site where the nightly builds are stored? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025798#4025798 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025798 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Biweekly builds for Windows?
Oh, I should have clarified that, in my opinion, this should be a bi-weekly bundled build; something primarily for test-drivers. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025793#4025793 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025793 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Biweekly builds for Windows?
Hello. Recently I created several JIRA issues on Portal 2.6A2 which I've since learned have already been fixed. To reduce the chance of this happening again, is it possible to get a bi-weekly snapshot build of Portal for Windows? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025791#4025791 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025791 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Non-coding contributions?
Great. Thanks again Thomas. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023675#4023675 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023675 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Non-coding contributions?
Thanks Thomas. Could you include an address or link as to where I should post / send anything I draft up? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023660#4023660 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023660 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Non-coding contributions?
My apologies, I thought I had posted this to the Beginners Corner. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023451#4023451 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023451 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Non-coding contributions?
Hello. Does JBoss accept contributions from non-coders / testers? I'm a systems analyst, so my training and experience is focused on the logical system design. While I can get by in Java, I'm hardly an expert. Would there be any use for my skills (UML, UI, database modeling, business logic etc.) here? If so, what would be the best way to go about contributing? The primary project I've been looking at is JBoss Portal. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023452#4023452 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023452 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Non-coding contributions?
Hello. Does JBoss accept contributions from non-coders / testers? I'm a systems analyst, so my training and experience is focused on the logical system design. While I can get by in Java, I'm hardly an expert. Would there be any use for my skills (UML, UI, database modeling, business logic etc.) here? If so, what would be the best way to go about contributing? The primary project I've been looking at is JBoss Portal. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023449#4023449 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023449 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Sub-roles
I can't tell as I don't see it in the documentation and I can't figure out how to do it in the portal itself. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020271#4020271 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4020271 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Sub-roles
Hello, Does JBoss Portal allows roles to be assigned to roles? My apologies if I'm overlooking something, but I can't tell if I don't see it in the documentation and I can't figure out how to do it in the portal itself. This would be a very useful feature for me, especially with multiple portal instances, as it would allow me pretty detailed control as to can do what. Thanks, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020269#4020269 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4020269 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: File size in CMS Admin portlet showing as 0kb
My apologies, I just noticed that it's actually listed in the 2.6 A2 fix list as JBPORTAL-1098. Should I link the two JIRA issues together, or are they separate? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019953#4019953 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019953 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Google Gadgets
Ah, alright. Thank you for the feedback Julien. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019944#4019944 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019944 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: File size in CMS Admin portlet showing as 0kb
Thank you Sohil, appreciate the feedback. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019943#4019943 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019943 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - File size in CMS Admin portlet showing as 0kb
Hello. Describe your environment: JBoss AS & Portal Version: JBoss Portal + JBoss AS 2.4.1-SP1 Did you get Portal from CVS? or download it? Downloaded package Database Vendor and Version: Using embedded Hypersonic (?) JDBC Connector and Version: N/A OS Platform: Windows XP Describe the problem: All files in the CMS Admin (including those that came with JBoss and any I upload / create) are showing with a size of 0kb. I can still preview the file by clicking on the link in the version number (http://localhost:8080/portal-core/cmspreview?v=1.0&l=en&p=/JBossPortalreferenceGuide.pdf) and I can view it by entering the URL shortcut (http://localhost:8080/portal/content/JBossPortalreferenceGuide.pdf) Additional item: I have not modified the XML configuration files at all. Basically this was a clean install, loaded it up, attempted to upload a file. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019565#4019565 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019565 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Google Gadgets
Hello. Can I ask where I can find the service mentioned above which provides Google Gadgets? I've searched the site for it, but I can't seem to locate it. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019519#4019519 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019519 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Viewing problem with FireFox
Sorry, I should clarify my system specs. JBoss Portal + JBoss AS 2.4.1-SP1 Windows XP SP-2 FireFox 2.0.0.1 with Adblock Plus (0.7.2.4) and Google Toolbar (3.0.20061204W beta) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019007#4019007 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019007 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Viewing problem with FireFox
Hello. When I add portlets in FireFox (2.0.0.1), they don't show up unless I logout and then back in. Is this a configuration problem with my FireFox? If so, is there a known solution? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018996#4018996 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018996 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Center left page layout
Hello. I'm fiddling around a bit with a copy of 2.4.1 and I'm a bit confused by the layout component of the management portlet. How do I go about selecting different page layout styles? (I checked the reference guide and couldn't quite figure it out). Also, can I ask why the "Left" position is placed on the right of "Center" instead of, well, on the left? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018952#4018952 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018952 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Google Gadgets
Hi Julien, thanks for responding. I never tried the "dynamic" gadgets (sorry, I'm not sure what the proper terminology is, "stateful"?), as in my admittedly limited search I haven't noticed any particularly useful ones for a corporate site. Still, since the whole point was that Gadgets seem to grow like weeds, a useful one is likely to appear and not being able to maintain the widget state is a definite, if not immediate, limitation. But, if I read you correctly, JBoss supports Google Gadgets? Would you happen to have an example on hand you could point me to? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016795#4016795 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016795 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Google Gadgets
Hello. I've been reviewing the features of Liferay and one of them is the support of Google Gadgets to be embedded into the portal. Does JBoss Portal offer this? If not, is it on the schedule to be added at all? I think this will be a useful feature, as the number of Google Gadgets is growing rapidly. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016635#4016635 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016635 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - OS portal comparisons
Hello. My company is currently redesigning our website and is interested in using a portal. I'm currently sketching out a list of requirements and alternatives, but I can't find that much information comparing the features of the leading OS portal providers. Is anyone aware of white papers or websites which do reviews / comparisons of the big OS portal players (JBoss, Jetspeed-2, Liferay etc.)? I always like to start these things by seeing what the experts say. Thanks, and my apologies if this is posted in the wrong place, I wasn't sure where to put it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016352#4016352 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016352 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user