[jboss-user] [Remoting] - Re: JBREM-877: New Socket Connection is being Created for Ev
Hi Kumarselvan, Are you still experiencing this problem? Thanks, Ron View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123716#4123716 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123716 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: SFSB vs. JavaBean
EricJava wrote : [EMAIL PROTECTED] wrote : anonymous wrote : If I put just @Name, it's a POJO, and you're saying it's request scoped? | | | | Yes. | | Waitaminute, looking at the JBoss Seam book (an official JBoss publication), by Michael Yuan and Thomas Heute, on page 320: | | anonymous wrote : However, Seam POJO components are stateful and have a conversational scope by default. | | When you say request scoped maybe you mean temporary conversation scoped? | Must be an error ! Seam POJO's are default EVENT (request) scoped and not conversation or temp. conversation scoped. From the Seam reference: anonymous wrote : | By default, JavaBeans are bound to the event context. | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123717#4123717 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123717 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - Re: java.lang.SecurityException: Insufficient method permiss
Thank you for your suggestions! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123718#4123718 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123718 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: how can i use *.seam and *.jsf at the same time?
my faces-config.xml like this: ?xml version='1.0' encoding='UTF-8'? | !DOCTYPE faces-config PUBLIC | -//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN | http://java.sun.com/dtd/web-facesconfig_1_1.dtd; | | faces-config | | !-- i18n -- | | !-- | | lifecycle | phase-listenerorg.jboss.seam.jsf.TransactionalSeamPhaseListener/phase-listener | /lifecycle | -- | application | view-handlercom.sun.facelets.FaceletViewHandler/view-handler | /application | managed-bean | descriptionManagedBean sample that uses UploadBean/description | managed-bean-nameMyManagedBean/managed-bean-name | managed-bean-classsample.jsf.MultipartBean/managed-bean-class | managed-bean-scoperequest/managed-bean-scope | /managed-bean | navigation-rule | navigation-case | from-outcomeupload/from-outcome | to-view-id/upload.jsp/to-view-id | redirect/ | /navigation-case | navigation-case | from-outcomeflashgateway/from-outcome | to-view-id/flashgateway.jsp/to-view-id | redirect/ | /navigation-case | /navigation-rule | lifecycle | phase-listener | org.jboss.seam.jsf.TransactionalSeamPhaseListener | /phase-listener | /lifecycle | | /faces-config my pages.xml like this: !DOCTYPE pages PUBLIC -//JBoss/Seam Pages Configuration DTD 1.2//EN |http://jboss.com/products/seam/pages-1.2.dtd; | | pages | page view-id=/dvd.xhtml | action=#{search.selectFromRequest} / | | page view-id=/admin/ship.xhtml | no-conversation-view-id=/admin/admin.xhtml/ | | page view-id=/admin/accept.xhtml | no-conversation-view-id=/admin/admin.xhtml/ | | page view-id=/admin/admin.xhtml | navigation | rule if-outcome=ship | redirect view-id=/admin/ship.xhtml/ | /rule | rule if-outcome=accept | redirect view-id=/admin/accept.xhtml/ | /rule | /navigation | /page | | !-- this action ensures that only admin users can access anything under /admin -- | page view-id=/admin/* | restrict#{s:hasRole('admin')}/restrict | /page | | page view-id=* | navigation from-action=#{identity.logout} | redirect view-id=/home.xhtml/ | /navigation | | navigation from-action=#{identity.login} | rule if=#{currentUser.admin} | redirect view-id=/admin/admin.xhtml/ | /rule | /navigation | | navigation | rule if-outcome=home | redirect view-id=/home.xhtml/ | /rule | | rule if-outcome=browse | redirect view-id=/browse.xhtml/ | /rule | | rule if-outcome=checkout | redirect view-id=/checkout.xhtml/ | /rule | | rule if-outcome=showorders | redirect view-id=/showorders.xhtml/ | /rule | | rule if-outcome=admin | redirect view-id=/admin/admin.xhtml/ | /rule | | rule if-outcome=upload | redirect view-id=/upload.jsp/ | /rule | /navigation | /page | | | exception class=org.jboss.seam.security.NotLoggedInException | redirect view-id=/home.xhtml | messageYou must be logged in to access administrative pages./message | /redirect | /exception | | exception class=org.jboss.seam.security.AuthorizationException | redirect view-id=/home.xhtml | messageYou are not authorized to access administrative pages./message | /redirect | /exception | | /pages and my web.xml like this: ?xml version=1.0 encoding=UTF-8? | | web-app version=2.5 | xmlns=http://java.sun.com/xml/ns/javaee; | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; | xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; | | !-- Seam -- | | listener | listener-classorg.jboss.seam.servlet.SeamListener/listener-class | /listener | | filter | filter-nameSeam Exception Filter/filter-name | filter-classorg.jboss.seam.servlet.SeamExceptionFilter/filter-class | /filter | | filter-mapping | filter-nameSeam Exception Filter/filter-name |
[jboss-user] [JBoss Tools (users)] - Re: code completion not working
which editor do you use to open the .xhtml files ? If not the jboss tools one that is probably why. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123725#4123725 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123725 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: Eclipse Crashes with JBoss Tools
Thnx Heaps;0) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123726#4123726 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123726 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Eclipse Crashes with JBoss Tools
Hi all, I have installed Eclipse Europa (version 3.3.1.1) on Linux (Centos 5 and Ubuntu Feisty Fawn) along with JBoss Tool 2.0.0.GA. On both development systems Eclipse closes down by itself after around 1 hour or so. Any explanation on such behaviour and how I can fix this ? Regards, Yogesh View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123720#4123720 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123720 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: JBoss 4.3.0 fails to start
ah got it - yes, we need to be able to communicate with the server to verify it is running or not. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123727#4123727 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123727 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JBoss Seam, a great product that doesn't work :(
anonymous wrote : | You created a web project - so it is deploying as a WAR - right? | Yes it's a war. anonymous wrote : | | | Also what does your Authenticator class look like, and your components.xml. The error is saying that it can't find your Authenticator class/component. | package org.domain.Simple.session; | | import org.jboss.seam.annotations.In; | import org.jboss.seam.annotations.Logger; | import org.jboss.seam.annotations.Name; | import org.jboss.seam.log.Log; | import org.jboss.seam.security.Identity; | | | @Name(authenticator) | public class Authenticator | { | @Logger Log log; | | @In Identity identity; | | public boolean authenticate() | { | log.info(authenticating #0, identity.getUsername()); | //write your authentication logic here, | //return true if the authentication was | //successful, false otherwise | identity.addRole(admin); | return true; | } | } | | ?xml version=1.0 encoding=UTF-8? | components xmlns=http://jboss.com/products/seam/components; | xmlns:core=http://jboss.com/products/seam/core; | xmlns:persistence=http://jboss.com/products/seam/persistence; | xmlns:drools=http://jboss.com/products/seam/drools; | xmlns:bpm=http://jboss.com/products/seam/bpm; | xmlns:security=http://jboss.com/products/seam/security; | xmlns:mail=http://jboss.com/products/seam/mail; | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; | xsi:schemaLocation= | http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.0.xsd | http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.0.xsd | http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.0.xsd | http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.0.xsd | http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd | http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.0.xsd | http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd; | |core:init debug=true jndi-pattern=@jndiPattern@/ | |core:manager concurrent-request-timeout=500 | conversation-timeout=12 | conversation-id-parameter=cid/ | |persistence:managed-persistence-context name=entityManager | auto-create=true | entity-manager-factory=#{SimpleEntityManagerFactory}/ | |persistence:entity-manager-factory name=SimpleEntityManagerFactory | persistence-unit-name=Simple/ | |drools:rule-base name=securityRules |drools:rule-filesvalue/security.drl/value/drools:rule-files |/drools:rule-base | |security:identity authenticate-method=#{authenticator.authenticate} |security-rules=#{securityRules} | remember-me=true/ | |event type=org.jboss.seam.notLoggedIn |action execute=#{redirect.captureCurrentView}/ |/event |event type=org.jboss.seam.postAuthenticate |action execute=#{redirect.returnToCapturedView}/ |/event | |mail:mail-session host=localhost port=2525 username=test password=test / | |!-- For use with jBPM pageflow or process management -- |!-- |bpm:jbpm | bpm:process-definitions/bpm:process-definitions | bpm:pageflow-definitions/bpm:pageflow-definitions |/bpm:jbpm |-- | | /components | OK this is it. I'll head out and generate an EAR. Also do I make of this ? | --- Packages waiting for a deployer --- | [EMAIL PROTECTED] { url=file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/as-ear.ear/ } | deployer: null | status: null | state: INIT_WAITING_DEPLOYER | watch: file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/as-ear.ear/ | altDD: null | lastDeployed: 1201379415187 | lastModified: 1201249808750 | mbeans: | | [EMAIL PROTECTED] { url=file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/jboss-seam-dvd.ear } | deployer: null | status: null | state: INIT_WAITING_DEPLOYER | watch: file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/jboss-seam-dvd.ear | altDD: null | lastDeployed: 1201379415281 | lastModified: 1201379415281 | mbeans: | | [EMAIL PROTECTED] { url=file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/numberguess.ear } |
[jboss-user] [JBoss Tools (users)] - Re: Eclipse Crashes with JBoss Tools
http://blog.xam.dk/archives/79-Eclipse-The-Memory-Hog-resolved!.html and http://blog.xam.dk/archives/68-Eclipse-and-memory-settings.html View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123724#4123724 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123724 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - at browser, cannot load jboss using http://ip address:8080
Hi everybody! When i open browser and type http://localhost:8080/, it display jboss server page. and then when i type also http://127.0.0.1:8080, it display jboss server page correctly. But when i type http://199.7.7.69:8080, it show me the page cannot be display message. I configure browser option like that 199.7.7.*;127.0.0.1;localhost;199.7.7.69(at proxy setting). but no matter how much i try, i can not load jboss page using http://199.7.7.69:8080 ip address. let me know the solution. please help me. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123731#4123731 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123731 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JBoss Seam, a great product that doesn't work :(
EAR deployment failed :( with something like the message I wrote saying EJBDeployer NotYETINSTALLED View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123733#4123733 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123733 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - JBoss Seam problem with download file big file
I try modify File Servlet from wiki example. Because I need get file from filesystem. My code look: /* | * To change this template, choose Tools | Templates | * and open the template in the editor. | */ | package ru.fuckorama.servlets; | | import javax.persistence.EntityManager; | import javax.persistence.NoResultException; | import javax.servlet.ServletException; | import javax.servlet.http.HttpServlet; | import javax.servlet.http.HttpServletRequest; | import javax.servlet.http.HttpServletResponse; | import javax.transaction.UserTransaction; | import java.io.ByteArrayOutputStream; | import java.io.DataInputStream; | import java.io.File; | import java.io.FileInputStream; | import java.io.IOException; | import java.io.InputStream; | import java.io.OutputStream; | | public class FileServlet extends HttpServlet { | | private static final String DOWNLOAD_PATH = /download.seam; | private byte[] fileNotFoundImage; | | public FileServlet() { | InputStream in = getClass().getResourceAsStream(/img/filenotfound.png); | if (in != null) { | ByteArrayOutputStream out = new ByteArrayOutputStream(); | byte[] buffer = new byte[512]; | try { | int read = in.read(buffer); | while (read != -1) { | out.write(buffer, 0, read); | read = in.read(buffer); | } | | fileNotFoundImage = out.toByteArray(); | } catch (IOException e) { | } | } | | } | | @Override | protected void doGet(HttpServletRequest request, HttpServletResponse response) | throws ServletException, IOException { | File file = null; | int length = 0; | if (DOWNLOAD_PATH.equals(request.getPathInfo())) { | UserTransaction userTx = null; | boolean startedTx = false; | try { | | userTx = (UserTransaction) org.jboss.seam.Component.getInstance(org.jboss.seam.transaction.transaction); | if (userTx.getStatus() != javax.transaction.Status.STATUS_ACTIVE) { | startedTx = true; | userTx.begin(); | } | | String id = request.getParameter(fileId); | file = new File(c:/arch/ + id); | length = (int) file.length(); | | if (startedTx) { | userTx.commit(); | } | } catch (Exception ex) { | try { | if (startedTx) { | userTx.rollback(); | } | } catch (Exception rbEx) { | rbEx.printStackTrace(); | } | throw new RuntimeException(ex); | } | response.setContentType(application/pdf); | | response.setHeader(Content-Disposition, attachement; filename=\ + file.getName() + \); | | FileInputStream fileToDownload = new FileInputStream(file); | response.setContentLength(fileToDownload.available()); | int c; | while ((c = fileToDownload.read()) != -1) { | response.getOutputStream().write(c); | } | | | response.getOutputStream().flush(); | } | } | } | When I ask from server big file(100mb), I get error with OutMemoryHeap on Jboss server. Please somebody help me. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123734#4123734 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123734 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: how can i use *.seam and *.jsf at the same time?
Hi, why does it have to be a jsp file? Can't you convert it to an xhtml file? If I were you I would look at the JSF spec and see what context parameters are available. By default it would look for .jsp files but via the: javax.faces.DEFAULT_SUFFIX You change that to xhtml. cheers View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123735#4123735 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123735 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - jBPM BPEL 1.1 GA - should bpel2 samples work?
I'm trying to deploy atm and loan bpel2 samples. I've changed bpel to bpel2 folder in ant build file and get an error for each imported wsdl. My bpel 1.1 processes (namespace ...ws/2004/03/busuness-process) which are working fine under jBPM BPEL 1.1 Beta3 also are not deploying. Is it planned to support bpel 1.1 and/or 2.0? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123739#4123739 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123739 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: JBoss and IP address
Use the -b option to start JBoss. See this http://wiki.jboss.org/wiki/Wiki.jsp?page=JBoss42FAQ for more details. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123742#4123742 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123742 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: at browser, cannot load jboss using http://ip address:80
Use the -b option to start JBoss. See this http://wiki.jboss.org/wiki/Wiki.jsp?page=JBoss42FAQ for more details. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123741#4123741 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123741 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Rollback container managed persistence EJB
Rollback will happen for System exceptions (which extend from RuntimeException). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123743#4123743 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123743 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: SFSB vs. JavaBean
msystems wrote : Must be an error ! Seam POJO's are default EVENT (request) scoped and not conversation or temp. conversation scoped. Indeed: http://docs.jboss.org/seam/2.0.1.CR2/reference/en/html/concepts.html anonymous wrote : By default, JavaBeans are bound to the event context. which is not the same as the request, or the conversation, or the temporary conversation. Event is stateless. Reading on in the doc: anonymous wrote : However, they do not provide the functionality of a session bean (declarative transaction demarcation, declarative security, efficient clustered state replication, EJB 3.0 persistence, timeout methods, etc). Is this correct? If I'm using a POJO and I put a @Restrict on it, that @Restrict is ignored? If that's the case, I probably can't use POJOs at all in my application, because nearly every operation is restricted. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123744#4123744 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123744 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Persistence in EJB3
Have you created and placed the -ds.xml file for your MySqlDS datasource in the deploy folder of the server? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123745#4123745 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123745 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Configuration JNDI
anonymous wrote : what lookup I have to put there? The same as for the EJB's? I haven't worked with Entity beans. But, if you are asking where to put the jndi-name for your entity beans, then create a file named jboss.xml and add the following contents to it: jboss | enterprise-beans | entity | ejb-nameData/ejb-name | jndi-nameMyEntityBean/jndi-name | /entity | /enterprise-beans | /jboss Place this jboss.xml file in the META-INF folder of your ejb jar (the same place where you have the ejb-jar.xml) and deploy the ejb jar. Then in your code, you can lookup the bean through the jndi-name MyEntityBean. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123746#4123746 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123746 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - How to generate annotated Java classes from hbm.xml files
Hello, we have a couple of old projects. The mapping is described in hbm.xml files. We wish to migrate this to annotated Java classes. We performed theses steps: 1. We generated a hibernate console configuration for our project. 2. opening hibernate perspective 3. Run / hibernate code generation 4. filling out the dialog on the main tab choosing the console configuration and selecting an output directory on the exporters tab selecting Java 5 syntax and domain code generation 5 Run Code is generated but without annotations. so we specified in step 4 generate ejb3 annotations. But this results in the following error and no code is generated. org.hibernate.tool.hbm2x.ExporterException: Error while processing template pojo/Pojo.ftl | Error while processing template pojo/Pojo.ftl | freemarker.core.InvalidReferenceException: Expression pojo.generateManyToOneAnnotation is undefined on line 11, column 3 in pojo/Ejb3PropertyGetAnnotation.ftl. | Expression pojo.generateManyToOneAnnotation is undefined on line 11, column 3 in pojo/Ejb3PropertyGetAnnotation.ftl. | freemarker.core.InvalidReferenceException: Expression pojo.generateManyToOneAnnotation is undefined on line 11, column 3 in pojo/Ejb3PropertyGetAnnotation.ftl. | Expression pojo.generateManyToOneAnnotation is undefined on line 11, column 3 in pojo/Ejb3PropertyGetAnnotation.ftl. | We are using JBoss Tolls 2.0.0GA The projects we are trying to convert are JSF Projects created with the former Exadel studio. Is it possible to convert our hbm.xml files to annotatd lava classes? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123747#4123747 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123747 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: how can i use *.seam and *.jsf at the same time?
thanks a lot. i used a uploadbean developed by javazoom . they have no xhtml spec in their components. what can i do? i don't know how to upload a file via a xhtml file in jboss seam dvd store example. i believe you would tell me something about that. :) thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123749#4123749 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123749 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: how can i use *.seam and *.jsf at the same time?
If you want to go the XHTML route, you need to define a blabla.taglib.xml for it and add the necessary context parameter for facelets to pick it up. There is info about it here facelets.dev.java.net , in the wiki I think there are taglib.xml files for other libraries you can have a look at. Also Seam has built in support for file uploads, check out this documentation: http://docs.jboss.com/seam/2.0.1.CR2/reference/en/html/controls.html (haven't tried it myself yet) good luck View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123750#4123750 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123750 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Cannot build JBPM source from CVS
Hi Ronald, It seems to be that the build problem is more then a more then a âÂÂshortâ refactoring problem. I am using windows XP , ant 1.7 and java 5 and have the same problem since a month. It would be grate if somebody would fix the broken build and add gpd to hudson.jboss.org so it is visible to all if the build is broken. Regards Philipp View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123751#4123751 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123751 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - How to change http to https in wsdlsoap:address on WSDL
This is the scenario, there is a JBoss server (S2) behind of Apache server (S1), connected through mod_jk. This Apache server it's again behind a CISCO SSL concentrator. When I request https://www.site.com/app/ws1?wsdl the WSDL showed the next soap address location: service name=ServiceName | port binding=tns:ServiceNameBinding name=ServiceNamePort | soap:address location=http://www.site.com:80/app/ws1?wsdl/ | /port | /service | A change the file jboss.beans to: property name=webServiceHostwww.site.com/property | property name=webServiceSecurePort443/property | property name=webServicePort80/property | property name=alwaysModifySOAPAddresstrue/property I need that soap address location showed in the WSDL generated be service name=ServiceName | port binding=tns:ServiceNameBinding name=ServiceNamePort | soap:address location=https://www.site.com:443/app/ws1?wsdl/ | /port | /service Any idea are welcome.. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123752#4123752 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123752 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Rollback container managed persistence EJB
Thanks for your help View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123753#4123753 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123753 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Jboss messaging - persistance issue for blob data
143564 wrote : Now I found my issue. | | Instead of changing the code, i went to clustered-oracle-persistant.xml. then i added a tag | attribute name=UsingBinaryStream false/ attribute | | Now every thing is perfect. | | Thanks | | | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123755#4123755 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123755 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: JBoss and IP address
Thank you. I'd been using 4.0.4 before ... when I upgraded to 4.2.2 I thought something in my environment must have changed ... didn't think it was JBoss itself (Duh!) ... Now everything works as expected. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123759#4123759 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123759 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Maven Question
Anyone having a nice solution other than installing the provided jars manually into an own repository? If not, is this planned for the 5.x releases of jboss-as? it would be nice something like: | dependency | groupIdorg.jboss/groupId | artifactIdjboss-as/artifactId | version4.2.1.GA/version | scopeprovided/scope | /dependency | Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123760#4123760 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123760 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: mod_jk intermittently loosing connection to jboss 4.2
I also get the same problem. Having looked at http://jira.jboss.com/jira/browse/JBWEB-82 i'm wondering how could i practically use the workaround? i mean, what does it mean to use the jbossnative? BTW, is it possible to run jboss-4.2.2 with normal tomcat instead of jboss-web? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123762#4123762 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123762 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Fails to run on Jboss4.2.2
Ok, So I guest I'm missing something simple here. Can you give me a hint? Any one? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123764#4123764 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123764 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Testimonials] - Re: Cost of JBOSS migration
i promoted our jboss cluster to production on thursday. our site gets about 50,000 visits per day... not hits, visits. in production, jboss replaced 5 websphere 5.1 machines and apache over 2 ibmihs boxes. include qa, development and staging environments migrated and the count goes to 25 jboss instances that replaced websphere. apache another half dozen or so over ibmihs. administration of the clusters is much simpler than it was for websphere. nodeagents, deployment manager, fix pack wizards, all that crazy crap is gone.. now, simple clean perl scripts do most of the magic.. even staging deployments of new code release by our developers.. auto magically.. cost of administration in terms of administrators time has decreased significantly. and well, if youve ever been billed by IBM you can imagine the savings there ;) ... hth. e. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123766#4123766 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123766 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Value is not Valid with s:entityConverter and equals an
In case anybody is interested, I was hitting a similar problem and here's what was happening in my case: EntityConverter#getAsObject() calls EntityManager#find(), but EntityManager#find() may return a proxy instead of the real object when there's already a proxy for the object in the session. Now, there's code in UISelectOne#matchValue (in JSF RI) that checks whether the value it received is in the list of select items: //Coerce the item value type before comparing values. Class type = value.getClass(); Object newValue; try { newValue = getFacesContext().getApplication(). getExpressionFactory().coerceToType(item.getValue(), type); } catch (ELException ele) { ... This coercion doesn't work since value.getClass() is a proxy class, whereas item.getValue() is plain MyObject, so it can't be coerced to the proxy type. Thus the effect is that I can't select some entities out of the list, while others are selectable just fine. I'm going to implement my own slightly hacked version of EntityStore Seam component to see if I can work around the issue. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123768#4123768 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123768 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Error with XML-based security and JMX service beans
I'm running JBoss 5.0.0.Beta3, and when I try to start an application that has EJB security defined in the META-INF/ejb-jar.xml file and a JMX service bean defined via an @EJB annotation, I get the error seen below. Am I doing something wrong? If this is a bug I'll file a JIRA issue and upload my code for it. Here is my ejb-jar.xml: | ?xml version=1.0 encoding=UTF-8? | ejb-jar xmlns=http://java.sun.com/xml/ns/javaee; | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; | xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd; | version=3.0 | | assembly-descriptor | method-permission | role-nameteller/role-name | method | ejb-nameStatelessCalculatorBean/ejb-name | method-namecalculateFutureValue/method-name | /method | /method-permission | method-permission | role-namebank-manager/role-name | method | ejb-nameStatelessCalculatorBean/ejb-name | method-namegetInterestRate/method-name | /method | /method-permission | method-permission | unchecked / | method | ejb-nameStatelessCalculatorBean/ejb-name | method-namefreeForAll/method-name | /method | /method-permission | exclude-list | method | ejb-nameStatelessCalculatorBean/ejb-name | method-namegetTheAnswerToLifeTheUniverseAndEverything/method-name | /method | /exclude-list | /assembly-descriptor | /ejb-jar | Here is my EJB: | | @Stateless | public class StatelessCalculatorBean implements Calculator, CalculatorRemote { | | @EJB(beanName = InterestRateMBean) | private InterestRateManager interstRateManager; | | public double calculateTotalInterest(double presentValue, int years) { | return calculateFutureValue(presentValue, years) - presentValue; | } | | | public double calculateFutureValue(double presentValue, int years) { | double interestRate = interstRateManager.getInterestRate() / 100; | return presentValue * Math.pow((1.0 + interestRate), years); | } | | | public double getInterestRate() { | return interstRateManager.getInterestRate(); | } | | | public String getTheAnswerToLifeTheUniverseAndEverything() { | return 42; | } | | | public String freeForAll() { | return You're in!; | } | | } | Here is the error I get: | 13:41:04,329 WARN [ReferenceMetaDataResolverDeployer] Unresolved references exist in JBossWebMetaData: [ejb/Calculator/ | 13:41:04,329 INFO [AspectDeployer] Deploying xml into [EMAIL PROTECTED] for org.jboss.mx.loading.Unifie | ver/enterprise/deploy/ejb3-interceptors-aop.xml ,addedOrder=19} | 13:41:08,845 WARN [AnnotationRepositoryToMetaData] Not implemented: disableAnnotation(public java.lang.String com.manni | ToLifeTheUniverseAndEverything(), javax.annotation.security.PermitAll) | 13:41:08,845 WARN [AnnotationRepositoryToMetaData] Not implemented: disableAnnotation(public java.lang.String com.manni | ToLifeTheUniverseAndEverything(), javax.annotation.security.RolesAllowed) | 13:41:08,876 WARN [AnnotationRepositoryToMetaData] Not implemented: disableAnnotation(public double com.manning.jbia.ej | ouble,int), javax.annotation.security.PermitAll) | 13:41:08,876 WARN [AnnotationRepositoryToMetaData] Not implemented: disableAnnotation(public double com.manning.jbia.ej | ouble,int), javax.annotation.security.DenyAll) | 13:41:08,876 WARN [AnnotationRepositoryToMetaData] Not implemented: disableAnnotation(public double com.manning.jbia.ej | ax.annotation.security.PermitAll) | 13:41:08,876 WARN [AnnotationRepositoryToMetaData] Not implemented: disableAnnotation(public double com.manning.jbia.ej | ax.annotation.security.DenyAll) | 13:41:08,892 WARN [AnnotationRepositoryToMetaData] Not implemented: disableAnnotation(public java.lang.String com.manni | , javax.annotation.security.DenyAll) | 13:41:08,892 WARN [AnnotationRepositoryToMetaData] Not implemented: disableAnnotation(public java.lang.String com.manni | , javax.annotation.security.RolesAllowed) | 13:41:09,798 INFO [MCKernelAbstraction] installing bean: jboss.j2ee:ear=calculator.ear,jar=calculator.jar,name=Interest | 13:41:09,798 INFO [MCKernelAbstraction] and supplies: | 13:41:09,798 INFO [MCKernelAbstraction]
[jboss-user] [JBoss Seam] - Re: Value is not Valid with s:entityConverter and equals an
Here's my hacked version of EntityLoader that worked for me: | @Name(org.jboss.seam.ui.entityLoader) | @Scope(STATELESS) | public class CustomEntityLoader extends EntityLoader { | | @Override | protected Identifier createIdentifier(Object entity) { | return new CustomEntityIdentifier(entity, getPersistenceContext()); | } | } | | public class CustomEntityIdentifier extends EntityIdentifier { | | public CustomEntityIdentifier(Object entity, EntityManager entityManager) { | super(entity, entityManager); | } | | @Override | public Object find(EntityManager entityManager) { | Object result = super.find(entityManager); | | if (result instanceof HibernateProxy) { | return ((HibernateProxy) result).getHibernateLazyInitializer() | .getImplementation((SessionImplementor) entityManager.getDelegate()); | } | | return result; | } | } | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123770#4123770 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123770 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Beginner: Bind SelectOneMenu to @onetoone entity object
I have changed it to use SMPC, but I still do get the same problem. Configuration change is: persistence.xml: persistence-unit name=test transaction-type=JTA | jta-data-sourcejava:/test-ds/jta-data-source | properties | property name=hibernate.hbm2ddl.auto value=update / | property name=hibernate.show_sql value=false / | property name=hibernate.dialect | value=org.hibernate.dialect.MySQLDialect / | property name=jboss.entity.manager.factory.jndi.name | value=java:/EntityManagerFactories/test-ds/ | /properties | /persistence-unit components.xml: core:managed-persistence-context name=entityManager | auto-create=true | persistence-unit-jndi-name=java:/EntityManagerFactories/test-ds | /core:managed-persistence-context | Controller: | @PersistenceContext(unitName = test) | private EntityManager entityManager; | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123771#4123771 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123771 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Beginner: Bind SelectOneMenu to @onetoone entity object
Just use @In on the entityManager... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123775#4123775 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123775 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JBoss Seam, a great product that doesn't work :(
From my quick look at it - something is up with your JBoss install. It looks like some of the errors that you posted do not have anything to do with the Seam apps. I can't really look into that more right now - if I get a chance I'll look on Monday. Do other applications, or the Jboss console work with your install? Also try a clean install of JBoss. Because the install of JBoss is so easy (just unzip) it is sometimes easier to just do a quick install and try the changes. -Jay View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123778#4123778 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123778 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Application-exception handling
Hi Seam-Lovers, I'm developing a web interface for an old EJB3 application of ours, and wanted to try Seam to do it. So far I love the tool, but now I ran into a trivial thing that I just cannot resolve, and was hoping that you could pont me in the right direction. So, we had dozens of session-beans in the application that were called from both a remote client and a small web client (tapestry), too. For the new seam based ui I created pojo action classes to acces those session-beans. With these action classes a new layer had been introduced, but that works for us, because we have to provide the same bl for the remote clients. However: those session-beans throw custom, application exceptions that I don't know how to handle within seam. I know there is the xml configured exception handling, but we need a more complex behavior, like specifing that the same page should be re-rendered, and a message should be shown on that etc Actually what we need, is exactly how hibernate-validator exceptions are handled. My problem is, that I don't know how to implement the whole thing, from filters to renderers. I guess I could get hints from the mentioned validator exc. handling, but I cannot find how that is done (I tried, really!). So if just someone could tell me where I should look for that in Seam I'd be really grateful! Thanks a lot! PSz View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123779#4123779 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123779 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Send several mail messages in different locales
Hi all, I'm using SEAM 2.0.1 in JBOSS 4.2.1. I'm trying to send mails to a list of users. Ok... It's covered in SEAM doc. But users may have different locales, and I want to send each user's message in his own locale. Does anybody know how to do that? Regards, Ricardo Memoria View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123780#4123780 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123780 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Value is not Valid with s:entityConverter and equals an
anonymous wrote : Here's my hacked version of EntityLoader that worked for me So you just put that in your classpath and thanks to the annotation anonymous wrote : @Name(org.jboss.seam.ui.entityLoader) it gets called automatically?? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123781#4123781 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123781 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JBoss Seam, a great product that doesn't work :(
Thanks allot Jay. I did do a clean install of JBoss AS, and it finally started to work :). I was using RHDS RC1, and it had a JBoss 4.2.0_CP1. And I was deploying to it. EAR deployment still doesn't work for some reason. War works just fine. Already did some cool things and it all took so little time.. I can hardly believe it. I'm now using Seam 2.0.0.GA, Eclipse JEE + JBoss Tools and JBoss AS 4.2.2.GA. When deploying an EAR this is what it says : 01:28:04,687 ERROR [MainDeployer] Could not initialise deployment: file:/D:/ajboss/jboss-4.2.2.GA/server/default/deploy/asdwe-ear.ear/ | org.jboss.deployment.DeploymentException: No META-INF/application.xml found | at org.jboss.deployment.EARDeployer.init(EARDeployer.java:146) | 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.GeneratedMethodAccessor21.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | at java.lang.reflect.Method.invoke(Unknown Source) | 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(Unknown Source) | at java.lang.reflect.Method.invoke(Unknown Source) | 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(Unknown Source) | at java.lang.reflect.Method.invoke(Unknown Source) | 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(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | at java.lang.reflect.Method.invoke(Unknown Source) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at
[jboss-user] [JBoss Seam] - Re: JBoss Seam, a great product that doesn't work :(
:-?? How do I say this. The funny thing is .. after I do a post on the forum everything starts working as it should. Must be the air or something, or maybe the late hour.. Although I get those weird Error messages this time around the application started nicely. Did the Seam Generate Entities and worked again. To be honest I think we can close this topic since you helped me got started. A milion thanks and enjoy the rest of the weeked :-h View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123784#4123784 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123784 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Cannot build JBPM source from CVS
Nice UTF-8 support here, don't you think? I'm updating my tree at the moment and will try a build then Windows 2000, Java 5, ant 1.6.4. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123783#4123783 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123783 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JBoss Seam, a great product that doesn't work :(
Well, it says No META-INF/application.xml found. Is there an application.xml file? There needs to be one. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123785#4123785 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123785 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: BAM includes forecasting, planning?
They are not so much 'documents', more like discussions in the forum, some notes in the wiki etc Without going into the the differences between BAM and BI, yes, more info about what you describe could be added. That is why I referred you to the simulation part of jBPM. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123786#4123786 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123786 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Integrating process' execution with external webapps iss
States are for situations where a process has to wait e.g. for an external trigger. Where that comes from does not matter. It might be a system from a different company with it's own workflow etc... Can be a webapp as well. And yes, actionhandlers do not have any dependency on the webcontext. anonymous wrote : What is the best way to build this solution ? Totally depends on the other system. You can do anything from the actionhandler you can in plain java. anonymous wrote : Sorry if this is some kind of old discussion in the forum, I looked for a post about this kind of issue and didnt find any. Did you use the search in the forum or did you use google? The latter is better (at the moment) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123788#4123788 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123788 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - @Restrict on POJOs?
Looking at the Seam documentation, it says: anonymous wrote : Javabeans may be used just like a stateless or stateful session bean. However, they do not provide the functionality of a session bean (declarative transaction demarcation, declarative security, efficient clustered state replication, EJB 3.0 persistence, timeout methods, etc). And yet, in the Seam examples, such as wiki/src/main/org/jboss/seam/wiki/core/action/UserHome.java and wiki/src/main/org/jboss/seam/wiki/core/action/NodeHistory.java we see a @Restrict annotation used on a POJO. What's the deal? Are the docs wrong, or are the examples wrong, or am I misunderstanding this? This is quite important for me because I need to put @Restrict annotations on basically all the components in my app, to go with a detailed rules file to define who can do what to what. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123791#4123791 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123791 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Datasource name binding is behind Web deploy
Hi, I am try to deploy an application that was in Weblogic before for testing. I could not make it to work. There is problem I am facing. I tried to add jboss-web.xml to reference the datasources that are defined in *-ds.xml files. and aslo referenced in web.xml too. I did with several tries and binding is OK. But the name space is not available during war file deploy. From the start up directory console, I can see that those datasource name binding happen after my war file get deployed. And inside my web application during servlet start up, the code will need to access database to load values for caching. Is there a way to force binding happen first before deploy war file. thank you very much for expertise. Jashua View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123790#4123790 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123790 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Maven2 example application for Seam2
I have continued to try and track down the issue and it turns out the problem is with JBoss Embedded. I've ruled out Maven being the problem by providing a command line that shows how JBoss Embedded fails to load the persistence.xml file when multiple _directories_ are given on the classpath. (this may not actually be a bug in Embedded JBoss but how it interprets the EJB3 spec) For those interested the current frontline of effort is here: http://www.jboss.com/index.html?module=bbop=viewtopict=125266 (my post starts halfway down the first page of the thread) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123792#4123792 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123792 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Migration EJB Question
Hi guys, Questions 1] is it possible to deploy directly an ejb1/jboss2 app to jboss4.2 without a problem? 2] can somebody point me out on the documentation of jboss4.2 migration process? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123793#4123793 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123793 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Stateless bean holding data?
Oberiko wrote : | | | | | @Stateless | | @Name(searchPeople) | | public class SearchPeopleAction implements SearchPeopleLocal { | | ... | | private ListPerson peopleList; | | | | public void search() { | | ... | | peopleList = eq.getResultList(); | | ... | | } | | | | public ListPerson getPeopleList() { | | return peopleList; | | } | | | | } | | | This isn't the right way to use a Stateless session bean. This is stateful behavior. So, what I'd do is make SearchPeopleAction an event-scoped stateful session bean. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123795#4123795 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123795 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: @Restrict on POJOs?
@Restrict works fine on pojos. Maybe the documentation is talking about EJB-style security (which I know nothing about), not Seam security. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123796#4123796 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123796 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: DataTable invokes bean one time too much
anonymous wrote : Doesnt JSF just invoke this method one time and then create the datatable? No, not necessarily. You can't predict how often your method will be called, so in general, don't do a lot of stuff in getters. I'd probably use a @DataModel and have your method populate it with a factory. I think the docs show how to do this. This creates a request-scoped variable that jsf can call as often as it wants, but your factory method is only called once. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123794#4123794 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123794 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Application-exception handling
parszab wrote : | So if just someone could tell me where I should look for that in Seam I'd be really grateful! Start looking in ui/src/main/java/org.jboss.seam.ui.validator.ModelValidator.java, though the real cool stuff is in src/main/org.jboss.seam.core.Validators. It's probably only going to be helpful to you if you're doing field-level validation, but not validating combinations of fields (which I'm guessing is what you're after). So, if Seam's exception handling isn't what you need (and, btw, it does handle messages and redirects to the same page. But it'll break the conversation, IIRC, so you shouldn't use it for validation-ish stuff) maybe in your pojo action classes you should catch the appropriate exceptions explicitly and respond appropriately (messages, etc). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123797#4123797 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123797 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: @Restrict on POJOs?
Cool. I'm using a pojo system with drools security rules, too. I really like drools-based security; Shane did a great job with it. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123800#4123800 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123800 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: @Restrict on POJOs?
That's what I thought. The documentation needs to be corrected or clarified. Declarative security sounds like JBoss Rules-based security, using the @Restrict annotation. I just wanted to confirm that before I build this system on 90% POJOs, because it's going to use Drools security rules for everything. (I'm going through the Drools docs right now learning how to build a rules file.) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123799#4123799 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123799 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Integration Testing problems with Seam 2.0.0GA
I am trying to get testing to work in a seam-gen created project, and keep having the same problem that I cannot figure out. I've tried using the new beta 3 embedded JBoss container and using the bootstrap configuration from the examples (which work fine) but it doesn't work still. I've tried the Sun 1.5/1.6 JDKs and the BEA JRockit 1.5 jvm. I've been searching the forums for the last several days and tried everything I could find, but nothing changes anything other than JDK 1.6 which has the class loader problem. Any help is appreciated, I'm new to Seam and I've been tearing my hair out trying to figure this one out. Thanks. Here's the error output: | test: |[testng] [Parser] Running: |[testng] E:\Programming\g2d\test-build\testng.xml |[testng] |[testng] WARN 26-01 20:29:36,994 (UnifiedLoaderRepository3.java:addClassLoader:713) -Tried to add non-URLClassLoader. Ignored |[testng] INFO 26-01 20:29:38,037 (TransactionManagerService.java:startService:127) -JBossTS Transaction Service (JTA version) - JBoss Inc. |[testng] INFO 26-01 20:29:38,038 (TransactionManagerService.java:startService:129) -Setting up property manager MBean and JMX layer |[testng] WARN 26-01 20:29:38,113 (TxControl.java:clinit:302) | -[com.arjuna.ats.arjuna.coordinator.TxControl_1] - Name of XA node not defined. Using -3f57ff61:d9f7:479c08b2:0 |[testng] INFO 26-01 20:29:38,149 (TransactionStatusManager.java:addService:110) -[com.arjuna.ats.arjuna.recovery.TransactionStatusManager_1] - Starting service com.arjuna.ats.arjuna.recovery.ActionStatusService on port 55799 |[testng] INFO 26-01 20:29:38,155 (?:?:?) -TransactionStatusManagerItem - host: 192.168.0.159 port: 55799 |[testng] INFO 26-01 20:29:38,185 (TransactionStatusManager.java:start:161) -[com.arjuna.ats.arjuna.recovery.TransactionStatusManager_3] - TransactionStatusManager started on port 55799 with service com.arjuna.ats.arjuna.recovery.ActionStatusService |[testng] INFO 26-01 20:29:38,193 (?:?:?) -Registering mbean for module 'arjuna' |[testng] INFO 26-01 20:29:38,197 (?:?:?) -Initialising JMX agent com.arjuna.ats.internal.jbossatx.agent.LocalJBossAgentImpl |[testng] INFO 26-01 20:29:38,222 (TransactionManagerService.java:startService:167) -Starting recovery manager |[testng] INFO 26-01 20:29:38,230 (?:?:?) - |[testng] --- Start RecoveryActivators |[testng] INFO 26-01 20:29:38,240 (RecoveryManagerImple.java:init:142) | -[com.arjuna.ats.internal.arjuna.recovery.ready] RecoveryManagerImple is ready on port 55,800 |[testng] INFO 26-01 20:29:38,241 (TransactionManagerService.java:startService:172) -Recovery manager started |[testng] INFO 26-01 20:29:38,242 (TransactionManagerService.java:startService:195) -Binding TransactionManager JNDI Reference |[testng] WARN 26-01 20:29:38,594 (AspectManagerService.java:baseAop:228) -Could not find base-aspects.xml file in the resources of [EMAIL PROTECTED] |[testng] INFO 26-01 20:29:39,579 (AspectDeployer.java:deployXml:151) -Deploying xml into [EMAIL PROTECTED] for [EMAIL PROTECTED] |[testng] INFO 26-01 20:29:40,242 (RARDeployment.java:startService:146) -Required license terms exist, view vfsfile:/E:/Programming/g2d/bootstrap/deploy/jboss-local-jdbc.rar/META-INF/ra.xml |[testng] INFO 26-01 20:29:40,288 (ConnectionFactoryBindingService.java:bindConnectionFactory:160) -Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS' |[testng] INFO 26-01 20:29:40,291 (RARDeployment.java:startService:146) -Required license terms exist, view vfsfile:/E:/Programming/g2d/bootstrap/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml |[testng] INFO 26-01 20:29:40,297 (RARDeployment.java:startService:146) -Required license terms exist, view vfsfile:/E:/Programming/g2d/bootstrap/deploy/jms-ra.rar/META-INF/ra.xml |[testng] WARN 26-01 20:29:41,032 (SecurityMetadataStore.java:checkDefaultSuckerPassword:311) -WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this. |[testng] INFO 26-01 20:29:41,070 (ServerPeer.java:startService:312) -JBoss Messaging 1.4.0.SP1 server [0] started |[testng] INFO 26-01 20:29:41,167 (ConnectionFactory.java:startService:224) -Connector bisocket://Uber-Desktop:4457 has leasing enabled, lease period 1 milliseconds |[testng] INFO 26-01 20:29:41,168 (ConnectionFactory.java:startService:225) [EMAIL PROTECTED] started |[testng] INFO 26-01 20:29:41,224 (QueueService.java:startService:141) -Queue[/queue/DLQ] started, fullSize=20, pageSize=2000, downCacheSize=2000 |[testng] INFO 26-01
[jboss-user] [JBoss Seam] - Access UIDatascroller from EAR deployed component
I have the following Seam component bound to a richfaces dataScroller. @Name(datascrollerUI) | public class BaseUIDatascroller implements Serializable | { | private static final long serialVersionUID = 884462853355775648L; | | private UIDatascroller datascroller; | public UIDatascroller getDatascroller() { return datascroller; } | public void setDatascroller(UIDatascroller datascroller) { this.datascroller = datascroller; } | | @Observer(reset.pipe.search.datascroller) | public void resetDatascroller() | { | datascroller.setPage(UIDatascroller.FIRST_FACET_NAME); | } | } All of my components were in one jar in the root of my ear, but since UIDatascroller is in one of the richfaces jars in WEB-INF/lib I had to put this class in a jar under WEB-INF/lib as well. I had to raise and event to call this other component because if I reference this class directly from one of my other components there is a class loading problem. Is there any way around this? Here is a quote from the richfaces forum. ishabalov wrote : I guess Seam developers do not need such advanced function like you need in there samples. There is nothing wrong having Java classes in presentation tier, and your situation is perfect for such case. Backing beans must be in web tier. Here is a link to that comment. http://jboss.com/index.html?module=bbop=viewtopict=117840 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123805#4123805 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123805 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: f:converter and maxdigits
I had a similar problem today but was getting IllegalArgumentExceptions and ClassCastExceptions. For anyone interested below is a basic Float Currency converter. You use it like this: | h:inputText id=myvalue converter=#{floatCurrencyConverter} value=#{mybean.myFloatValue}/ | import java.text.NumberFormat; | | import javax.faces.component.UIComponent; | import javax.faces.context.FacesContext; | | import org.jboss.seam.annotations.Name; | import org.jboss.seam.annotations.faces.Converter; | import org.jboss.seam.annotations.intercept.BypassInterceptors; | | @Name(floatCurrencyConverter) | @BypassInterceptors | @Converter | public class FloatCurrencyConverter implements javax.faces.convert.Converter { | | public Object getAsObject(FacesContext context, UIComponent cmp, String value) { | NumberFormat nf = NumberFormat.getCurrencyInstance(); | | try { | return new Float(nf.parse(value).floatValue()); | } catch(java.text.ParseException e) { | e.printStackTrace(); | return null; | } | } | | public String getAsString(FacesContext context, UIComponent cmp, Object value) { | | NumberFormat nf = NumberFormat.getCurrencyInstance(); | return nf.format(value); | } | } | Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123806#4123806 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123806 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Requirements for JBWS-1813 ?
Am I correct that JBWS-1813 requires both JBossWS 2.0.3 and JBossAS 4.2.3 ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123807#4123807 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123807 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: f:converter and maxdigits
I can't stand Java's implementation of currency formats. What user is ever going to remember to type in the correct currency sign? Better off using the basic format and setting the fractions. Small change to the above; in both methods replace the: NumberFormat nf = NumberFormat.getCurrencyInstance(); with:NumberFormat nf = NumberFormat.getInstance(); | nf.setMaximumFractionDigits(2); | nf.setMinimumFractionDigits(2); View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123808#4123808 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123808 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Testing with Seam managed Hibernate sessions
Hi. I'm trying to create a Seam POJO war application (JavaBeans and entities). For persistence, I'm using Seam managed Hibernate sessions. How to unit testing those classes that get Session object injected into them? (I know how to inject an object in a unit test, but how to boot and get a Seam managed Session object in a unit test code)? Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123809#4123809 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123809 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - JBossAS 4.2.3: Will it ship on Feb. 29 ?
http://jira.jboss.com/jira/browse/JBAS?report=com.atlassian.jira.plugin.system.project:roadmap-panel shows that JBossAS 4.2.3 will ship on Feb 29. Can I rely on this date? I need the fixes for http://jira.jboss.org/jira/browse/JBAS-4852 http://jira.jboss.org/jira/browse/JBAS-5149 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123810#4123810 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123810 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - How to get a specific number of rows?
Hi. In my application's products table, how to get only the top 10 (for example) items? I'm using PostgreSQL and Hibernate. Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123811#4123811 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123811 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Would this work instead of Hibernate.initialize()?
Hi. The relationship between Team and Player entities is one-to-many. Inside a transaction, to fully initialize the player side we could use: Hibernate.initialize(team.getPlayers()); Well, why not just use: team.getPlayers(); ? Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123812#4123812 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123812 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user