[jboss-user] [JBoss Portal] - Re: database issue
Sorry, it is my mistake. Before quitting from isql, I did not commit, so the inserting recodes were not really written to the database. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4170976#4170976 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4170976 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JBoss Portal 2.6.4 - can't get HttpServletRequest from R
renderRequest.getControllerContext().getServerInvocation().getServerContext().getClientRequest()http://docs.jboss.com/jbportal/v2.6.4/javadoc/org/jboss/portlet/JBossRenderRequest.html View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4170979#4170979 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4170979 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: StatisticsCollector - performance issue
EJB3 makes no difference to me, because the app uses EJB2 (afair)... It's also coded with JDK4 so maybe it won't crash in some spectacular way? How do you think? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4170984#4170984 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4170984 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: best way to expose ejb3 as web service?
Hi again, Is it not possible to return a map/hashmap from the ejb web service? I'm using an axis client for that as below Call call= (Call) service.createCall(); |call.setTargetEndpointAddress( new java.net.URL(endpoint) ); |call.setOperationName(new QName(http://session.um.com/;, getAuc) ); | | |call.addParameter(arg0, | org.apache.axis.Constants.XSD_INT, | javax.xml.rpc.ParameterMode.IN); | | |call.setReturnClass(HashMap.class); |HashMap ret = (HashMap) call.invoke( new Object[] {1} Thought it throws no error, the returned Map never has any contents in them. Also, if instead of setReturnClass I try to use setReturnType(org.apache.axis.Constants.XSD_ANY) it gives me the below error: could not find deserializer for type {http://www.w3.org/2001/XMLSchema}any View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4170986#4170986 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4170986 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: How to run a Queue and MDB into a cluster
well, i didn't found any solution at this time, is someone can help me ?? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4170994#4170994 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4170994 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Ajax / Dojo based application hangs on Apache / JBoss
Hello, Any guidance for this issue, still I am facing the same. Regards, Rajesh. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4170993#4170993 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4170993 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: How to handle colon (:) in CSS files (IE-limitation)
Ok. I found it by myself at the java JSF-forum: http://forums.sun.com/thread.jspa?forumID=427threadID=5310179 use: \3A instead of \: in CSS. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171000#4171000 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171000 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Xerces.jar upgradation
Hi skajotde, That issue is different. JBoss already overirides the JDK reference implementation of XML_APIS by putting Xerces Implementation in its endorsed folder (JDK endorsed mechanism). What we need is help in upgrading this xerces jar from 2.6.2 to 2.8.0 from any past experiences. --manish View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171001#4171001 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171001 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: JEMS installer/ IzPack source code
So, after getting no answers for this question (neither in this forum nor in the original JEMS Installer forum), is it fair to conclude that the JEMS Installer is dead and should not be relied on in future? This would be a pity and another indication that it is safer not to trust any open source projects in production context. Greetings, Thomas View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171002#4171002 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171002 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Problems updating entity in a many-to-many relationship
Hi all, I have a many-to-many relationship between entities User and Permission. Since I need an additional field isDenied in the association table, I cannot use the @Many-to-many annotation, but have to model this table explicitly an an entity UserPermission. I create a one-to-many relationship between User and UserPermission and another one between Permission and UserPermission.The modelling direction (write direction) is from UserPermission to User and Permission, respectively. Reading entities UserPermission from the database and storing new ones into it works fine. However, removing them does not work when invoking the entity manager's merge method on a user object. For instance, if user entity u1 is associated to permission p1, and I remove the association (u1, p1) from user.getUserPermissions() and add (u1, p2) followed by the invocation entityManager.merge(u1), I end up with two relationships (u1, p1) and (u1, p2) in the DB instead of just (u1, p2) which is what I would have expected. In the debugger I see that user.getUserPermissions() yields a list with (u1, p2) as the only entry which has no id. The association (u1, p1) is not present in this list. So why doesn't entityManager.merge(u1) remove (u1, p1) from the database? Best regards, Thomas Here is a code snippet of my modelling (unimportant parts are left out): Entity User: | @Entity | @Table(name = USERS, uniqueConstraints = @UniqueConstraint(columnNames = USERNAME)) | @SequenceGenerator(name = SEQ, sequenceName = SE_USERS_ID, allocationSize = 1) | public class User extends Persistent implements java.io.Serializable | { | private ListUserPermission userPermissions = new ArrayListUserPermission(0); | | @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = user) | public ListUserPermission getUserPermissions() | { | return this.userPermissions; | } | | public void setUserPermissions(ListUserPermission userPermissions) | { | this.userPermissions = userPermissions; | } | } | Entity UserPermission: | @Entity | @Table(name = USERS_PERMISSION) | @SequenceGenerator(name = SEQ, sequenceName = SE_USERS_PERMISSION_ID, allocationSize = 1) | public class UserPermission extends Persistent implements Serializable | { | private Boolean isDenied; | | private User user; | | private Permission permission; | | @ManyToOne | @JoinColumn(name = USER_ID) | public User getUser() | { | return user; | } | | public void setUser(User user) | { | this.user = user; | } | | @ManyToOne | @JoinColumn(name = PERMISSION_ID) | public Permission getPermission() | { | return permission; | } | | public void setPermission(Permission permission) | { | this.permission = permission; | } | | @Column(name = IS_DENIED) | public Boolean getDenied() | { | return isDenied; | } | | public void setDenied(Boolean isDenied) | { | this.isDenied = isDenied; | } | } | Entity Permission: | @Entity | @Table(name = PERMISSION, uniqueConstraints = @UniqueConstraint(columnNames = OBJECT_NAME)) | @SequenceGenerator(name = SEQ, sequenceName = SE_PERMISSION_ID, allocationSize = 1) | public class Permission extends Persistent implements java.io.Serializable | { | private ListUserPermission userPermissions = new ArrayListUserPermission(0); | | @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = permission) | public ListUserPermission getUserPermissions() | { | return this.userPermissions; | } | | public void setUserPermissions(ListUserPermission userPermissions) | { | this.userPermissions = userPermissions; | } | } | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171003#4171003 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171003 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: using ext js in JBP
now ,I have found the problem. The reason is: our jsp page contains a body tag,but the css effect is load on the portal page's body. so after deleting the body tag,and modifing the div's class ,it runs well. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171004#4171004 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171004 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Communication between Tomcat and EJ-Beans in one VM
Hi everybody, I've got a problem with calling Beans from Tomcat: We are working with JBoss 4.0.4, where we use the Built-in Tomcat and EJB-2.0-SessionBeans. We tried to upgrade to JBoss 4.2.2 and now the parameters during internal Calls from the Tomcat-Application to SessionBeans are passed on byReference instead of byValue as before. We want to have the possibility for the application to decide whether the Bean-Communication shall be byValue (with marshalling) or byReference. I know that local calls (byReference) are faster but we need this choice due to our development strategy. How can the application control whether the parameters are passed on byValue or byReference (if possible for the return-value too) - and which parameters/JBoss-Settings have to be made to have both possibilities. We already use an InitialContext with an URL in the environment and the lookup-name for the Bean is the remote-jndi-name and I don't want to disable the CallByValue generally (with CallByValue=false in the ear-deployer.xml and/or jboss-service.xml), so this may be a tricky one. Thanks and best regards, Robert View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171005#4171005 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171005 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: JEMS installer/ IzPack source code
See this http://wiki.jboss.org/wiki/JEMSInstaller. It points to various SVN repositories. You will probably find appropriate tags in the SVN. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171006#4171006 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171006 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - ClassCastException while concurrent accessing EJBs and class
Hello all, i have following problem: the application i am working on have two components which use concurrently a third component by invoking its EJBs. It is possible, that this three components can use internal different class versions. And for this the class loader isolation was enabled by deploying components. For performance issues was the third component deployed later on an other JBoss instance on an other hardware server. By this constellation a ClassCastException is throwing. This Problem was tested on JBoss 4.0.5 and JBoss 4.2.2 and on both cames ClassCastException by destributed deployment of this three components. Does somebody knows this Problem? Is there a work around for this? I can provide a test case, which reproduce the problem by one click. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171010#4171010 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171010 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - How to set the FullSize of the queue
I am sending SOAP messages with attatchments to a series of message queues running on JBoss Messanging. I have run into problems with OutOfMemoryExceptions. I have changed the memory allocation from the default to 512 and 1024. However, the real problem is that JBoss Messaging is holding too many messages in the in-memory queue. I know I can go into the jmx-console and reduce the size of the FullSize parameter (but only when the queue is stopped). What I would really like to do, is specify this value when I define the queue. Can someone tell me if this is possible? I have looked at the documentation but can see no mention of how this can be done. I have defined my queues as follows: | mbean code=org.jboss.jms.server.destination.QueueService | name=jboss.messaging.destination:service=Queue,name=soap | xmbean-dd=xmdesc/Queue-xmbean.xml | annotation@org.jboss.system.deployers.managed.ManagementObjectClass(code=org.jboss.jms.server.destination.QueueServiceMO)/annotation | depends optional-attribute-name=ServerPeerjboss.messaging:service=ServerPeer/depends | dependsjboss.messaging:service=PostOffice/depends | /mbean Thanks in advance! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171012#4171012 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171012 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: How to set the FullSize of the queue
Search for fullSize in the documentation. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171015#4171015 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171015 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: How to set the FullSize of the queue
Its actually quite simple, all I had to do was add some simple attributes as follows: mbean code=org.jboss.jms.server.destination.QueueService | name=jboss.messaging.destination:service=Queue,name=site | xmbean-dd=xmdesc/Queue-xmbean.xml | annotation@org.jboss.system.deployers.managed.ManagementObjectClass | (code=org.jboss.jms.server.destination.QueueServiceMO) | /annotation | depends optional-attribute-name=ServerPeerjboss.messaging:service=ServerPeer/depends | dependsjboss.messaging:service=PostOffice/depends | attribute name=FullSize2000/attribute | attribute name=PageSize2000/attribute | attribute name=DownCacheSize2000/attribute | /mbean View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171018#4171018 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171018 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - BPEL Problem with Fault Handler
Hi, I'm trying to develop a BPEL process with fault handling. I have a web service wich unzip a file and send a fault message when cannot find the file. The wsdl of this web service is this: | ?xml version=1.0 encoding=UTF-8?wsdl:definitions xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:schema=http://www.xxx.it/xxx/schema; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; targetNamespace=http://www.xxx.it/xxx/schema; | wsdl:types | schema xmlns=http://www.w3.org/2001/XMLSchema; xmlns:tns=http://www.xxx.it/xxx/schema; elementFormDefault=qualified targetNamespace=http://www.xxx.it/xxx/schema; | element name=UnzipXPostFileRequest | complexType | sequence | element maxOccurs=1 minOccurs=1 name=idFile type=long/ | /sequence | /complexType | | /element | | element name=UnzipXPostFileResponse | complexType | sequence | element maxOccurs=1 minOccurs=1 name=nomeFileDati type=tns:TipoNomePathFile/ | element maxOccurs=1 minOccurs=1 name=pathFileDati type=tns:TipoNomePathFile/ | element maxOccurs=1 minOccurs=0 name=nomeFileIndice type=tns:TipoNomePathFile/ | element maxOccurs=1 minOccurs=0 name=pathFileIndice type=tns:TipoNomePathFile/ | /sequence | | /complexType | /element | | element name=ParseXMLIndiceRequest | complexType | sequence | element maxOccurs=1 minOccurs=1 name=idFile type=long/ | element maxOccurs=1 minOccurs=1 name=nomeFileIndice type=tns:TipoNomePathFile/ | element maxOccurs=1 minOccurs=1 name=pathFileIndice type=tns:TipoNomePathFile/ | | /sequence | /complexType | /element | | element name=ParseXMLIndiceResponse | complexType | sequence | element maxOccurs=1 minOccurs=1 name=nomeFileIndice type=tns:TipoNomePathFile/ | element maxOccurs=1 minOccurs=1 name=pathFileIndice type=tns:TipoNomePathFile/ | | /sequence | /complexType | /element | | element name=UnzipXPostFileFault | complexType | sequence | element name=customField type=string/ | /sequence | | /complexType | /element | | simpleType name=TipoNomePathFile | annotation | documentationDefinisce il nome o il percorso di un file/documentation | /annotation | restriction base=string | minLength value=1/ | | maxLength value=255/ | pattern value=[a-zA-Z0-9_\\/. ]+/ | /restriction | /simpleType | /schema | /wsdl:types | wsdl:message name=UnzipXPostFileRequest | wsdl:part element=schema:UnzipXPostFileRequest name=UnzipXPostFileRequest | /wsdl:part | | /wsdl:message | wsdl:message name=ParseXMLIndiceRequest | wsdl:part element=schema:ParseXMLIndiceRequest name=ParseXMLIndiceRequest | /wsdl:part | /wsdl:message | wsdl:message name=UnzipXPostFileFault | wsdl:part element=schema:UnzipXPostFileFault name=UnzipXPostFileFault | /wsdl:part | /wsdl:message | | wsdl:message name=ParseXMLIndiceResponse | wsdl:part element=schema:ParseXMLIndiceResponse name=ParseXMLIndiceResponse | /wsdl:part | /wsdl:message | wsdl:message name=UnzipXPostFileResponse | wsdl:part element=schema:UnzipXPostFileResponse name=UnzipXPostFileResponse | /wsdl:part | /wsdl:message | wsdl:portType name=XPostWS | | wsdl:operation name=UnzipXPostFile | wsdl:input message=schema:UnzipXPostFileRequest name=UnzipXPostFileRequest | /wsdl:input | wsdl:output message=schema:UnzipXPostFileResponse name=UnzipXPostFileResponse | /wsdl:output | wsdl:fault message=schema:UnzipXPostFileFault name=UnzipXPostFileFault | /wsdl:fault | /wsdl:operation | wsdl:operation name=ParseXMLIndice | | wsdl:input message=schema:ParseXMLIndiceRequest name=ParseXMLIndiceRequest | /wsdl:input | wsdl:output message=schema:ParseXMLIndiceResponse name=ParseXMLIndiceResponse | /wsdl:output | /wsdl:operation | /wsdl:portType | wsdl:binding name=XPostWSBinding type=schema:XPostWS | soap:binding style=document transport=http://schemas.xmlsoap.org/soap/http/ | wsdl:operation name=UnzipXPostFile | | soap:operation soapAction=/ | wsdl:input name=UnzipXPostFileRequest | soap:body use=literal/ | /wsdl:input | wsdl:output name=UnzipXPostFileResponse | soap:body use=literal/ | /wsdl:output |
[jboss-user] [JBoss Portal] - Re: Configure dashboard javascript error w single quote in p
Please open a Jira View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171022#4171022 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171022 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: add new user
Hi, I have the same problem. I can not create users through the web console. They do appear in the database, but they can not log in to the system. I am working with the 3.2.3 release and Java 1.6 (btw, the websale example coming with the 3.2.3 release did not work with Java 1.5 - as already mentioned on this forum.) Then, I started to follow the instructions in section 8, but when executing the script (from ...\jbpm-jpdl-suite-3.2.3\db\jbpm.jpdl.postgresql.sql) for creating the tables in PostgreSQL, I get the following error message 12:41:42 [CREATE - 0 row(s), 0.000 secs] [Error Code: 0, SQL State: 42601] ERROR: syntax error at or near create | ... 1 statement(s) executed, 0 row(s) affected, exec/fetch time: 0.000/0.000 sec [0 successful, 0 warnings, 1 errors] (I erased all alter statements in the beginning of the script, to mimic the description in section 8.1.3.1). Any advice (on how to define users) is appreciated. I browsed through the forum issues, but I may have missed something. Kind regards, Petia View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171023#4171023 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171023 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JBoss Portal 2.6.6 and DB UTF8 encoding
Now that we have Russian l10n, it tries to include chars that are not WIN 1252 compatible. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171024#4171024 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171024 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Using TCP to do clustering
10.1.200.129 is not a multicast/class D IP address. Are there any warnings being logged? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171025#4171025 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171025 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - jms clients timeout
Hi all, I have a problem with client timeout . i cant find where to set the timeout for jms connection to clients. in the documentation it says about server failure timeout but not on the server settings for clients connection timeout. in messaging-service.xml this is important because it looks like the default ( if there is any ) is set to 15 minutes the connection publish start : 2008-08-12 13:59:27,500 DEBUG [JMSSender] Published in: 1 | 2008-08-12 13:59:27,500 INFO [JMSSender] Dispatched. queueSize: 1 | 2008-08-12 13:59:27,500 TRACE [JMSSender] Publishing: the connection time out : 2008-08-12 14:14:52,415 ERROR [JMSSender] Got marshalling exception, exiting | java.io.IOException: Connection timed out | . | . | 2008-08-12 14:14:52,417 ERROR [JMSSender] Error handling callback | java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is: | java.io.IOException: Connection timed out | . | . | 2008-08-12 14:14:52,431 ERROR [Heartbeat] Got marshalling exception, exiting | java.io.IOException: Broken pipe | . | . | 2008-08-12 14:14:52,437 ERROR [Heartbeat] Error handling callback | java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is: | java.io.IOException: Broken pipe Any help will be welcome Yan View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171026#4171026 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171026 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Error deploying an ear to JBoss 4.2.0 with message
That is the server.log. It doesn't show anything else prior to this... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171029#4171029 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171029 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Problem with expiration eviction
If you want to specify the eviction melodramatically only (no eviction config in the xml file), you have to do it like this: | ExpirationConfiguration expirationConfiguration = new ExpirationConfiguration(); | expirationConfiguration.setTimeToLiveSeconds(2); | EvictionConfig ec = new EvictionConfig(); | ListEvictionRegionConfig ercs = new ArrayListEvictionRegionConfig(); | EvictionRegionConfig erc = new EvictionRegionConfig(fqn, expirationConfiguration); | ercs.add(erc); | ec.setEvictionRegionConfigs(ercs); | admDataCache.getConfiguration().setEvictionConfig(ec); Re:expirationConfiguration.setTimeToLiveSeconds(10); This is a bug, and the workaround is to set EXPIRATION_KEY for all elements, as lovelyliatroim suggested. https://jira.jboss.org/jira/browse/JBCACHE-1399 was created View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171034#4171034 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171034 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Upgrading hibernate in JBoss 4.2.2.GA
And all is well in the world... or at least my app. Thanks again, jaikiran! Justin. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171035#4171035 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171035 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Odd security issue: commons-modeler.jar no signer certifica
I was wondering if anyone has seen an issue like this below. I searched google and didn't find anything close. The server is jboss 4.05.GA and we are running ATG Content Administration software for what it's worth. I am wondering if we have a bad jar file packaged, if we need to install a provider to our CA Certs or if this can be safely ignored. Thanks for any help. 2008-08-18 07:42:41,093 ERROR [org.apache.commons.modeler.Registry] Error registering jboss.web:type=RequestProcessor,worker=http-boapp103%2F192.168.30.60-10080,name=HttpRequest12 java.lang.SecurityException: MBeanTrustPermission(register) not implied by protection domain of mbean class: org.apache.commons.modeler.BaseModelMBean, pd: ProtectionDomain (file:/usr/local/jboss-4.0.5.GA/se rver/publish/tmp/deploy/tmp33459commons-modeler.jar no signer certificates) [EMAIL PROTECTED] url=file:/usr/local/jboss-4.0.5.GA/server/publish/deploy/jbossweb-tomcat55.sar/ ,addedOrder=9} no principals [EMAIL PROTECTED] ( (java.lang.RuntimePermission stopThread) (java.io.FilePermission /usr/local/jboss-4.0.5.GA/server/publish/tmp/deploy/tmp33459commons-modeler.jar read) (java.io.FilePermission /usr/local/jboss-4.0.5.GA/server/publish/deploy/jbossweb-tomcat55.sar read) (java.net.SocketPermission localhost:1024- listen,resolve) (java.net.SocketPermission localhost:1024- listen,resolve) (java.util.PropertyPermission java.version read) (java.util.PropertyPermission java.vm.name read) (java.util.PropertyPermission java.vm.vendor read) (java.util.PropertyPermission os.name read) (java.util.PropertyPermission java.vendor.url read) (java.util.PropertyPermission java.vm.specification.vendor read) (java.util.PropertyPermission os.version read) (java.util.PropertyPermission java.specification.vendor read) (java.util.PropertyPermission java.class.version read) (java.util.PropertyPermission java.specification.name read) (java.util.PropertyPermission file.separator read) (java.util.PropertyPermission os.arch read) (java.util.PropertyPermission java.vm.version read) (java.util.PropertyPermission java.vendor read) (java.util.PropertyPermission java.specification.version read) (java.util.PropertyPermission java.vm.specification.version read) (java.util.PropertyPermission java.vm.specification.name read) (java.util.PropertyPermission path.separator read) (java.util.PropertyPermission line.separator read) ) at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1398) at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:376) at org.apache.commons.modeler.Registry.registerComponent(Registry.java:871) at org.apache.coyote.http11.Http11Protocol$JmxHttp11ConnectionHandler.init(Http11Protocol.java:147) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.start(MasterSlaveWorkerThread.java:131) at org.apache.tomcat.util.net.PoolTcpEndpoint.newWorkerThread(PoolTcpEndpoint.java:595) at org.apache.tomcat.util.net.PoolTcpEndpoint.createWorkerThread(PoolTcpEndpoint.java:574) at org.apache.tomcat.util.net.PoolTcpEndpoint.run(PoolTcpEndpoint.java:631) at java.lang.Thread.run(Thread.java:595) 2008-08-18 07:42:41,201 ERROR [nucleusNamespace.atg.epub.DeploymentServer] transport error from agent 'app101' java.rmi.ConnectException: Connection refused to host: 192.168.30.50; nested exception is: java.net.ConnectException: Connection refused at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:574) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185) at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94) at atg.deployment.agent.RMIClientAgentTransport_Stub.getStatus(Unknown Source) at atg.deployment.server.RMIServerAgentTransport.getStatus(RMIServerAgentTransport.java:192) at atg.deployment.server.AgentRef.getStatus(AgentRef.java:519) at atg.deployment.server.Target.isAccessible(Target.java:571) at sun.reflect.GeneratedMethodAccessor365.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.taglibs.standard.lang.jstl.ArraySuffix.evaluate(ArraySuffix.java:317) at org.apache.taglibs.standard.lang.jstl.ComplexValue.evaluate(ComplexValue.java:146) at org.apache.taglibs.standard.lang.jstl.UnaryOperatorExpression.evaluate(UnaryOperatorExpression.java:156) at org.apache.taglibs.standard.lang.jstl.ELEvaluator.evaluate(ELEvaluator.java:242) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171036#4171036 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171036 ___ jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Endless loop trying to obtain lock in 1.4.1.SP9
This is a known issue: https://jira.jboss.org/jira/browse/JBCACHE-1235. It was fixed in 2.1, take a look at the suggested workaround here: https://jira.jboss.org/jira/browse/JBCACHE-1165, or upgrade to a newer version View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171037#4171037 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171037 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Has anyone used JBC 2.x series with JBossAS 4.2.x series
We've only investigated integration of JBC2.x in AS 4.x with web replication, not with EJB replication. see: http://wiki.jboss.org/wiki/JBossCacheAsCompatibility This is on my todo list, I cannot give any estimate on when this will be finished. It is not officially supported, also. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171038#4171038 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171038 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Session is being expired when one of the cluster is set
pravvenas, did you find a solution/workaround for this problem? Thanks, Matteo View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171040#4171040 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171040 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: JDBCCacheLoader problem
an idea would be to have a small program that a) starts a new cluster instance which would fetch all in memory state b) this instance uses passivation c) call cache.evict after state retrieval finished d) exit View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171042#4171042 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171042 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] failure notice
Hi. This is the smtp delivery program. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. [EMAIL PROTECTED], sorry, no mailbox here by that name. --- Below this line is a copy of the message. Received: from avgw.enternet.hu ([62.68.172.229]) (envelope-sender jboss-user@lists.jboss.org) by 207.168.43.140 with ESMTP for [EMAIL PROTECTED]; Mon, 18 Aug 2008 06:14:34 -0700 Received: from [192.168.48.20] ([192.168.48.20]) by 62.68.172.229 with Microsoft SMTPSVC(6.0.3790.1830) 18 Aug 2008 14:03:30 +0100 From: =?windows-1251?B?zejq7uvg6Q==?= jboss-user@lists.jboss.org To: [EMAIL PROTECTED] Subject: =?windows-1251?B?z/Du8fDu9+Xt++kg7eDi7ucg8fLg6yDv8Oj36O3u6SDt5eHi4Ovu4w==?= =?windows-1251?B?7iDz8O7m4P8g?= Date: 18 Aug 2008 14:03:30 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit X-Priority: 3 X-MimeOLE: Produced By Microsoft Exchange V6.5 X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0274], KAS30/Release X-SpamTest-Info: Not protected X-Spam: Not detected ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - URGENT - Clustering without multicast
I am wondering if it is possible to cluster Jboss Cache without using multicast traffic. I am running on Amazon EC2 and they don't support multicast. I kind of need to solve this. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171043#4171043 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171043 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JBoss Portal 2.6.6 and DB UTF8 encoding
Thanks Thomas, would use UTF8 from now on. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171044#4171044 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171044 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: URGENT - Clustering without multicast
We haven't got a tried and tested clustering service on EC2 as yet, but you could try using TCP in JGroups, instead of UDP. Have a look at the JGroups website, there are docs and sample configs for using TCP instead of UDP. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171045#4171045 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171045 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - JBPORTAL-1978 : scriptaculous prototype js
hi, Please refer to JBPORTAL-1978, i think Portal 2.6.5SP1 was upgraded to scriptalculous.js 1.8 version that can work with richfaces 3.2.1 datascroller. But now, Portal 2.6.6 use back older scriptalculous.js 1.7, and cannot work with richfaces 3.2.1 datascroller. How to work around this so that i can use Portal 2.6.6 and richfaces 3.2.1 ? Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171047#4171047 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171047 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JBPORTAL-1978 : scriptaculous prototype js
Scriptaculous had to be rolledback because the upgrade broke the Drag And Drop feature of the dashboard. Wesley didn't find the time yet to find what changed that broke the DnD so for now there is no solution. If you are willing to look at the issues, i would be very glad :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171048#4171048 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171048 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - custom user and Jboss user
Hi All, Would appreciate if someone can point in a right direction. I have a portlet deployed in Jboss portal that pulls data from our database and displays them. Now I want to map displayed data to a logged in user and our own customer, what would the best way to do it, so users will see only their own data? Should I implement Custom login module or just getting logged in user info and storing it in my database is good enough? Just not sure if there is a recommended path for situations like that. I'm using Spring Portal MVC and Hibernate. Thank you! AM View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171049#4171049 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171049 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - AbstractServerLogin module.logout and cached principals
Hi all, I am implementing a very simple web application and adding a custom class extending from the DatabaseLoginModule. All it does is extend initialize() by adding a few more variables, and extend login() by adding some checking logic before and after a call to super.login(). So, I have not modifed login() in any other way. One thing I am doing is: 1) I log in with proper credentials (eg: john/1234), the credentials get stored in cache. 2) I login without proper password (eg: john/qq), the login method throws a FailedLoginException. 3) During this failed login exception, I am trying to remove the previously authenticated entry from the cache. I was calling AbstactServerLogin's logout() method, thinking this should do the trick, but realize that the principals Set the method looks up is different (?) from the one used in commit method. How then , can I get back to the cached principal and remove it from the cache? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171050#4171050 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171050 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: controlling MDB pool size
http://wiki.jboss.org/wiki/ConfigJBossMDB?action=ewindowstate=normalmode=view For EJB3 MDB edit the ejb3-interceptors-aop.xml file in deploy directory or may be you can use annotations. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171053#4171053 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171053 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Has anyone used JBC 2.x series with JBossAS 4.2.x series
This is a pity, since probably there are lots of projects in which isolating the classloaders is not desirable, and seems that introducing JBC2 breaks it all. If I set up Class Isolation for every app I deploy, I have to bundle common core classes and model, which are stored in cache, and also start a cache for every application. This scenario for me can't work because of lots of factors, being one of them memory consumption and network traffic. Probably it would have been beter not to keep compatibility at all, and created new package structure, that could have enabled deploying JBC2 in a probably large JBossAS 4.x base. Now if I want to keep on with JBC, I have to stick with JBC1.4, which is not very performant for me, or wait till JBossAS 5, and migrate all my apps, which is very costy. I wish this had been taken into account when you decided to make api incompatible JBossCache releases 1 and 2. Hope you think more on this for latter updates, seeing there is a chance that JBC3 don't make it into JBossAS 5. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171054#4171054 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171054 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: Redeployment loop of ear on jboss AS 5
JBoss does not survive the eclipse shutdown. The strange thing is the exact 5 mn delay between each redeploy, which looks like a conflict between the WTP publishing and the JBoss Tools, but even after having removed all WTP automatic publishing, this is exactly the same. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171055#4171055 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171055 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: JDBCCacheLoader problem
I was already working on it, although I didn't thought on passivation, rather in a cache.put for every node. I'll try cache.evict, as it seems rather easier. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171056#4171056 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171056 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: add new user
Petia, the SQL 42601 error comes up because the SQL statements are missing the trailing semicolons (;). | $ sed 's/$/;/g' jbpm.jpdl.postgresql.sql jbpm.jpdl.postgresql.delimiter.sql | $ psql -d database -U dbuser -W -f jbpm.jpdl.postgresql.delimiter.sql | Also, you'd need not only JBPM_ID_USER entries as outlined in the SQL snippet of Chapter 8.5.1 of the docs, but also entries in the JBPM_ID_GROUP and JBPM_ID_MEMBERSHIP table: INSERT INTO JBPM_ID_GROUP VALUES(1,'G','sales','organisation',NULL); | INSERT INTO JBPM_ID_GROUP VALUES(2,'G','admin','security-role',NULL); | INSERT INTO JBPM_ID_GROUP VALUES(3,'G','hr','organisation',NULL); | INSERT INTO JBPM_ID_GROUP VALUES(4,'G','user','security-role',NULL); | INSERT INTO JBPM_ID_GROUP VALUES(5,'G','manager','security-role',NULL); | INSERT INTO JBPM_ID_USER VALUES(1,'U','user','[EMAIL PROTECTED]','user'); | INSERT INTO JBPM_ID_USER VALUES(2,'U','manager','[EMAIL PROTECTED]','manager'); | INSERT INTO JBPM_ID_USER VALUES(3,'U','admin','[EMAIL PROTECTED]','admin'); | INSERT INTO JBPM_ID_USER VALUES(4,'U','shipper','[EMAIL PROTECTED]','shipper'); | INSERT INTO JBPM_ID_MEMBERSHIP VALUES(1,'M',NULL,NULL,2,4); | INSERT INTO JBPM_ID_MEMBERSHIP VALUES(2,'M',NULL,NULL,3,4); | INSERT INTO JBPM_ID_MEMBERSHIP VALUES(3,'M',NULL,NULL,1,4); | INSERT INTO JBPM_ID_MEMBERSHIP VALUES(4,'M',NULL,NULL,4,4); | INSERT INTO JBPM_ID_MEMBERSHIP VALUES(5,'M',NULL,NULL,4,3); | INSERT INTO JBPM_ID_MEMBERSHIP VALUES(6,'M',NULL,NULL,2,3); | INSERT INTO JBPM_ID_MEMBERSHIP VALUES(7,'M',NULL,NULL,3,3); | INSERT INTO JBPM_ID_MEMBERSHIP VALUES(8,'M',NULL,NULL,3,2); | INSERT INTO JBPM_ID_MEMBERSHIP VALUES(9,'M',NULL,NULL,2,2); | INSERT INTO JBPM_ID_MEMBERSHIP VALUES(10,'M',NULL,NULL,2,5); | INSERT INTO JBPM_ID_MEMBERSHIP VALUES(11,'M',NULL,'boss',2,1); | INSERT INTO JBPM_ID_MEMBERSHIP VALUES(12,'M',NULL,NULL,1,1); | Finally, if you add a new user using the jbpm-console, you will also need to associate the new user entry with a group, eg. by default at least the 'user' group to be able to login. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171057#4171057 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171057 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Using Connection Pool in EJB 3.0
mabimal wrote : How can i make ejb read this file | I don't know how you are reading this file currently in your web application. But you can use: InputStream is = this.getClass().getClassLoader().getResourceAsStream(configuration.xml); View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171058#4171058 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171058 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Localization
anonymous wrote : But these bundles place are distributed all of the places, so confusuded. This is the price of a modular structure. We cannot put all localization in a unique file it wouldn't make sense for deployment. I agree it would be easier for translators if they want to translate everything. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171059#4171059 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171059 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Terminated or deleted process instance?
anonymous wrote : The case i have is that Comment objects are attached to tokens in the process instance. I just tested GraphSession.deleteProcessInstance on a process with related comments, and they were deleted just fine. This was with jBPM 3.2.3. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171063#4171063 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171063 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Has anyone used JBC 2.x series with JBossAS 4.2.x series
Pretty much sums up my sentiments on this issue as well. Total drag and a bit of a cowboy nature to the design of JBC2. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171065#4171065 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171065 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Terminated or deleted process instance?
Same here. Works as expected View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171066#4171066 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171066 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Problems updating entity in a many-to-many relationship
One solution to my problem is to find out the UserPermissions to be deleted and remove them manually using the entity manager's remove method. I think it's a bit strange that this cannot be done by the container. After all it is able to store new relationships in the DB and update existing ones. So it should be able to remove existing ones as well. Anyways, things work the way I described, albeit my code looks all cluttered now. :-/ Regards, Thomas View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171067#4171067 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171067 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: add new user
Thanks Martin Your comment was very helpful. In the web-console, I had indeed assigned a group (which I had defined) to my user, but I realise now that I also have to have the group user assigned to him as well. (I must have missed this detail in the documentation). When playing around with the predefined groups I tried to assign the group admin (without assigning the group user) to my user. This causes the following error message HTTP Status 403 - Access to the requested resource has been denied after which I need to restart the system. If the group user is assigned to a user, everything works nicely. Greetings, Petia View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171069#4171069 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171069 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Same issue in 1.4.1 SP5
Hi, Does anybody know anything with regards to the questions above? Thank you, Stas. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171071#4171071 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171071 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - Re: AbstractServerLogin module.logout and cached principals
jboss caches the Principal only on successful authentication. So don't bother clearing the cache. Also you cannot call logout(). It is provided on the LoginModule for the container to call. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171074#4171074 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171074 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: the order of loading class (urgency! urgency! urgency! )
Which version of JBossAS are you using? In my testing, test.jsp uses a.class from A.jar in war1.war View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171075#4171075 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171075 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Problem in running jboss-4.0.5.GA
Gee, rk.ranjan.singh, did you look at the wiki entry that visolvejboss provided? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171076#4171076 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171076 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - Re: AbstractServerLogin module.logout and cached principals
thanks for the reply ragavgomatam. but the problem I am trying to look at is removal of the successful login from the cache. From my example above. Lets say: 1) My DefaultCacheTimeout in jboss-service.xml is set to default (30 mins). 2)I log in as john successfully (username:john, password 1234). Principal john gets cached. 3) I close my browser in 2 minutes. I open my browser after 10 mins. I am prompted with a login screen. 4) I log in, but *incorrectly*. username:john, password . The error page I have defined in my web.xml kicks in. *At this point, I also want to remove from the cache, the successful login from step 2.* 5) So, now, if john goes back to the login page and logs in correctly, I want to authenticate against my database instead of the cache. For this I needed a way to go through the subjects, catch the correct subject, get the correct principal and remove it from the correct principal set, yes? That is where I am a bit stuck in, how does one get to all the subjects? I can see the principal being set in the commit method, but in logout, the Set is blank. I believe this is because on my second login attempt, the subject is different that the previous one (successful attempt at step 2). Another question is: If we cannot call the logout, how do I log out of my web application? Would I need to try session invalidation? I am confused as to how this will remove the principal from JBoss cache. thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171077#4171077 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171077 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Access Resources from webapp directory
There are two caveats to your solution: 1) It is labor intensive and very slow 2) It does not work in JBossAS 5.0 (the listDeployed operation stopped returning anything in beta1 and as of CR1 still does not return anything) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171079#4171079 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171079 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: changing sar, ear, war deployment order
Probably the easiest way to get your sar deployed after your ear is to create a deploy.last directory (within the deploy directory) and place your sar file there. The sar will then be deployed last. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171081#4171081 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171081 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: StatisticsCollector - performance issue
My suggestion remains the same. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171082#4171082 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171082 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: ClassCastException while concurrent accessing EJBs and c
Do either of these help: http://wiki.jboss.org/wiki/CommonHurdlesAndDifficultiesYouMayEncounterDuringEJB3Development http://wiki.jboss.org/wiki/ClassCastExceptions View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171083#4171083 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171083 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: custom user and Jboss user
I will assume that your database is different from the portal's database. Then your code should get the user identity from the portal and use that identity within your own database. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171084#4171084 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171084 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Exception on trying to persist more than one object
Anyway to write an object into the db as soon as em.persist is called? I think this will solve the above problem. Kindly help View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171086#4171086 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171086 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Advanced Documentation] - Increase code cache non heap memory
I am running Jboss 4.2.2 on jdk 1.5.0.11. I managed to increase the permanent generation non heap memory using -XX:PermSize=32m -XX:MaxPermSize=128m, but didnt find an option to increase the code cache non heap memory which by default is 32 MB. Any help is appreciated. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171087#4171087 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171087 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Localization
Thomas, might it be possible to place all of the bundles in one location in the source and have the build(s) distribute the bundles to the correct components? Or maybe create an i18n component that all the other components depend on and place all of the bundles in the i18n component (you would then want to make sure that the bundle for each component uses that component's package name). Either way, I think you would still get the modularity you want, and translators could then easily find the files to translate. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171088#4171088 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171088 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Using Connection Pool in EJB 3.0
mabimal wrote : How can i make ejb read this file Are you asking how to configure EJB3 such that it uses your configuration file to connect to the database? If so, as far as I know, EJB3 looks up a datasource in JNDI. Therefore, all you have to do is create a service that reads your configuration file and creates a JNDI name for your datasource. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171089#4171089 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171089 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - SLSB basic design question
Hi, There is an SLSB. It has a facade method. Which calls private methods of the same SLSB. How can I pass parameters to those private methods? Via method declaration? Or can I use private fields? Like that: public class SLSB { | | int v1; | | void facade(int var) { | v1 = var; | call_internal(); | } | | void call_internal() { | use(v1); | } | } | Which way is preferred? Thanks, View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171091#4171091 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171091 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Advanced Documentation] - Re: Increase code cache non heap memory
Use -XX:ReservedCodeCacheSize=???m Googling jvm code cache size yielded http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171092#4171092 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171092 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Stale state problem kills process instance?
Hi, I am running jBPM 3.2.3 out-of-the-box (with Java 1.6). I got the same problem as described above. Coincidentally, I discovered that if both transitions outgoing from the Fork have the attribute name set the problem does not appear (the default setting is that the first transition does not have this attribute set to anything). Kind regards, Petia View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171093#4171093 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171093 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - JMS Topic synchronisation
Hi everyone, I'm looking for some informations about the synchronisation of a JMS topic between several JBoss servers. Thank you for your help. Antoine View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171095#4171095 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171095 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: SLSB basic design question
Always pass values as method parameters - do not use fields. With an SLSB multiple threads can be using it simultaneously and if you use a field you will get interesting results. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171094#4171094 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171094 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: JDBCCacheLoader problem
It seems that if I evict FQN.ROOT, only evicts nodes at primary level, and not its descendants. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171097#4171097 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171097 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Advanced Documentation] - Re: Increase code cache non heap memory
Thanks peter, I had completed missed that option while going through the VM options. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171098#4171098 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171098 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: SLSB basic design question
PeterJ wrote : With an SLSB multiple threads can be using it simultaneously Huh??? What about SLSB pools then? I was sure that a thread takes SLSB instance from the POOL, executes it and returns it back for later use. Never two threads execute on the same SLSB instance. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171099#4171099 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171099 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: SLSB basic design question
Peter is right, though for the wrong reason. :) SLSBs *do* have state, as the instance is returned to the Pool after use. Therefore invocation-specific data should not be kept in instance members of a SLSB. For SFSB this is acceptable (and good practice) because it's guaranteed that every subsequent invocation upon a given proxy will invoke upon the same SFSB instance. However, EJBs are Thread-safe - no two invocations will use the same instance concurrently (by spec anyway): EJB 3.0 Core Specification 4.7.11 wrote : The container must ensure that only one thread can be executing an instance at any time. S, ALR View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171100#4171100 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171100 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: custom user and Jboss user
Hi Peter, Thanks for your response! Do you think storing portal username and mapping to our databse customerId is reasonable approach then? I think I would either need to implement AuthenticationEventListener so mapping between my customer and portal user gets created if it has not existed before, or have a custom portlet that does that. What do you think? Thanks! Ann View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171101#4171101 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171101 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Stale state problem kills process instance?
You probably have a race condition between the beginning of the async node finishing up, and the end of the async firing. I wasn't clear on what's causing the wait node to complete - can it be very quick? If so, try putting a delay in there and see if it goes away. This isn't a fix, obviously - it just will point a finger at the problem. -Ed View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171102#4171102 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171102 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Has anyone used JBC 2.x series with JBossAS 4.2.x series
On this topic, we are planning on a AS5 clustering SPI that will allow for JBC to be easily updated (globally). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171103#4171103 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171103 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: SLSB basic design question
ALRubinger wrote : SLSBs *do* have state, as the instance is returned to the Pool after use. Therefore invocation-specific data should not be kept in instance members of a SLSB. Thanks, Andrew. This makes good sense. However, if I only run one single facade method, and previous old state doesn't bug me (all variables are re-initialized before used), can such temporal use of fields be justified? Imagine I have a chain of methods inside a SLSB. a calls b, b calls c, c calls d, etc. Facade method receives a parameter. I need to use that parameter down the chain of execution. Should I put that parameter in each method declaration? Ouch ... Doesn't look very appealing, don't you think? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171104#4171104 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171104 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Terminated or deleted process instance?
Hmm Thats weird, we also use 3.2.3 here on a jboss server 4.2GA release and a mysql database 5.x No idea why the cascades dont work then on our installations Regards, Leo mputz wrote : anonymous wrote : The case i have is that Comment objects are attached to tokens in the process instance. | | I just tested GraphSession.deleteProcessInstance on a process with related comments, and they were deleted just fine. This was with jBPM 3.2.3. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171105#4171105 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171105 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JBPORTAL-1978 : scriptaculous prototype js
oic, i try to see if by loading the new scriptaculous and prototype js from portal headers can be a workaround. If i can find wat cause the problem, i would post it :) Thanks Thomas. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171106#4171106 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171106 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - DDL statement inside a transaction (mysql)
Hi, There is a transactional SLSB method that uses EntityManager. It does some business logic, and on its finish all DB changes should be made persistent or rolled back. The problem is that along the way some DDL statements must also be executed. And MySQL cannot execute those statements inside the same SQL transaction, forcing to commit all outstanding changes. http://dev.mysql.com/doc/refman/5.0/en/implicit-commit.html I tried to workaround the problem, issuing DLL statements inside a new transaction, like this: @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW) | public int ddl(String ddl) { | log.warn(DDL is #0, ddl); | return entityManager.createNativeQuery(ddl).executeUpdate(); | } | But in spite of REQUIRES_NEW attribute all previous changes of *parent* transaction are also made persistent. Can you suggest what might be the problem? Thanks, View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171107#4171107 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171107 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: SLSB basic design question
vanyatka wrote : ...if I only run one single facade method, and previous old state doesn't bug me (all variables are re-initialized before used), can such temporal use of fields be justified? Sure, but you've set up a maintenance gotcha that is pretty easy to violate and will be difficult to debug. Also, you'll be less likely to see the inconsistencies exhibited in development, meaning it's likely that Peter's weird stuff will happen in Production. So as a general rule, I'd avoid this paradigm unless you can say: 1) There's no cleaner way 2) Document the hell out of it to make sure the instance var is cleansed upon each invocation vanyatka wrote : Imagine I have a chain of methods inside a SLSB. | a calls b, b calls c, c calls d, etc. | | Facade method receives a parameter. I need to use that parameter down the chain of execution. Should I put that parameter in each method declaration? Ouch ... Doesn't look very appealing, don't you think No, cluttered APIs are not pretty, though this approach *is* pretty foolproof. You can also look into: 1) Store that parameter in a ThreadLocal 2) Each method looks to the ThreadLocal for the value 3) Apply an interceptor to, after invocation, clear the value of the ThreadLocal (as the Thread will also be returned to a pool). S, ALR View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171109#4171109 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171109 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Has anyone used JBC 2.x series with JBossAS 4.2.x series
Pitty for those stuck with JBossAS 4 for a while. :-( View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=417#417 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=417 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: SLSB basic design question
Thanks for sharing your insights on this issue! ALRubinger wrote : Sure, but you've set up a maintenance gotcha that is pretty easy to violate and will be difficult to debug. Also, you'll be less likely to see the inconsistencies exhibited in development, meaning it's likely that Peter's weird stuff will happen in Production. So as a general rule, I'd avoid this paradigm Agreed. I don't like it either. That's why I brought it up ) anonymous wrote : | unless you can say: | 1) There's no cleaner way | Before asking this question I thought of two, you introduced the third, and now I don't like any of them ) anonymous wrote : | 2) Document the hell out of it to make sure the instance var is cleansed upon each invocation | Good point. anonymous wrote : | No, cluttered APIs are not pretty, though this approach *is* pretty foolproof. | Ugly or fragile? That is the question. anonymous wrote : | You can also look into: | 1) Store that parameter in a ThreadLocal | 2) Each method looks to the ThreadLocal for the value | 3) Apply an interceptor to, after invocation, clear the value of the ThreadLocal (as the Thread will also be returned to a pool). | Looks kinda the same as our discussed approach, only you have to clean a single variable. To make sure that variables are clean I can devote a special init() method for that, and call it each time inside my business methods. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171114#4171114 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171114 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Has anyone used JBC 2.x series with JBossAS 4.2.x series
derrickhackman wrote : Pretty much sums up my sentiments on this issue as well. Total drag and a bit of a cowboy nature to the design of JBC2. Not really cowboy, but stuff that needed to happen. JBC 1.x had a confusing and occasionally incorrect API. I do appreciate your concerns regarding backward compatibility though - and I agree that an appropriate translation layer should have been provided in JBC 2.x so it could be run in a compatible mode such that it could be dropped into applications written around 1.x. Jason has started a thread on the jbc-dev mail list to discuss backward compatibility in 3.0, and I'm going to start one to investigate the viability of an adapter package to allow 2.x (and 3.x?) to work in 1.x environments. Stay tuned. :-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171117#4171117 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171117 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Stale state problem kills process instance?
Hi Ed, Below is the example which works nicely for me. Note that, the fork and join have the default setting async=false. The transitions to B1 and to B2 going out from the Fork node, do not have any conditions specified. The only difference of this example, from a non-working example is that both transitions going out from the Fork node have names, i.e. to B1 and to B2 below. I hope this helps, Petia ?xml version=1.0 encoding=UTF-8? | | process-definition xmlns=urn:jbpm.org:jpdl-3.2 name=Fork | swimlane name=Initiator | assignment actor-id=admin/assignment | /swimlane | | start-state name=start-state1 | task name=start-task swimlane=Initiator/task | transition to=taskA/transition | /start-state | | task-node name=taskA | task name=taskA swimlane=Initiator/task | transition to=fork1/transition | /task-node | | fork name=fork1 | transition to=taskB1 name=to B1/transition | transition to=taskB2 name=to B2/transition | /fork | | task-node name=taskB1 | task name=taskB swimlane=Initiator/task | transition to=join1/transition | /task-node | | task-node name=taskB2 | task swimlane=Initiator name=taskB2/task | transition to=join1/transition | /task-node | | join name=join1 | transition to=end-state1/transition | /join | | end-state name=end-state1/end-state | /process-definition View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171118#4171118 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171118 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Stale state problem kills process instance?
Petia, If you have async=false on everything, all the work is performed sequentially on one thread - there's no opportunity for a stale object (or race condition) to occur. -Ed View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171123#4171123 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171123 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - Re: JBoss integration with Oracle Internet Directory
I'm struggling with the same challenge. There are quite a few login-module options, most of which I'm not sure how to set for OID. If you come across any answers, I'd love to hear them. I'll do the same for you. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171130#4171130 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171130 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Stale state problem kills process instance?
Hi Ed, Thanks for your reply. Maybe I misunderstood you, but I do not set the attribute async to anything at all. According to the specification, this attribute default value is false. In my opinion this is a strange attribute to have for a Fork Node, but again according to the specification every Node has it. So, without setting the async attribute and by using a Fork Node, I get a parallel split and the activities following the Fork Node are enabled (and possible to execute) in parallel. Nothing strange here. Sorry, if I comments have caused confusion. The problem mentioned initially was that the engine sometimes generates an error message when Fork is used (and breaks down, i.e., a restart is needed). I observed that it only happens if one of the outgoing transitions from a Fork misses a name (which is the default setting). Note, that this is just an observation based on a problem I faced and a couple of examples I was running. I have not made any real trouble shooting of the problem. I just though my observation can help others. Regards, Petia View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171131#4171131 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171131 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: SLSB basic design question
Of course an alternate approach is to go back to what was done with EJB 2.x to support unittestability - place all of the methods into another object, and make the SLSB a mere facade for that object. Then each SLSB method would look like: void doSomething(int var) { new RealObject(var).doSomething() } Unfortunately, this approach generates unneeded garbage. Personally, I vote for passing the values along from method to method. Less chance of unintentional bugs later on. And besides, by adding fields (whose values change) to an SLSB you are in effect adding state to what should be a stateless object. And as Andrew pointed out, you will be bit by this during maintenance (most likely several months/years down the line when someone inadvertently assumes that the field actually hold real state, and not pseudo-state). And besides, IDEs are pretty good about helping you manage method signatures. For example, say you wanted to add a second parameter to your facade method, and you dutifully add the parameter to the call_internal method invocation - Eclipse will flag the method call and provide suggested changes, including adding the parameter to the call_internal method. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171134#4171134 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171134 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] @TransactionTimeout Not working in JBos 4.2.2-GA
No matter where I put the @TransactionTimeout(1500) attribute it never seems to have any effect. The document http://wiki.jboss.org/wiki/TransactionTimeout seems to suggest it should. J ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Cannot configure Crystal Reports 2008 to work with JBoss 4.0
Hi there, I'm new to JBoss and have been trying to configure a connection from Crystal Reports 2008 to JBoss 4.0.4 using JNDI connection with JTDS (open-source JDBC driver) to Microsoft SQL Server 2000 for the past week with no success. I have also tried it with Crystal Reports XI Release 2 Service Pack 2. It looks like from the log on my JBoss server it's probably just a step or two from successfully connecting. Platform Specifications: - CR2008 - JBoss 4.0.4 GA as dated 2006-05-15 - Microsoft SQL Server 2000 - both CR and JBoss are installed on the same machine (Windows 2003 Server SP2) - JDK 1.5 update 6 (jdk-1_5_0_06-windows-i586-p.exe) Here's what I have done: On CR2008: - configure it in CRConfig.xml as follows (only showing the relevant parts): C:\Program Files\Java\jdk1.5.0_06\bin C:\jboss-4.0.4.GA\client\jbossall-client.jar;..(omitting unecessary clutter here)..;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar;${CLASSPATH} 100 jdbc:jtds:sqlserver://localhost:1433/Xtreme net.sourceforge.jtds.jdbc.Driver sa jnp://localhost:1099 org.jnp.interfaces.NamingContextFactory / sa ...(omitting unnecessary clutter) On JBoss 4.0.4: - set JAVA_HOME in system environment variable as C:\Program Files\Java\jdk1.5.0_06 - set JBOSS_HOME in system environment variable as C:\jboss-4.0.4.GA - set Path in system environment variable as %JAVA_HOME%\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN - installed JTDS 1.2.2 driver to C:\Media\jtds-1.2.2-dist - copied JTDS (jtds-1.2.2.jar) and MS JDBC drivers (msbase.jar, msutil.jar, mssqlserver.jar) to C:\jboss-4.0.4.GA\server\default\lib - copied, edited mssql-ds.xml from C:\jboss-4.0.4.GA\docs\examples\jca - the edited mssql-ds.xml is then renamed as jtds_mssql-ds.xml - its relevant configurations are as follows: local-tx-datasource jndi-nameMSSQLDS/jndi-name connection-urljdbc:microsoft:sqlserver://localhost:1433;DatabaseName=Xtreme/connection-url driver-classnet.sourceforge.jtds.jdbc.Driver/driver-class user-namesa/user-name sa - jtds_mssql-ds.xml is placed in C:\jboss-4.0.4.GA\server\default\deploy - started off JBoss server - when trying to connect from Crystal Reports 2008 using JDBC, it works - but when trying to connect using JNDI, it does not show a connection to connect to - therefore, proceeding further shows a Failed to open the connection. Details: Invalid connection error - as JBoss is booting up, shows the following error: 11:25:50,656 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4. 0.4.GA/server/default/deploy/jtds_mssql-ds.xml org.jboss.deployment.DeploymentException: Trying to install an already registere d mbean: jboss.jca:service=LocalTxCM,name=MSSQLDS at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103) at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura tor.java:449) at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java :171) at org.jboss.system.ServiceController.install(ServiceController.java:226 ) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch er.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.install(Unknown Source) at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch er.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept or.java:133) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM BeanOperationInterceptor.java:142) at
[jboss-user] [Security JAAS/JBoss] - Re: AbstractServerLogin module.logout and cached principals
anonymous wrote : 2)I log in as john successfully (username:john, password 1234). Principal john gets cached. | 3) I close my browser in 2 minutes. I open my browser after 10 mins. I am prompted with a login screen. When user closes browser, send a ajax request to server do a HttpSession.invalidate(). This will clear your cached Principal from Jboss. anonymous wrote : Another question is: If we cannot call the logout, how do I log out of my web application? Would I need to try session invalidation? I am confused as to how this will remove the principal from JBoss cache. | thanks. Yes HttpSession invalidation is the way to clear the cache from jboss View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171138#4171138 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171138 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: JBossWS Benefits
I suppose choice is one advantage. Lots of non-standardized web services functionality (for example, WS-ReliableMessaging or WS-Eventing) is accessed via a different API for each of the various stacks (CXF, Metro, etc). Rather than coding to a specific Web Services stack, you can use the JBossWS wrapper APIs. Then you have the option of switching your web services stack among the supported options (Metro, CXF, Native) without having to change your code. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171139#4171139 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171139 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - What can the MicroContainer do for me?
Hello, I am currently evaluating various Jboss technologies and the MicroContainer (MC) looks very promising. I have a few question I'd be appreciate if someone could answer. 1. Is the MC similar in concept to Spring ? 2. According to documentation, I don't need App Server to run MC. How do I use MC if I also want to use web tier (JSP, JSF, Servlets)? 3. What is the possible integration between MC and 3.1 Drools 3.2 Jbmp 4. Can the MC run as another module within App Server so the integration mentioned above would be seamless. 5. On the subject of seamless, can the MC be used within Seam? Thanks in advance for any help -Tom View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171143#4171143 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171143 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - @TransactionTimeout Not working in JBos 4.2.2-GA
No matter what method I put the @TransactionTimeout(1500) attribute it never seems to have any effect. The document http://wiki.jboss.org/wiki/TransactionTimeout seems to suggest it should on any public method. Is this not implemented? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171144#4171144 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171144 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Custom Login Module Issues.
hi, the problem is : login module class must be in system class path. happy news is that you can use ProxyLoginModule instead of directly declaring your class. look at the config file : login-module code=org.jboss.security.auth.spi.ProxyLoginModule flag=required | module-option name=moduleNameorg.jboss.portal.core.identity.MyLoginModule/module-option | module-option name=unauthenticatedIdentityguest/module-option | module-option name=userModuleJNDINamejava:/portal/UserModule/module-option | module-option name=roleModuleJNDINamejava:/portal/RoleModule/module-option | module-option name=userProfileModuleJNDINamejava:/portal/UserProfileModule/module-option | module-option name=membershipModuleJNDINamejava:/portal/MembershipModule/module-option | module-option name=additionalRoleAuthenticated/module-option | /login-module for further : http://docs.jboss.org/jbossas/admindevel326/html/ch8.chapter.html best regards View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171145#4171145 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171145 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - Re: AbstractServerLogin module.logout and cached principals
I seebut is there no way to directly get at a subject from my previous login, inside my customloginmodule? thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171149#4171149 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171149 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: IPs and URLs logging in JBoss
After trials and errors found how to log what i wanted. The following needs to be specified in the server.xml: | Valve className=org.apache.catalina.valves.AccessLogValve | prefix=access_log. suffix=.log | pattern=%{X-Forwarded-For}i %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ | directory=$JBOSS_LOGS | resolveHosts=false / | Note that instead of i have to use View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171153#4171153 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171153 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: WebServiceException: Unable to load Provider
https://jira.jboss.org/jira/browse/JBPAPP-941 This fixed the same issue I was having. I didnt have to remove or copy any jars View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171156#4171156 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171156 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user