[jboss-user] [Beginners Corner] - Re: ear: read a file from webapplication
You may want to try ; | URL fileURL = this.getClass().getResource(img\mypic.gif); | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134479#4134479 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134479 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Running Seam and JPBM in a separate schema
anonymous wrote : Unabled to enlist resource, see the previous warnings This is coming from JBossTS TransactionManager used in JBoss 4.2.x, which is more strict about enlisting multiple resources in a single transaction than the previous implementation from JBoss 4.0.x. See http://wiki.jboss.org/wiki/Wiki.jsp?page=Multiple1PC for a discussion of this problem. To start with, I'd leave the jbpm.cfg.xml settings as they were and set the allowMultipleLastResources=true switch in conf/jbossjta-properties.xml and see if you come around this issue. As this is not the recommended approach from a transactional perspective, you could then think of the other options as listed on the tx wiki and docs. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134480#4134480 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134480 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - upgrade to WTP 2.0.2 breaks EAR deployment in JBoss Tools 2.
I have verified this behaviour in two separate installations of Eclipse: 1. Install a fresh Eclipse Europa (eclipse-jee-europa-fall2-win32) 2. Install JBoss Tools 2.0.0GA via update site 3. Create Seam Web Project (deployed as EAR) 4. Verify that deployment to JBoss AS 4.2.2GA works 5. Run Search for updates of the currently installed features - upgrades Eclipse to WTP 2.0.2 6. Try to deploy same Seam Web Project as EAR to JBoss AS 4.2.2GA. - deployment fails. Specifically, none of the JARs specified by J2EE Module Dependencies in the EAR-project's properties are included in the EAR. Prior to the update to WTP 2.0.2, they were included. If someone else can please confirm this, I'll post an issue on JIRA. Hypothesis: WTP 2.0.2 overrides some settings made by JBoss Tools regarding EAR deployment? Test: I'll try doing the update before installing JBoss Tools. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134481#4134481 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134481 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Switching the Database Backend
EhCache? what jBPM version are you using? I'd expect to see property name=hibernate.cache.provider_classorg.hibernate.cache.HashtableCacheProvider/property in hibernate.cfg.xml, as this is the default cache provider setting in the recent versions. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134483#4134483 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134483 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: @WebService method argument names
Hi i think the solution should be somewhat like | @WebMethod | public int addNumbers( | @WebParam(name = myParamName1) int num1, | @WebParam(name = myParamName2) int num2 | ) | regards Stefan Schueffler View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134486#4134486 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134486 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: How to stream a pdf at portlet?
littleprince wrote : Can you give me more detail on Portlet 2.0 resource serving? Some sample codes might be very helpful. it is pretty much like a servlet. your portlet needs to implements the ResourceServing interface with the method | public void serverResource(ResourceRequest req, ResourceResponse resp) throws ... { | | resp.setContentType(application/pdf); | OutputStream out = resp.getPortletOutputStream(); | | out.close(); | | } | in order to create an URL to the resource you need to use during render: | ResourceURL url = resp.createResourceURL(); | | | | | The nice thing is that during resource serving you have access to the portlet request (since ResourceRequest extends PortletRequest) so you can read preferences of user and even the render parameters. | | | | We have an example of resource serving here but it is for markup, not PDF: | | | | http://anonsvn.jboss.org/repos/portal/modules/portlet/trunk/samples/src/main/java/org/jboss/portal/portlet/samples/remotecontroller/RemoteControllerPortlet.java View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134489#4134489 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134489 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Connector modules are not deployed
Hello, I'm trying to deploy my EAR project which contains a Connector module. If I use standard server provided by WTP then everything goes right and connector is packaged into ear archive. However, if I try to use server provided by JBoss Tools then connector archive is missed. I tried to dissociate the Connector from the EAR and deploy it separately, but results are the same - standard server behaves well and JBoss Tools one deploys nothing. It seems that JBoss Tools server cannot deploy connector modules at all. Is it a known limitation of JBoss Tools? Are there any workarounds? Your help is greatly appreciated. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134493#4134493 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134493 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: ear: read a file from webapplication
tx for the reply actually I just looked into the seam source how the seam.properties file is read and came up with this solution: javax.faces.context.FacesContext facesContext = javax.faces.context.FacesContext.getCurrentInstance(); | ServletContext servletContext = (ServletContext)facesContext.getExternalContext().getContext(); | | InputStream is = Resources.getResourceAsStream(img\mypic.gif, servletContext); | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134497#4134497 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134497 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Cannot deploy BPEL version of HelloWorld
Hello Alex If I try browsing to the zip file from the web console and then pressing Deploy, I get the display shown below. The AS window shows the same stack trace. regards Mark HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException org.jbpm.bpel.tools.WscompileTool.getLocation(WscompileTool.java:240) org.jbpm.bpel.tools.WscompileTool.formatClasspath(WscompileTool.java:227) org.jbpm.bpel.tools.WscompileTool.callWscompile(WscompileTool.java:197) org.jbpm.bpel.tools.WscompileTool.generateJavaMappingImpl(WscompileTool.java:156) org.jbpm.bpel.tools.WscompileTool.generateJavaMapping(WscompileTool.java:143) org.jbpm.bpel.tools.WebModuleBuilder.callJavaMappingTool(WebModuleBuilder.java:264) org.jbpm.bpel.tools.WebModuleBuilder.buildModuleImpl(WebModuleBuilder.java:102) org.jbpm.bpel.tools.WebModuleBuilder.buildModule(WebModuleBuilder.java:84) org.jbpm.bpel.web.DeploymentServlet.deployWebModule(DeploymentServlet.java:205) org.jbpm.bpel.web.DeploymentServlet.doPost(DeploymentServlet.java:99) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) note The full stack trace of the root cause is available in the JBossWeb/2.0.1.GA logs. JBossWeb/2.0.1.GA View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134501#4134501 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134501 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - Re: cannot acces application from remote sytem
Uh.. I gave you the URL of the old forum. The newer one is located at: http://www.seamframework.org/Community/Forums View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134518#4134518 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134518 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.o (annotations) supports in JBOSS 4.2.2
anonymous wrote : does it support deploying EJBs with annotations ? Yes, it supports. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134543#4134543 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134543 ___ 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 can verify this. Yesterday i changed to eclipse-jee-europa-winter which includes WTP2.0.2 After reading this post, i setup a new seamproject(2.0) which leads to this exception: 12:36:16,234 ERROR [MainDeployer] Could not initialise deployment: file:/E:/IDE/jboss-4.2.2.GA/server/default/deploy/seamear-ear.ear/ | org.jboss.deployment.DeploymentException: url file:/E:/IDE/jboss-4.2.2.GA/server/default/deploy/seamear-ear.ear/seamear-ejb.jar could not be opened, does it exist? | Ciao, Carsten View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134536#4134536 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134536 ___ 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
sounds more like a WTP bug than a jboss tools bug to me... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134540#4134540 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134540 ___ 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
The order of installation/update does not seem to matter. It seems like this might be a bug in WTP2.0.2 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134499#4134499 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134499 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - EJB 3.o (annotations) supports in JBOSS 4.2.2
im new to j2ee area ... Does JBOSS version 4.2.2 supports EJB 3.0 specification and j2EE 5 specification ?? does it support deploying EJBs with annotations ? if it not supported , what s the option i have ? is it to use the newest jboss version ? or are thera any patches ? please help Thanks n regards Sajith View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134526#4134526 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134526 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - Re: cannot acces application from remote sytem
You are in the wrong forum. Please post your question to the following forum again: http://www.jboss.com/index.html?module=bbop=viewforumf=231 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134517#4134517 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134517 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - HTTP Auth callerPrincipal
I am quite new to jboss at all, and facing a problem with a login part of an app using ejb3 with SOA and a js-ajax web-client). I have to use http-authentication and my LoginModule (extends UserNamePasswordModule) is working pretty fine so far. My LoginModule uses a session bean - my SecurityManager, to retrieve a User-Object for the name/password provided by the user through the http-auth-dialog. The name provided looks like client/username. In my SecurityManager I split and process these infos and do my db-authenticaton (for this user an this client). And it works fine - for both LDAP and DB. The problem for me now is, the the sessionContext.callerPrincipal gives me the user-provided string (client/username) whereas I would need the name of user (Userobject.getname). So how can I reach that? Do I have to set the caller somehow, when I changed the name after entering by the user? thanks a lot, regards, josh View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134530#4134530 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134530 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Deployment tool ????
hi peter , I was searching for any graphical tools for deployment. In netbeans we can deploy the archives from the IDE itself..but in IDEA there s no such funtionality.. i was looking for a way to ease the deplyoment.. well , it seems i have to copy those file manually rather than looking for a tool.. thanks for the rep.. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134533#4134533 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134533 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: EJB3 deployment:Newbie question
In case anyone else is reading this same book, I managed to get this working in the end. I found a very useful article here: http://www.adam-bien.com/roller/abien/entry/ejb_3_portability_issue_why When I changed the JNDI lookup to use the string SimpleSessionBean/remote. I finally got the JNDI lookup to resolve. Then I came across another issue Exception in thread main java.lang.NoClassDefFoundError: org/jboss/security/SecurityAssociation I tracked this down to yet another missing jar in my classpath client/jbosssx-client.jar Hope this helps anyone else reading same material :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134544#4134544 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134544 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: how to disable ajax4jsf in JBoss server console (Log)?
This is a JBoss AS related question. Go in /server/default/conf directory. There is a config file for log4j called log4j.xml. Inside the root tag put the following | logger name=org.ajax4jsf.io.parser.FastHtmlParser | level value=INFO / | appender-ref ref=CONSOLE/ | /logger View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134498#4134498 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134498 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - application clients in JBOSS 4.2.2
Hi all , Im new to j2ee development.. in order to execute an application client in JBOSS 4.2.2 do i have to make any configurations additionally ? im asking this is , i am working with EJBs , so i developed a session Bean ( EJB 3.0 ) which searches for wine types an example of an ebook . (for the testing purpoes , i just hard coded the values without using a database). That EJB is invoked by an application client (.jar) , and i packaged those two (EJB and app client) into an .ear and deployed to JBOSS. ( im using Netbeans 6.0 ) but , when the application is run in Netbeans , it gives a Nullpointer exception ... :( ... But when i deploed into the Glassfish server , it doesnot give any exception and works fine ... so that s why im asking whether JBOSS support running application clients ?? ... One more question ... is it a must to package EJB(.jar) and application client(.jar) into an .ear archive ? or cant i deploy those two seperately and then invoke the EJB from the application client ?? if so how can i do that ? are there any commands for that. ? I wud b much pleased if anybosy can help me on this.. Thanks and Regards.. Sajith PS : the code is attached with this.. package searchfacadejboss; import saji.dev.ejb.jboss.stateless.SearchFacade; import java.util.List; import javax.ejb.EJB; public class Main { @EJB private static SearchFacade searchFacade; public Main() { } public static void main(String[] args) { Main searchFacadeTest = new Main(); searchFacadeTest.doTest(); } void doTest() { try { System.out.println(Search Facade Lookup); System.out.println(Searching wines); List winesList = searchFacade.wineSearch(Red); System.out.println(Printing wines list); for (String wine:(List)winesList ){ System.out.println(wine); } }catch(Exception ex) { ex.printStackTrace(); } } } The output == Search Facade Lookup Searching wines java.lang.NullPointerException at searchfacadejboss.Main.doTest(Main.java:46) at searchfacadejboss.Main.main(Main.java:31) run-searchFacadeJboss-app-client: run: BUILD SUCCESSFUL (total time: 3 seconds) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134525#4134525 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134525 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Do we really need
Then build a full custom node which does not need a transition. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134535#4134535 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134535 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - em.persist(entity) ignores transaction
Hi, I am using JBoss 4.0.5GA and mysql 5.0 database. in web tier: UserTransaction userTransaction = | (UserTransaction)new InitialContext().lookup(java:comp/UserTransaction); | | userTransaction.begin(); | | | // in session bean, em is EntityManager | em.persist(entity); From mysql console, the entity was created immediately in database(mysql). I expected it to be created after calling userTransaction.commit(); in web tier. For debugging, I added the following code around em.persist(entity): //debug | Session session = ((HibernateSession)em).getHibernateSession(); | Transaction t = session.getTransaction(); | | t.begin(); | | em.persist(entity); // the enitty was created immediately in database (see from mysql console) | | t.rollback(); | | boolean committed = t.wasCommitted(); // value is false | boolean rollback = t.wasRolledBack(); // value is false after the rollback, the created entity did not roll back. The transaction was ignored. Is this a bug? How to use UserTransaction with entityManager? Thanks for any help! Dave View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134541#4134541 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134541 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Swimlane
correct since your processdefinition is *wrong* tasks can only exist in a task-node. Please look at the docs, search the wiki, forum and jira before posting. These issues *are* documented View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134502#4134502 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134502 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Swimlane
@Ken: The JBoss Jira ofcourse. You can find it by entering search terms View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134527#4134527 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134527 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Return Object from an action
no... you can't... store it in a processvariable and retrieve in another class View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134528#4134528 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134528 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Hot deploying EJBs
I am using Netbeans 6.0.1 and I feel my ejbs are not upto date. i.e. even though .jar file is copied to the jboss deployment folder, it runs a previous version of my ejb. always i have to restart my jboss server always. then only it uses the correct version. even it works only if i run run.bat in jboss bin. if i restart the jboss server using netbeans it still runs the previous version of my ejb. Is this a problem(nature) in jboss or netbeans? How can I avoid this, so that i can hot deploy all my ejbs without restarting jboss? (I am using jboss 4.22) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134534#4134534 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134534 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: specify task time window
anonymous wrote : Wondering whether its worth raising this as a feature request? You could... not sure what priority it gets though... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134531#4134531 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134531 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: Connector modules are not deployed
there should not be any difference. if you are using some old version of jboss tools (pre-GA) then yes there were issues like this with packaging. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134539#4134539 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134539 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: messages stuck in queues
I am busy setting up a dev environment hooked up to production data (same messaging load for feeds) to replicate this. I will also try and debug the code ,assuming I can trigger the condition, and will update the results today/tomorrow. Rationale: Our UAT/PROD environments are not ideal for this due to firewall setups and difficulty gaining access in order to retrieve logs, etc. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134510#4134510 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134510 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - jBPM + EJB - transaction management?
Hello, I have some old code that uses EJB for transactions and some quite heavy stateful session beans that are needed in some use cases in my project. I was trying to bring in jBPM into the workflow, I was wondering whether, the action handlers that I write, can invoke Stateful / stateless session beans if needed. There are some stateful beans that do lot of movement of files and manage cleanup / commit if the transaction is a failure / success respectively. I dont want to spend a lot of time refactoring the existing code. Does it make sense, or I am violating some rule here. Some enlightenment would be great. Regards, Taj View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134547#4134547 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134547 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: em.persist(entity) ignores transaction
javatwo wrote : Hi, | I am using JBoss 4.0.5GA and mysql 5.0 database. | Maybe related http://www.jboss.com/index.html?module=bbop=viewtopict=127419. Make sure that you are using InnoDB engine on MySQL server while creating the tables. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134549#4134549 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134549 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpm variables not saved
Press 'enter' as terminator for value you type in. It will be saved... Good luck Regards Kamlesh Shah View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134553#4134553 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134553 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: GPD on linux
The right click actions like - Add Action Handlers etc are not available from GDP 3.1, i believe. They are now sifted to the properties tab below. Everything should be available there. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134555#4134555 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134555 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Portlet in multiple columns
So, summing up...there's no easy way to do it? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134557#4134557 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134557 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: @WebService method argument names
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 mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - SSL Certificates Dynamic Loading
Is there any possibility i can update the server keystores and truststores while the server is running (without restarting the server). i am trying to implement ssl security and giving access to my client with proper certificates, but in the current scenario the server needs to be restarted for any new client who needs access with new certificatees. Please help me with this. Thanks in advance. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134569#4134569 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134569 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - Trying to build AOP from source but isn't getting 3rd party
I followed the instructions here: http://www.jboss.com/wiki/Wiki.jsp?page=BuildingJBossAOPFromSubversion With this branch: http://anonsvn.jboss.org/repos/jbossas/branches/Branch_AOP_1_3/ However, it fails on compilation errors, and it seems clear that its failing because there are no 3rd party libraries. Supposedly, the build system is gong to get them for me automatically. Can anyone offer insight into troubleshooting this? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134564#4134564 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134564 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - org.jboss.deployment.DeploymentException
Hi guys, using JBoss 4.2 via jems-installer-1.2.1.CR4.jar and JBoss Seam 2.0.1. and Eclipse Europa with JBoss Tools When creating a Seam-Project in eclipse like http://docs.jboss.org/tools/2.0.0.GA/seam/en/html/directory_structure.html and run it on the server i become the following error: 14:13:58,906 INFO [EARDeployer] Init J2EE application: file:/C:/jboss-4.2.2.GA/server/default/deploy/project-ear.ear/ | 14:13:58,906 ERROR [MainDeployer] Could not initialise deployment: file:/C:/jboss-4.2.2.GA/server/default/deploy/project-ear.ear/ | org.jboss.deployment.DeploymentException: url file:/C:/jboss-4.2.2.GA/server/default/deploy/project-ear.ear/jboss-seam.jar could not be opened, does it exist? | at org.jboss.deployment.DeploymentInfo.init(DeploymentInfo.java:214) | at org.jboss.deployment.EARDeployer.init(EARDeployer.java:288) | at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) | at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:597) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy9.deploy(Unknown Source) | at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421) | at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263) | at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) | at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:597) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) | at $Proxy0.start(Unknown Source) | at org.jboss.system.ServiceController.start(ServiceController.java:417) | at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:597) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy4.start(Unknown Source) | at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302) | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at
[jboss-user] Re: Overriding the Identity component.. (like lacewiki does) fa
See Thread at: http://www.techienuggets.com/Detail?tx=15106 Posted on behalf of a User Seam appears to be expecting an instance of RuleBasedIdentity versus Identity. RuleBasedIdentity is an extension of identity that deals with Drools. Extending RuleBasedIdentity instead Idendity will make it to work. Rafa. In Response To: For some reason seam wants an securityRules-setter on my inherited Identity component. I can't find any securityRules, any idea why? this simeple case: | @Name(org.jboss.seam.security.identity) | @Scope(SESSION) | @BypassInterceptors | @Install(precedence = APPLICATION) | @AutoCreate | public class YSIdentity extends Identity { | | private static final long serialVersionUID = -1573888046524276986L; | private UserAccount userAccount; | private ContentProviderAccount contentProviderAccount; | | // We don't care if a user is logged in, just check it... | @Override | public void checkRestriction(String expr) { | if (!evaluateExpression(expr)) { | Events.instance().raiseEvent(org.jboss.seam.notAuthorized); | throw new AuthorizationException(String.format(Authorization check failed for expression [%s], | expr)); | } | } | | @Override | public boolean hasPermission(String name, String action, Object... args) { | | userAccount = (UserAccount) Component.getInstance(contentProviderAccount); | contentProviderAccount = (ContentProviderAccount) Component.getInstance(contentProviderAccount); | | if (args == null || args.length == 0) { | // All the security checks currently need arguments... | return false; | } | | | return false; | } | | } | | results in this: | ... | at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362) | at org.jboss.Main.boot(Main.java:200) | at org.jboss.Main$1.run(Main.java:508) | at java.lang.Thread.run(Thread.java:595) | Caused by: java.lang.IllegalArgumentException: no such setter method: com.yourstardom.middle.support.YSIdentity.securityRules | at org.jboss.seam.util.Reflections.getSetterMethod(Reflections.java:236) | at org.jboss.seam.Component.initInitializers(Component.java:486) | at org.jboss.seam.Component.init(Component.java:264) | at org.jboss.seam.Component.init(Component.java:217) | at org.jboss.seam.init.Initialization.addComponent(Initialization.java:949) | ... | ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Throwing Exception from a web service method
. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134563#4134563 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134563 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] Re: EJB3: How to access @Stateless EJBs from custom LoginModule?
See Thread at: http://www.techienuggets.com/Detail?tx=21643 Posted on behalf of a User I am having the same problem. were you able to solve it? thanks a lot. In Response To: Hi, I have a JBoss 4.2.2.GA WebService application, where the WebServices should be secured. So I wrote a custom LoginModule for JBoss 4.2.2.GA which extends the org.jboss.security.auth.spi.UsernamePasswordLoginModule. I defined an application-policy in the login-config.xml and I use the @SecurityDomain annotation for the secured @WebService beans So far so good: My LoginModule is called correctly. Inside the LoginModule I want to call a local @Stateless bean which provides methods to retrieve the user/roles via Hibernate from the database. But how to access this bean? I tried the @EJB annotation = no success I tried a lookup via JNDI = no success (NameNotFoundException) MyLoginModule: | public class MyLoginModule extends UsernamePasswordLoginModule | { | private MyAuthenticationService myAuthenticationService; | | @Override | public void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options) | { | super.initialize(subject, callbackHandler, sharedState, options); | try { | Context jndiContext = new InitialContext(); | this.myAuthenticationService = (MyAuthenticationService) jndiContext.lookup(java:comp/env/ejb/MyAuthenticationServiceImpl); // does not work (ejb not bound) | // does not work: I tried all name combinations | // jndiContext.lookup(java:comp.ejb3/env/ejb/MyAuthenticationServiceImpl) = does not work (ejb not bound) | // jndiContext.lookup(ejb/MyAuthenticationServiceImpl) = does not work (ejb not bound) | // jndiContext.lookup(MyAuthenticationServiceImpl) = does not work (MyAuthenticationServiceImpl not bound) | } | catch (NamingException ex) { | // TODO Auto-generated catch block | ex.printStackTrace(); | } | } | | @Override | protected Principal createIdentity(String username) throws Exception | { | MyUser user = this.myAuthenticationService.retrieveUserByLoginName(username); | return user; | } | | @Override | protected String getUsersPassword() throws LoginException | { | MyUser myUser = (MyUser) this.getIdentity(); | return myUser.getPassword(); | } | | @Override | protected Group[] getRoleSets() throws LoginException | { | Group roles = new SimpleGroup(Roles); // Roles is the expected GroupName for the roles | | for (Principal role : ((MyUser) this.getIdentity()).getRoles()) { | roles.addMember(role); | } | | return new Group[] { roles }; | } | | @EJB // has no effect | public void setMyAuthenticationService(MyAuthenticationService myAuthenticationService) | { | this.myAuthenticationService = myAuthenticationService; | } | | } | | MyAuthenticationServiceImpl: | @Stateless | public class MyAuthenticationServiceImpl implements MyAuthenticationService | { | | // ... | | public MyUser retrieveUserByLoginName(String loginName) throws LoginException | { | // here the DAO is called which uses the EntityManager | } | | // ... | | } | MyAuthenticationService: | public interface JaasService | { | // ... | public MyUser retrieveUserByLoginName(String loginName) throws LoginException; | // ... | } | What is wrong? ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Jboss Profiler version
Question for Dummy but what is the last version available to deploy fo Jboss Profiler ? Is it the RC3 or the CR4. By the way what does mean CR and RC. Regards M View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134570#4134570 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134570 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - get UserModule via lookup exception
HI, env. JBossPortal 2.6.4 (bundled with Jboss AS) oracle 9.2 portlet in jsf tecnology (with portlet-3.2.0-20071207.053132-44.jar to manage portlet lifecycle) we defined a new user properties and just want to get it from UserProfileModule. To do this following manuals we are trying to retrieve the UserModule by UserModule userModule = (UserModule) new InitialContext().lookup(java:portal/UserModule) command but it throws a classcastexception telling the object is a HibernateUserModuleImpl. What's my mistake? Suggestions? I read about the default configuration and the possibility to define delegation module to manage users and roles but i wouldnt do it. thanks in advance View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134560#4134560 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134560 ___ 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
besides that actually being correct (e.g. not listing them in application.xml) i don't follow why that should affect it ;( does it work with eclipse 3.2.1/wtp 2.0.1? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134576#4134576 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134576 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - ConnectionFactory lookup returns null
Hi all, I'm having a problem doing a lookup in a QueueConnectionFactory from a remote client application. The jndi name is found but the lookup method always returns null. I'm using JBoss 4.2.2GA, integrating with WebsphereMQ 6.0. Here's the part of my code: | Properties prop = new Properties(); | prop.put(Context.INITIAL_CONTEXT_FACTORY,org.jnp.interfaces.NamingContextFactory); | prop.put(Context.PROVIDER_URL, jnp://localhost:1099); | prop.put(Context.URL_PKG_PREFIXES,org.jboss.naming:org.jnp.interfaces); | ctx = new InitialContext(prop); | | qcf = (QueueConnectionFactory)ctx.lookup(jms/sadsxp/QCF); | if (qcf == null) | System.out.println(null); | connection = qcf.createQueueConnection(); | The message null is always displayed. Thanks for the attention, Juliana. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134578#4134578 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134578 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Portlet in multiple columns
Yes there is: use the YUI 2.5 kit, use their layout manager or their grid (grid.css) - redefine your own layout to fit your needs. The YUI kit is very well documented and they are fast at answering questions on user forum, even naïve questions, it's very nice. Now, if your needs are simple then it will be nice and easy, if your needs is to control the layout of a page or a region in the portlet event loop then it is more difficult : undocumented, unexplained, almost unreadable and not answered yet. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134579#4134579 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134579 ___ 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 gotten it to work by NOT including any dependent jars in application.xml - then they are deployed in the ear. If I do include them in application.xml (they are automatically put there if I choose to generate deployment descriptor) they are left out of the ear. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134571#4134571 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134571 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: Connector modules are not deployed
I haven't checked the code yet, but my impression is that you are most likely correct and connectors are not properly taken care of. I will investigate this issue when I get to the office. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134589#4134589 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134589 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Return Object from an action
Hi Ronald, Thank you very much for your response, and it is very useful because I were thinking that solution and now I can confirm it. Thanks once again. Regards, Victor View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134583#4134583 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134583 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Multiple views of one process
Hi, Got a question regarding the process image. Currently it is possible to see the image of a process in the portal by deploying processimage.jpg and gpd.xml. I was wondering if it is possible to see multiple images of the same process based on who the user is. If we take the websale tutorial for example, - A normal user might only see 3 steps of the process from beginning to end, 1. Create websale order 2. Ship to user 3. End - The manager/admin may see a different picture, the detailed processimage as deployed originally. A reason for this may be that the manager of the portal does not want the user to find out each step of the business process and instead just wants to present a highlevel process to the user. It might not be necessary (and in real life on a shopping site like eBay, it isn't) for the user to know that there is a task called wait for money along side with their order being shipped. What I have in mind is that I will develop the detailed business process with Eclipse, and then modify the processimage.jpg using a paint program as well as modifying the gpd.xml based on the modified image and save both files under another name, say HighLevelProcessImage.jpg and HighLevelProcessImage.xml and then deploying these two along with processimage.jpg and gpd.xml. Based on whoever is logged in at the time, they will either see HighLevelProcessImage.jpg or they will see processimage.jpg based on their access rights. Is there a config file where I can say normal users sees HighLevelProcessImage.jp and admins and managers sees processimage.jpg or will I have to code this up? Sorry if this question has been asked before, but any help would be appreciated. Thanks a lot David View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134573#4134573 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134573 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: Connector modules are not deployed
I use JBoss Tools 2.0.0.GA installed by update manager to Eclipse Europa Fall2. Should I provide some more details about my configuration? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134586#4134586 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134586 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Javassist user questions] - Re: How to create CtClass java.lang.Object
anonymous wrote : I see you not uploading latest versions to maven repozitory. Do you want to delegate this task to me? Thank you. But I think someone else should be responsible for this. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134597#4134597 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134597 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Successfuly configuring JobExecutorServlet
Has somebody resolve this issue? Is it not possible the fork/join with the intermediate nodes in async way? Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134605#4134605 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134605 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: cannot get XA connection using PostgreSQL on JBoss4.0.5
the postgresql datasource doesn't have the setURL method. you have to put the host, port, and db name in the mbean. xa-datasource-property name=ServerNamehostname/xa-datasource-property xa-datasource-property name=PortNumber5432/xa-datasource-property xa-datasource-property name=DatabaseNamedbname/xa-datasource-property chip View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134607#4134607 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134607 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: SSL and native libraries
fastbob wrote : I tried an experiment. I commented out the SSL connector and things worked (except for SSL, of course). | | But I found the cause of the problem. I took a closer look at the installed packages on fedora. Tomcat was installed as part of the system packages (probably by me), and as soon as I removed the tomcat-native package, the native library was not loaded. SSL started working. | | Bob Same thing here. Apparently, there is a problem with the native libraries. I have had a lot of problems getting SSL enabled for any Win32 apr-based libraries. In this case, I had everything working on a Windows 2003 server. Then I applied the native libraries (from http://labs.jboss.org/jbossweb/downloads/jboss-native/?action=awindowstate=maximized), and SSL died. Same errors that you specified: 10:23:42,564 WARN [Connector] Property strategy not found on the protocol handler. | 10:23:42,580 WARN [Connector] Property clientAuth not found on the protocol handler. | 10:23:42,580 WARN [Connector] Property keystoreFile not found on the protocol handler. | 10:23:42,580 WARN [Connector] Property keystorePass not found on the protocol handler. | 10:23:42,752 INFO [AprLifecycleListener] Loaded Apache Tomcat Native library 1.1.12. | 10:23:42,845 INFO [AprLifecycleListener] APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. | 10:23:44,408 INFO [Http11AprProtocol] Initializing Coyote HTTP/1.1 on http-172.25.141.151-8080 | 10:23:44,424 ERROR [Http11AprProtocol] Error initializing endpoint | java.lang.Exception: No Certificate file specified | at org.apache.tomcat.jni.SSLContext.setCertificate(Native Method) | at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:683) | at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:107) | at org.apache.catalina.connector.Connector.initialize(Connector.java:1073) | | I have had similar issues trying to get LDAP over SSL working in Windows using the Apache ldap modules, which also rely on APR and APRUtils Win32 binaries. I've posted messages to the APR-dev mailing list, but they sent me to the Apache-dev list, and the issue was pretty much just ignored there. I imagine there is somebody that knows what's going on with this, but I can't figure it out. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134608#4134608 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134608 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.o (annotations) supports in JBOSS 4.2.2
Yep, though we're not yet fully compliant with EJB3.0 and JEE5 Specifications. When AS5 goes GA, we will be. S, ALR View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134610#4134610 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134610 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Successfuly configuring JobExecutorServlet
anonymous wrote : Is it not possible the fork/join with the intermediate nodes in async way? You mean async nodes between the fork and the join? If you think this is a problem, please make a unittest for it that demonstrates the problem View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134611#4134611 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134611 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Multiple views of one process
No, sorry... this is not possible. You have to develop this yourself View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134613#4134613 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134613 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Successfuly configuring JobExecutorServlet
Here the process: | ... | fork name=fork1 | transition to=ibk-df-classifier name=1/transition | transition to=bayes-wf-classfier name=2/transition | transition to=svm-df-classifier name=3/transition | /fork | | node name=node1 async=true | action class=DoHeavyJob1/ | transition to=join1/transition | /node | | node name=node2 async=true | action class=DoHeavyJob2/ | transition to=join1/transition | /node | | node name=node3 async=true | action class=DoHeavyJob3/ | transition to=join1/transition | /node | | join name=join1 | transition to=finish/transition | /join | | node name=finish | action class=Result/ | /node | ... | In have this scene: Intermediate nodes takes long time executing, so I need the async=true for their concurrent execution, and I cannot execute the finish node until ALL intermediate nodes had finished. In the DoHeavyJob1, DoHeavyJob2 and DoHeavyJob3 ActionHandlers, I have coded the executionContext.leaveNode(); at the end of the execute method. | class DoHeavyJob1{ | public void execute( ExecutionContext executionContext ) { | //Time task Simulation | Thread.sleep ( 10 ); | | executionContext.leaveNode(); | }//execute | } | These actions are executed fine with JobExecutor, and I see that are executed in a concurrent way. But, the known org.hibernate.StaleObjectStateException occurs when the last actionHandler makes the leaveNode. Please, is there any way to implement this issue? Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134620#4134620 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134620 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Deployment tool ????
Your original post did not say you were attempting to do this from an IDE. Any IDE that supports JBossAS should have a way of deploying applications as part of the build and run or debug process. I do not use IDEA, so I don't know how it works there. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134621#4134621 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134621 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: application clients in JBOSS 4.2.2
If you use annotations, and are happy with default settings, then no additional descriptors are necessary to deploy an EJB. Your code appears to be for a standalone client. In that case, you do not need an ear file. Instead, place the EJB jar file into the server/xxx/deploy directory. And include the client's jar file in the classpath when you run the client (you will also need the interface for the EJB in the classpath). Finally, I am not sure if the @EJB annotation works in remote clients in JBossAS 4.2.x, you might have to use 5.0 (this could explain the null pointer exception you are seeing). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134624#4134624 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134624 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How to access variable of 'Element' type, Element being
Many thanks Alex. Meghana. PS: We found number of issues while upgrading JBPM beta to JBPM GA on Oracle and SQL Server. They are mostly hibernate issues though. Just FYI. If you are interested I can send you detailed email about issues. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134627#4134627 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134627 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: multiple jBPM questions
1. Not sure, but you can use jbpm-enterprise component to avoid synchronization issues if there are any 2. Jackrabbit is supported by the jbpm. Look on the jbpm documentation and cvs repository for examples. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134628#4134628 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134628 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: get UserModule via lookup exception
i solved, sorry my mistake. i was exporting in my portlet war some libraries that generated conflicts with the portal ones View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134631#4134631 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134631 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Recommended reading...
tag to boost the thread back up View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134635#4134635 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134635 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Problem retrieving service in developing a client
My client code is: System.out.println(Starting Test Client); | URL url = new URL(http://localhost:8080/EspertoWS/ServiceBean?wsdl;); | QName qname = new QName(http://ws.server.espertoEnel.nergal.it/,ServiceBean;); | System.out.println(Creating a service Using: \n\t |+ url + \n\tand + qname); | ServiceFactoryImpl factory = (ServiceFactoryImpl) ServiceFactoryImpl.newInstance(); | System.out.println(Passa! Qname: +qname.getNamespaceURI()); | | Service remote = factory.createService(url,qname); | System.out.println(Obtaining reference to a proxy object. Remote: wsdl location +remote.getWSDLDocumentLocation()+ Service name:+remote.getServiceName()); | ServiceLocale proxy = (ServiceLocale) remote.getPort(qname,ServiceLocale.class); | and when i run this i obtain this excepition: Exception in thread main org.jboss.ws.metadata.wsdl.WSDLException: javax.wsdl.WSDLException: WSDLException (at /definitions/message[1]/part): faultCode=UNBOUND_PREFIX: Unable to determine namespace of 'tns:getCurvaAllarmiPicchiResponse'. at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:154) at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:321) at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:115) at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:86) at org.jboss.ws.core.jaxrpc.client.ServiceImpl.(ServiceImpl.java:111) at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157) at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:128) at it.nergal.espertoEnel.server.hibernate.test.TestWS.main(TestWS.java:31) Caused by: javax.wsdl.WSDLException: WSDLException (at /definitions/message[1]/part): faultCode=UNBOUND_PREFIX: Unable to determine namespace of 'tns:getCurvaAllarmiPicchiResponse'. at com.ibm.wsdl.util.xml.DOMUtils.getQName(DOMUtils.java:309) at com.ibm.wsdl.util.xml.DOMUtils.getQualifiedAttributeValue(DOMUtils.java:367) at org.jboss.ws.tools.wsdl.JBossWSDLReaderImpl.getQualifiedAttributeValue(JBossWSDLReaderImpl.java:2046) at org.jboss.ws.tools.wsdl.JBossWSDLReaderImpl.parsePart(JBossWSDLReaderImpl.java:1305) at org.jboss.ws.tools.wsdl.JBossWSDLReaderImpl.parseMessage(JBossWSDLReaderImpl.java:1284) at org.jboss.ws.tools.wsdl.JBossWSDLReaderImpl.parseDefinitions(JBossWSDLReaderImpl.java:336) at org.jboss.ws.tools.wsdl.JBossWSDLReaderImpl.readWSDL(JBossWSDLReaderImpl.java:2293) at org.jboss.ws.tools.wsdl.JBossWSDLReaderImpl.readWSDL(JBossWSDLReaderImpl.java:2257) at org.jboss.ws.tools.wsdl.JBossWSDLReaderImpl.readWSDL(JBossWSDLReaderImpl.java:2310) at org.jboss.ws.tools.wsdl.JBossWSDLReaderImpl.readWSDL(JBossWSDLReaderImpl.java:2331) at org.jboss.ws.tools.wsdl.JBossWSDLReaderImpl.readWSDL(JBossWSDLReaderImpl.java:2363) at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:127) ... 7 more My web service class is: @Stateless | //@WebService(serviceName=sdsws,portName=sdswsport) | @WebService(endpointInterface=it.nergal.espertoEnel.server.ws.ServiceLocale, | serviceName=EspertoWS,portName=ServiceBeanPort, | targetNamespace=http://localhost:8080/EspertoWS/ServiceBean;) | public class ServiceBean implements ServiceLocale{ | ... | } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134636#4134636 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134636 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - user lost their session (login) after hot deploy.
I everyone, I'm using Jboss AS 4.0.5 in a linux red hat environment. I have a web aplication (folder .war) deployed and running and when I need to update the content of the application, let's say a .jsp file, I just 'touch' to the web.xml and the automatic undeploy e deploy run. But then all users lost their sessions, so they need to login again. Is there any configuration I can make, because with jboss AS 3.X that never happened. Thanks in advance. Jeancarlo View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134639#4134639 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134639 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - Re: HTTP Auth callerPrincipal
Do this... sessionContext.getCallerPrincipal ().getClass().getName() It will always be an instance java.security.Principal. If you want your userObj to be returned, then make your userObj implement java.security.Principal interface and instantiate it in your LoginModule. So now your UserObj becomes the type Principal you are set. I picked this from javadocs for javax.ejb.EJBContext. SessionContext extends this. public java.security.Principal getCallerPrincipal()Obtain the java.security.Principal that identifies the caller. | Returns: | The Principal object that identifies the caller. This method never returns null. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134643#4134643 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134643 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: user lost their session (login) after hot deploy.
Try doing an exploded deployment: http://wiki.jboss.org/wiki/Wiki.jsp?page=ExplodedDeployment Then when you update a jsp, it will will be recompiled and deployed immediately - you do not have to touch web.xml. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134646#4134646 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134646 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: Connector modules are not deployed
but why should connectors be special compared to what the generic server do and we do ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134647#4134647 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134647 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - Exception to invoke remote object when upgrade to jboss-aop2
Hey, I use in jboss4.2GA. I upgrade to jboss-aop2 with the ant script. Now when i try to call to stateless ( The statelss is a simple one , no aop) in the server i get the following excpetion: java.lang.NullPointerException | at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:245) | at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106) | at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82) | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:734) | at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:560) | at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:369) | at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:165) | at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:163) | at org.jboss.remoting.Client.invoke(Client.java:1550) | at org.jboss.remoting.Client.invoke(Client.java:530) | at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:103) | at $Proxy0.doSomethingFunny(Unknown Source) | at DemoTester.testSaveHotel(DemoTester.java:87) | at DemoTester.main(DemoTester.java:59) | at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:74) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:103) | at $Proxy0.doSomethingFunny(Unknown Source) | at DemoTester.testSaveHotel(DemoTester.java:87) | at DemoTester.main(DemoTester.java:59) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134648#4134648 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134648 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.o (annotations) supports in JBOSS 4.2.2
thanks guys , ALRubinger , could u pls tel me whts the meaning of goes GA ? ... what does GA stands for ? regads Sajith View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134649#4134649 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134649 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.o (annotations) supports in JBOSS 4.2.2
Sorry, that's General Availability == Official Release, not Beta or RC (Release Candidate). S, ALR View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134652#4134652 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134652 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Do we really need
Hi bungrudi , I was trying to do something similar to what you are talking about. My idea is to have a node using which I should be able to define the transitions at runtime. Have a look at the sample process definition below, if you observe state 3 does not have any transition. ?xml version=1.0 encoding=UTF-8? | process-definition xmlns= name=statetrans | start-state name=start-state1 | transition to=state1/transition | /start-state | | state name=state1 | transition to=state2/transition | /state | | state name=state2 | transition to=end-state1/transition | transition to=state1 name=to state1/transition | /state | | state name=state3/state | | end-state name=end-state1/end-state | /process-definition In the below test case, I tried to added the transition at runtime and it worked :) . Now I am in the process of building my custom node :) public void testAddingTransitionsToState3AtRuntime() { | Node node3 = processDefinition.getNode(state3); | Node node2 = processDefinition.getNode(state2); | Node end = processDefinition.getNode(end-state1); | | | Token token = processInstance.getRootToken(); | assertEquals(start-state1, token.getNode().getName()); | | processInstance.signal(); | assertEquals(state1, token.getNode().getName()); | | //Ideally I would like to add new transition from state1 to state3 | Transition trans = processInstance.getRootToken().getNode() | .getDefaultLeavingTransition(); | Node to = trans.getTo(); | Node from = trans.getFrom(); | System.out.println(from + from.getName() + to + to.getName()); | | trans.setTo(node3); | processInstance.signal(); | assertEquals(state3, token.getNode().getName()); | //As state 3 does not have any transition defined it will return null | Transition leavingTransitionState3 = processInstance.getRootToken().getNode() | .getDefaultLeavingTransition(); | //Creating new transition. | leavingTransitionState3 = new Transition(test); | leavingTransitionState3.setTo(node2); | leavingTransitionState3.setFrom(node3); | processInstance.getRootToken().getNode().addLeavingTransition(leavingTransitionState3); | System.out.println(from + leavingTransitionState3.getFrom().getName() + to + leavingTransitionState3.getTo().getName()); | | processInstance.signal(); | assertEquals(state2, token.getNode().getName()); | processInstance.signal(); | assertEquals(end-state1, token.getNode().getName()); | } | [/url] Hope it helped. Thanks Sandeep View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134653#4134653 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134653 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - @PersistenceUnit on private javax.persistence.EntityManager.
I've been following along with an example using EJB3/JBOSS from the book Beginning Java EE 5 Platform and don't know why JBoss is complaining about an annotated private instance of an Entity Manager. I was wondering if anyone can let me know where I am going wrong. Here is the code: | package beans; | | import javax.persistence.Entity; | import java.io.Serializable; | import javax.persistence.Id; | | @Entity | public class Stock implements Serializable { | // The persistent fields | private String tickerSymbol; | private String name; | | // Constructors | public Stock() {} | public Stock(String tickerSymbol, String name) { | this.tickerSymbol = tickerSymbol; | this.name = name; | } | | // The access methods for persistent fields | // tickerSymbol is the id | @Id | public String getTickerSymbol() { | return tickerSymbol; | } | | public void setTickerSymbol(String tickerSymbol) { | this.tickerSymbol = tickerSymbol; | } | | public String getName() { | return name; | } | | public void setName(String name) { | this.name = name; | } | } | | package beans; | | import javax.ejb.Remote; | | @Remote | public interface StockList { | // The public business methods on the StockList bean | public String getStock(String ticker); | public void addStock(String ticker, String name); | public void updateStock(String ticker, String name); | public void deleteStock(String ticker); | } | | package beans; | | import beans.Stock; | import javax.persistence.PersistenceContext; | import javax.ejb.Stateless; | import javax.persistence.EntityManager; | | @Stateless | public class StockListBean implements StockList { | | // The reference to the entity manager | @PersistenceContext | private EntityManager _manager; | | // The public business methods. These must be coded in the | // interface also | | public String getStock(String ticker) { | Stock stock = _manager.find(Stock.class, ticker); | return stock.getName(); | } | | public void addStock(String ticker, String name) { | _manager.persist(new Stock(ticker, name)); | } | | public void updateStock(String ticker, String name) { | Stock stock = _manager.find(Stock.class, ticker); | stock.setName(name); | } | | public void deleteStock(String ticker) { | Stock stock = _manager.find(Stock.class, ticker); | _manager.remove(stock); | } | } | I've deployed a jar called StockListApp.ejb3 with the classes compiled from this code and come up against the following error -- 2008-03-06 18:35:55,671 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/C:/apps/jboss-4.2.2.GA/server/all/deploy/StockListApp.ejb3 2008-03-06 18:35:55,671 DEBUG [org.jboss.ejb3.EJB3Deployer] start application, deploymentInfo: [EMAIL PROTECTED] { url=file:/C:/apps/jboss-4.2.2.GA/server/all/deploy/StockListApp.ejb3 } deployer: MBeanProxyExt[jboss.ejb3:service=EJB3Deployer] status: Starting state: START_DEPLOYER watch: file:/C:/apps/jboss-4.2.2.GA/server/all/deploy/StockListApp.ejb3 altDD: null lastDeployed: 1204828555656 lastModified: 1204828555656 mbeans: , short name: StockListApp.ejb3, parent short name: null 2008-03-06 18:35:55,671 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:service=EJB3,module=StockListApp.ejb3 2008-03-06 18:35:55,671 DEBUG [org.jboss.ejb3.Ejb3Module] Starting jboss.j2ee:service=EJB3,module=StockListApp.ejb3 2008-03-06 18:35:55,671 DEBUG [org.jboss.system.ServiceController] stopping service: jboss.j2ee:jar=StockListApp.ejb3,name=StockListBean,service=EJB3 2008-03-06 18:35:55,671 WARN [org.jboss.system.ServiceController] Ignoring request to stop nonexistent service: jboss.j2ee:jar=StockListApp.ejb3,name=StockListBean,service=EJB3 2008-03-06 18:35:55,671 DEBUG [org.jboss.system.ServiceController] destroying service: jboss.j2ee:jar=StockListApp.ejb3,name=StockListBean,service=EJB3 2008-03-06 18:35:55,671 WARN [org.jboss.system.ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:jar=StockListApp.ejb3,name=StockListBean,service=EJB3 2008-03-06 18:35:55,671 WARN [org.jboss.ejb3.JmxKernelAbstraction] jboss.j2ee:jar=StockListApp.ejb3,name=StockListBean,service=EJB3 is not registered 2008-03-06 18:35:55,671 DEBUG [org.jboss.ejb3.Ejb3Module] Starting failed jboss.j2ee:service=EJB3,module=StockListApp.ejb3 java.lang.RuntimeException: Illegal @PersistenceUnit on private javax.persistence.EntityManager beans.StockListBean._manager :There is no default persistence unit in this deployment. at org.jboss.injection.PersistenceContextHandler.handleFieldAnnotations(PersistenceContextHandler.java:182) at
[jboss-user] [Beginners Corner] - Re: application clients in JBOSS 4.2.2
thanks Peter , u r the one who has replied for almost all my questions so far .. :) finally i got the problem solved .. when JBOSS integrates with Netbeans 6.0 , it automatically detects the settings to be conformed with J2EE 1.4 specs.not J2EE 5...so il try with JBOSS 5.0 later.. so i had to edit the configuration files as well , and had to use JNDI as well. but the same application is working in Glassfish server , without the need of any modification of config files , and without using JNDI lookups.. here , iam deploying the application client's jar also to the deploy directory , and after that clicks on RUN in Netbeans , so no classpath is involving here.Im that couldnt i use the @Local interface instead of the @Remote one ? another question , what s the use of @EJB annotations ? are those only for local clients ? won't that be supports for Local clients ? also , what is the use of the local interface (@Local) .. i couldnt find any example code which uses that interface..i tried even to use it..but it failed.so i gave that up..so please , if u have any simple example code which uses the @Local interface please send me ( through this or my mail [EMAIL PROTECTED] ) so that i can get a thorough idea of EJB .. Thanks and Regards Sajith View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134657#4134657 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134657 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: @PersistenceUnit on private javax.persistence.EntityMana
There is no default persistence unit in this deployment | | | | Do you have a persistence.xml in the META-INF of your JAR? | | | | And please wrap your stack traces in a code block, too. :D | | | | S, | | ALR | | | | | | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134658#4134658 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134658 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: @PersistenceUnit on private javax.persistence.EntityMana
Course, given that last post, I shouldn't be one to complain about formatting. :) S, ALR View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134659#4134659 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134659 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.o (annotations) supports in JBOSS 4.2.2
its ok. thanks ALR View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134660#4134660 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134660 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Problem with Session EJB - Hibernate
Hi, i am very new on Hibernate, and also EJB's. The problem is that i just want to save @ManyToOne related records based on different tables. Please tell me if i am following a WRONG architecture? And also when i execute mainline, i get an error of java.lang.RuntimeException: javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Can't commit because the transaction is in aborted state | . | . | . | . | at com.las.client.MainLine.main(MainLine.java:52) | Caused by: java.lang.IllegalStateException: org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: com.las.pojo.BookEntity.categoryEN - com.las.pojo.CategoryEntity | at | I use MSSQL, PK Fields are identity.. Here are my codes.. CATEGORY has many BOOKs Book Entity / Pojo @Entity | @Table(name=BOOK) | public class BookEntity implements Serializable { | @Id @GeneratedValue | @Column(name=ID) | private Long id; | | @Column(name=NAME) | private String name; | | @ManyToOne | @JoinColumn(name=CATEGORYID) | private CategoryEntity categoryEN; | | public BookEntity() { | } | | public void setId(Long id) { | this.id = id; | } | | public Long getId() { | return id; | } | | public void setName(String name) { | this.name = name; | } | | public String getName() { | return name; | } | | public void setCategoryEN(CategoryEntity categoryEN) { | this.categoryEN = categoryEN; | } | | public CategoryEntity getCategoryEN() { | return categoryEN; | } | } | Category Entity / Pojo | @Entity | @Table(name=CATEGORY) | public class CategoryEntity implements Serializable { | @Id @GeneratedValue | @Column(name=ID) | private Long id; | | @Column(name=NAME) | private String name; | | @OneToMany(mappedBy=categoryEN) | private SetBookEntity bookList; | | public CategoryEntity() { | | } | | public CategoryEntity(String name) { | this.name = name; | } | public void setId(Long id) { | this.id = id; | } | | public Long getId() { | return id; | } | | public void setName(String name) { | this.name = name; | } | | public String getName() { | return name; | } | | public void setBookList(SetBookEntity bookList) { | this.bookList = bookList; | } | | public SetBookEntity getBookList() { | return bookList; | } | } BookEJB @Stateless(name=BookEJB) | public class BookEJBBean implements BookEJB, BookEJBLocal { | | @PersistenceContext(unitName=lasDatabase) | private EntityManager em; | | public BookEJBBean() { | | } | | public void Save(BookEntity BookEN) { | em.persist(BookEN); | } | public void Delete(BookEntity BookEN) { | } | public ListBookEntity getAll() { | return em.createQuery(from BOOK) | .getResultList(); | } | public BookEntity getSimple(Long id) { |return em.find(BookEntity.class, id); | } | } CategoryEJB @Stateless(name=CategoryEJB) | public class CategoryEJBBean implements CategoryEJB, Serializable { | | @PersistenceContext(unitName=lasDatabase) | private EntityManager em; | | public CategoryEJBBean() { | | } | | public void Save(CategoryEntity categoryEN) { | em.persist(categoryEN); | } | public void Delete(CategoryEntity categoryEN) { | } | public ListCategoryEntity getAll() { | return em.createQuery(from CATEGORY) | .getResultList(); | } | public CategoryEntity getSimple(Long id) { |return em.find(CategoryEntity.class, id); | } | } CLIENT CODE public class MainLine { | public MainLine() { | } | | public static void main(String[] args) { | MainLine mainLine = new MainLine(); | | try { | Context context = new InitialContext(); | | CategoryEJB categoryRemote = (CategoryEJB)context.lookup(lasejb/CategoryEJB/remote); | BookEJB bookRemote = (BookEJB)context.lookup(lasejb/BookEJB/remote); | | CategoryEntity
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Problem with Session EJB - Hibernate
Please ignore the line below in main code.. bookEN.setIsbn(123-321-333); View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134664#4134664 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134664 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - web.xml
Version: JBoss4.0.5GA I'm using static HTML error pages for redirecting any errors to a customized error page. For some reason, the JBoss is not redirecting to the static pages, rather showing the default HTTP error message. Also, I'm using BASIC authentication, instead of FORM based authentication. The following code is part of my web.xml file. login-config auth-methodBASIC/auth-method realm-namebackoffice/realm-name /login-config !-- static error HTML pages -- !-- HTML errors: 400,401,403,404,408,500,503,505,508 -- !-- start here -- error-page error-code 404 /error-code /error/error404.html /error-page error-page error-code 401 /error-code /error/error401.jsp /error-page error-page error-code 400 /error-code /error/error400.html /error-page error-code 500 /error-code /error/error500.html /error-page error-page error-code 505 /error-code /error/error505.html /error-page !-- end here -- welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list /web-app View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134668#4134668 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134668 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Changing the access denied error page to a custom page
I'm having the same trouble using JBoss4.0.5GA Any comments ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134670#4134670 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134670 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: application clients in JBOSS 4.2.2
You can only use @Local if you call the ejb from a web application or another ejb. You are not doing that, you are calling it from a standalone client. And the IDE is hiding that fact from you, including setting the classpath. (This is one reason why every time I have to break in a new developer I have him, or her, do everything by hand with a basic text editor. Only after I am convinced that they know what they are doing and how things work and why they work that way will I let them use an IDE.) The @EJB annotation is used to inject an EJB reference into the code. It is designed to work in both standalone clients and clients deployed to an app server. But as I pointed out earlier, it might not work in standalone clients in 4.2.x. What tutorial or book are you using to learn EJB3? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134671#4134671 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134671 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: web.xml
Try getting rid of the spaces around the error codes. (I have noticed other places where white space seems to cause problems.) Also, when posting xml text, please surround with code brackets (select text and hit the Code button). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134672#4134672 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134672 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: @Interceptor call failure on @WebMethod
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 workarounds? Thanks, - Ryan View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134674#4134674 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134674 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - Re: Trying to build AOP from source but isn't getting 3rd pa
I am checking out from svn now. I'm off out though, so if you haven't heard anything tomorrow let me know in case I forget to build it :-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134675#4134675 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134675 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: @Interceptor call failure on @WebMethod
Please do a search on JIRA (under EJBTHREE Project), and if you cannot find an issue, go ahead and file one. If you attach an isolated test case exhibiting this problem, that's very helpful. For extra credit, you can even poke around and see what the differences between working @Interceptors and you case is. See http://wiki.jboss.org/wiki/Wiki.jsp?page=DevEJB3NewPlugin. S, ALR View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134677#4134677 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134677 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Hot-deploy of an EJB loses my JAXBContext
I have an application that uses a war to accept web service requests, the requests are authenticated, and if authenticated the request is routed to an EJB to perform whatever task is requested. The problem is that when I bring up JBoss (4.0.5.GA) the application behaves as advertised, but if I make a change and hot deploy, it fails. I know that isn't very helpful so let me elaborate. The web service call has a SOAP header containing an XML Object from some client, we have a couple of forms this credential can take, but the jest of it is that I reconstitute the credential object using JAXB. To do this I first examine the annotations of the base Credential class to determine the actual implementation being sent my matching the xsi:type of the XML to the QName of the JAXB Class to use. I mention this because I can manually follow the annotations to find the correct class (and it does). Once I hot deploy the application (including just touching the ear to cause it to redeploy with no changes) I still can traverse the annotations but I get the JAXBException about the class not found in the context. I am sure it is some kind of classloading issue, but I have checked and re-checked and none of my classes are duplicated in other jar/wars. How about a clue as where to begin this search as I am out of ideas. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134679#4134679 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134679 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: Connector modules are not deployed
In my opinion, connectors can be processed in the same way the utility projects are. The only significant difference is rar extension instead of jar. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134681#4134681 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134681 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: web.xml
Actually, that does not work either. After three login attempts, it basically change the URL to http://localhost:8080/something/index.faces rather it should change it to http://localhost:8080/something/error/error401.html If I manually try to access this URL, it works. This sort of error could be the redirection that is not taking place. Any thoughts ? The modified code is pasted below security-role role-nameBackofficeUser/role-name /security-role login-config auth-methodBASIC/auth-method realm-namebackoffice/realm-name /login-config !-- static error HTML pages -- !-- HTML errors: 400,401,403,404,408,500,503,505,508 -- !-- start here -- error-page error-code404/error-code /error/error404.html /error-page error-page error-code401/error-code /error/error401.html /error-page error-page error-code400/error-code /error/error400.html /error-page error-page error-code403/error-code /error/error403.html /error-page error-page error-code408/error-code /error/error408.html /error-page error-page error-code503/error-code /error/error503.html /error-page error-page error-code500/error-code /error/error500.html /error-page error-page error-code505/error-code /error/error505.html /error-page !-- end here -- welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list /web-app View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134685#4134685 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134685 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: @PersistenceUnit on private javax.persistence.EntityMana
ALRubinger wrote : There is no default persistence unit in this deployment. Do you have a persistence.xml in the META-INF of your JAR? | The answer to your question is no. Should I? From what I read in the book, I thought JBoss was supposed to automatically create the database back end with Hypersonic database. Having a cursory glance at persistence.xml from Googling it looks like some sort of Hibernate configuration PS: Will format error logs in code block in future :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134687#4134687 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134687 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: @PersistenceUnit on private javax.persistence.EntityMana
BTW: Have just taken a look at the code download from Apress website for this book. It has defined an extra exception class and iused it in StockList interface, and as a consequence StockListBean. Because the design pattern in the class that was found by JBoss didn't match what it was expecting, could this be the root cause of the exception that got thrown? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134688#4134688 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134688 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: @PersistenceUnit on private javax.persistence.EntityMana
Well, JBoss automatically ships with the Hypersonic database to give you features requiring persistence out of the box...like JMS. But even if you use the Hypersonic DB, you still need to: * Create a database (namespace, not database server) for your application (See references for your DB impl). * Create your DB schema to match that which JPA/EJB3 Entities expect. See hbm2ddl configuration for Hibernate, can be done from persistence.xml; this will handle this step for you via autogen to save you this step and keep everything in line during development. * Create a datasource to define the connection pool to your DB. If you use Hypersonic built-in, this is already done. Otherwise you must make your own *-ds.xml file and place in deploy. http://wiki.jboss.org/wiki/Wiki.jsp?page=DSdotXML * Create a persistence.xml to define your persistence unit (this will point to your datasource); yes this is where implementation-specific config may be done (ie. Hibernate in JBoss's case) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134690#4134690 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134690 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: @PersistenceUnit on private javax.persistence.EntityMana
JGF1 wrote : BTW: Have just taken a look at the code download from Apress website for this book. | It has defined an extra exception class and iused it in StockList interface, and as a consequence StockListBean. | Because the design pattern in the class that was found by JBoss didn't match what it was expecting, could this be the root cause of the exception that got thrown? Nope...your exception is complaining about a lack of default persistence unit. Please take a look at http://trailblazer.demo.jboss.com/EJB3Trail/persistence S, ALR View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134691#4134691 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134691 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - optionoverrides and DataVersion
It's possible that optimistic locking and using OptionOverrides to tweak optimistic locking to do some things that we want to do. However, it seems like the fact that the way that the DataVersion is set for an attribute (using global OptionOverrides) is not thread safe at all. From the documentation: E.g., to override the default node versioning used with optimistic locking: | | DataVersion v = new MyCustomDataVersion(); | cache.getInvocationContext().getOptionOverrides().setDataVersion(v); | Node ch = cache.getRoot().addChild(Fqn.fromString(/a/b/c)); | | This seems completely useless except for single-threaded applications. Am I wrong? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134692#4134692 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134692 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: optionoverrides and DataVersion
Hmmm. Maybe I am wrong. Let me rephrase it: Does getInvocationContext() return a different object per thread? Is that what makes it so that two different threads doing this at the same time don't step on each others' toes? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134693#4134693 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134693 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Name not found exception
Hi, I am trying to deply and run my application in Jboss. I am migrating my application from weblogic to Jboss. I am using EJB1.x and I would like to know if I need to make specific changes in the xml files to support EJB1.x as I see that EJB3.x is used in the recent versions. Anyway, I am getting the following error when the application hits one of the beans while logging in. 15:29:58,640 ERROR [STDERR] javax.naming.NameNotFoundException: UserProfile not bound 15:29:58,640 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(Naming Server.java:529) 15:29:58,640 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(Naming Server.java:537) 15:29:58,640 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingS erver.java:543) 15:29:58,640 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServ er.java:296) 15:29:58,640 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0( Native Method) 15:29:58,640 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(N ativeMethodAccessorImpl.java:39) 15:29:58,640 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo ke(DelegatingMethodAccessorImpl.java:25) 15:29:58,640 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:5 85) 15:29:58,640 ERROR [STDERR] at sun.rmi.server.UnicastServerRef.dispatch(Unic astServerRef.java:294) 15:29:58,640 ERROR [STDERR] at sun.rmi.transport.Transport$1.run(Transport.j ava:153) 15:29:58,640 ERROR [STDERR] at java.security.AccessController.doPrivileged(N ative Method) 15:29:58,640 ERROR [STDERR] at sun.rmi.transport.Transport.serviceCall(Trans port.java:149) 15:29:58,640 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport.handleMess ages(TCPTransport.java:466) 15:29:58,640 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$Connection Handler.run(TCPTransport.java:707) 15:29:58,640 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595) 15:29:58,640 ERROR [STDERR] at sun.rmi.transport.StreamRemoteCall.exceptionR eceivedFromServer(StreamRemoteCall.java:247) 15:29:58,640 ERROR [STDERR] at sun.rmi.transport.StreamRemoteCall.executeCal l(StreamRemoteCall.java:223) 15:29:58,640 ERROR [STDERR] at sun.rmi.server.UnicastRef.invoke(UnicastRef.j ava:126) 15:29:58,640 ERROR [STDERR] at org.jnp.server.NamingServer_Stub.lookup(Unkno wn Source) 15:29:58,640 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(Namin gContext.java:627) 15:29:58,640 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(Namin gContext.java:589) 15:29:58,640 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialCon text.java:351) 15:29:58,640 ERROR [STDERR] at ru.ibs.xbcat.view.bean.UserAccount.getUserId( UserAccount.java:232) The server log gives me the following details: 2008-03-03 15:27:10,156 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:service=EjbModule,module=dascEJB.jar 2008-03-03 15:27:10,156 DEBUG [org.jboss.ejb.EjbModule] Starting jboss.j2ee:service=EjbModule,module=dascEJB.jar 2008-03-03 15:27:10,156 DEBUG [org.jboss.ejb.EjbModule] startService, starting container: UserProfile 2008-03-03 15:27:10,156 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:jndiName=local/[EMAIL PROTECTED],service=EJB 2008-03-03 15:27:10,156 DEBUG [org.jboss.ejb.StatelessSessionContainer] Starting jboss.j2ee:jndiName=local/[EMAIL PROTECTED],service=EJB 2008-03-03 15:27:10,156 DEBUG [org.jboss.ejb.StatelessSessionContainer] Begin java:comp/env for EJB: UserProfile 2008-03-03 15:27:10,156 DEBUG [org.jboss.ejb.StatelessSessionContainer] TCL: [EMAIL PROTECTED] 2008-03-03 15:27:10,156 DEBUG [org.jboss.ejb.StatelessSessionContainer] Unable to retrieve orbjavax.management.InstanceNotFoundException: jboss:service=CorbaORB is not registered. 2008-03-03 15:27:10,171 DEBUG [org.jboss.ejb.StatelessSessionContainer] Binding an EJBReference EJB/UserProfileHome 2008-03-03 15:27:10,171 DEBUG [org.jboss.ejb.StatelessSessionContainer] Binding EJB/UserProfileHome to ejb-link: UserProfile - UserProfile 2008-03-03 15:27:10,171 DEBUG [org.jboss.ejb.StatelessSessionContainer] End java:comp/env for EJB: UserProfile 2008-03-03 15:27:10,171 DEBUG [org.jboss.ejb.plugins.local.BaseLocalProxyFactory] UserProfile cannot be Bound, doesn't have local and local home interfaces 2008-03-03 15:27:10,171 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:service=EJB,plugin=pool,jndiName=local/[EMAIL PROTECTED] 2008-03-03 15:27:10,171 DEBUG [org.jboss.ejb.plugins.StatelessSessionInstancePool] Starting jboss.j2ee:service=EJB,plugin=pool,jndiName=local/[EMAIL PROTECTED] I have the following entries made in the xmls. Ejb-jar.xml: ejb-nameUserProfile/ejb-name ejb-ref ejb-ref-nameEJB/UserProfileHome/ejb-ref-name ejb-ref-typeSession/ejb-ref-type
[jboss-user] [JBossCache] - Re: optionoverrides and DataVersion
(slaps self on head). I looked at the code, and see that InvocationContext is ThreadLocal. So anybody, can I just have confirmation that using OptionOverrides to set data version for optimistic locking is thread-safe? :-P View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134695#4134695 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134695 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user