[jboss-user] [EJB 3.0] - Re: Using remote EJB by annotation
I'm not sure what you mean by client. As I understand you have 2 EJBs on different servers, and one calls the other one, right? I think one option is to use external context as described in http://www.jboss.org/file-access/default/members/jbossas/freezone/docs/Server_Configuration_Guide/4/html/Additional_Naming_MBeans-org.jboss.naming.ExternalContext_MBean.html. I have not tried that with annotations but it should work. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226087#4226087 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226087 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How to start SubProcess dynamically ?
Figure out the solution .. I could assign EL expression to sub-process name. http://www.redhat.com/docs/en-US/JBoss_SOA_Platform/4.3.GA/html-single/JBPM_Reference_Manual/index.html#subprocess.element View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226086#4226086 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226086 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM on GlassFish - HTTP status 500
Hi Ronald, thanks for the answer! Could be, unfortunately I run out of time for this issue as well :-/ But with removing all gravel sort and filter tags as proposed, the console works on Glassfish correctly, which is OK for me at this moment... Cheers Bernd View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226083#4226083 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226083 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - Re: make ejb3 client use ServerAuthMode=false on sslsocket t
I think there are two issues here. 1. "deckrider" wrote : but I also don't want the client to know about port 3873 If you mean "client" in the sense of your own application code, then don't worry. It doesn't need to know about port 3873. When you execute | hello = (HelloWorld) ctx.lookup("HelloWorldBean/remote"); | you're bringing over a proxy object which knows about port 3873. 2. "deckrider" wrote : I've read how one can use SSLSocketFactory to somehow configure the client to use SSLSocketBuilder.REMOTING_SERVER_AUTH_MODE=false ... . How would I change my stand alone test client to make this work?" I'd like to be able to say: just add "org.jboss.remoting.serverAuthMode=false" to the EJB3 InvokerLocator. That is: | sslsocket://${jboss.bind.address}:3873/?org.jboss.remoting.serverAuthMode=false | but, unfortunately, that doesn't work right now. I've created JBREM-1121 "Client SocketFactory should be configurable by InvokerLocator" to fix that. For now, there is one parameter that you could add to the InvokerLocator which will get used by the client: "socketFactoryClassName". That is, you could write your own SocketFactory and insure that it doesn't authenticate the server. The easiest way to do that, I think, is to write a MySocketFactory class that (1) uses SSLSocketBuilder to create an appropriate NoServerAuthenticateSocketFactory, and (2) just wraps the NoServerAuthenticateSocketFactory. That is, calls to MySocketFactory.createSocket() return the result of NoServerAuthenticateSocketFactory.createSocket(). Then modify the InvokerLocator: | sslsocket://${jboss.bind.address}:3873/?socketFactoryClassName=org.deckrider.MySocketFactory | For more information about SSLSocketBuilder, see Section "5.7.6 SSLSocketBuilder" of the Remoting Guide at http://www.jboss.org/jbossremoting/docs/guide/2.2/html/index.html . It's a pain, but it should work. Hope that helps. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226080#4226080 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226080 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: svn plugin
There are two SVN solutions for Eclipse: http://www.eclipse.org/subversive/downloads.php and http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA Sounds like you're using Subclipse, which can be installed from this update site: http://subclipse.tigris.org/update_1.6.x View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226079#4226079 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226079 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: NoClassDefFound Exception from Sun AS 8.2 to JBM 1.4.0
Hi JBM experts: After change the security policy setting from permission java.util.PropertyPermission "*", "read"; to permission java.util.PropertyPermission "*", "read,write"; The NoClassDefFoundError is gone and now I am getting the following exception when trying to do: connection = connectionFactory.createConnection(); org.jboss.jms.exception.MessagingNetworkFailureException: Failed to download and/or install client side AOP stack at org.jboss.jms.client.delegate.ClientClusteredConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientClusteredConnectionFactoryDelegate$getClientAOPStack$aopClientClusteredConnectionFactoryDelegate.java:250) at org.jboss.jms.client.delegate.ClientClusteredConnectionFactoryDelegate.getClientAOPStack(ClientClusteredConnectionFactoryDelegate.java) at org.jboss.jms.client.ClientAOPStackLoader.loadClientAOPStackLoader.java:75) at g.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:192) This exception is somewhat generic and therefore I am posting here to see if anyone can share some of the common cause for this exception. Again, thanks for those of you kindly share your knowledge and ideas. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226078#4226078 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226078 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - How to start SubProcess dynamically ?
I have this requirement, where my process flow has a process-state to start the sub-processflow. However, I do not know the name of the sub-process at the deployment time. As a result, I could not add sub-process element name at the deployment time. However, the name of the sub-process is known at the start of the parent process (I could potentially pass it as Process Flow Variable). Is there any way, I could update the Parent ProcessInstance, before hitting the process-state node and update it with SubProcess Definitiation (based on Processflow var) ? Any other ideas ? Thanks in advance. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226077#4226077 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226077 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: generated form fields cant be changed
Make sure as you change form fields in the editor, you click enter to allow the form field change to take place in the eclipse plugin. Seems to be a bug, and the enter seems to be a work around. Try it and let me know. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226075#4226075 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226075 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: JTATransaction Error
Your fork 40,000 times will run in one transaction unless you make the subprocess run asynchronously. Thus, I would imagine that your transaction is timing out to cause this exception... as 4 processes would take a lot of time to spin up. When the transaction times out, the next would say, wait there is no transaction active! B View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226074#4226074 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226074 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: EventListener hibernate mapping >>> help needed!
There are plenty of examples with 3.x. You should just deploy the process definition with the class for 3.x. Brad View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226073#4226073 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226073 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Assigning task to a Group with variable(variable-name) d
Are you putting #variablename or just variablename? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226072#4226072 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226072 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: org.jbpm.jpdl.JpdlException
Your zip doesnt contain the processdefinition.xml in the root pretty straight forward. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226071#4226071 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226071 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Weird Jbpm exception.. need help...
What does your jbpm configuration look like? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226070#4226070 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226070 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Running JBoss 5 within Eclipse with a different set of p
Thanks Peter. Using what you said I think I found the solution. Instead of editing the launch configuration though, you can actually just double-click on the server from either the "Servers" or "JBoss Server View" views to open up the "Overview" window. >From there, select "Open launch configuration" and add the ports-01 parameter >to the "Arguments" tab. After that, you can modify the "Server Properties" on >the main "Overview" window you have to adjust the port to "8180" and the JNDI >Port to "1199" (I'd guess more if you use ports-02 etc.). While my server starts up fine (and is recognized as starting), I find that it doesn't shutdown properly. At first I was getting a whole heap of errors (it was still looking for 1099), but now I don't get any messages at all. It does shutdown and restart without a hitch, but it's still a little worrisome. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226067#4226067 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226067 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Render Portlet in a pop-up window
Hi, Here is a way you can achieve opening a portlet in a popup window. 1. Link the Portlet to a Page. 2. Define a Page Property say WindowType and give it a value say "NewWindow". 3. In Tabs.jsp while rendering the link for this page (identified based on the WindowType page property) use target = "_new". This should help you in achieving the objective. Regards, Sourav View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226053#4226053 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226053 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Entity relationship diagram (ERD) tool available?
I have JBDS 2.0.0 and can't seem to locate a ERD tool. I setup the db source explorer but not sure if it can do this. does Hibernate tools or JBoss tools support this and if so, how can I create the diagram? thx. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226051#4226051 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226051 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: Deployer test framework (Ruby and RSpec)
Following up to myself... I also have a handle DSL that's usable within the actual test-case to build a deployment and apply some structure. | it "should use the unit's root as RAILS_ROOT" do | deployment = deploy do | root do | dir 'config', :metadata=>true do | file 'rails-env.yml', :read=>'rails-env/simple-rails-env.yml' | end | end | end | unit = deployment_unit_for( deployment ) | meta_data = unit.getAttachment( RailsApplicationMetaData.java_class ) | | meta_data.should_not be_nil | meta_data.getRailsRoot().should eql( unit.getRoot() ) | meta_data.getRailsEnv().should eql( 'simply-an-env' ) | end | This creates a vfsmemory:// deployment which contains a directory config/ which is both a metadata directory and contains a file named rails-env.yml which is actually read from one of the test resources of a different name. Basically, just a handy way to construct a tree VFS from a variety of sources, and jacking some StructureMetaData around it at the same time. Thoughts? fwiw, if you prefer, the alternate Ruby syntax using curlies would be | deployment = deploy { | root { | dir( 'config', :metadata=>true ) { | file 'rails-env.yml', :read=>'rails-env/simple-rails-env.yml' | } | } | } | -Bob View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226050#4226050 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226050 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - How to locate MDB MXbean via JNDI? (crosspost from EJB/JBoss
Sorry for the duplication; this is a cross-post from the EJB/JBoss Forum because I am not sure which one is the right forum. Original post is here: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=154082 I've searched the documentation and the forums, wasn't able to find this particular issue addressed anywhere. I have a MDB (called MyMDB) deployed in a JAR, and I have a custom JMX bean deployed in a SAR. I would like to access the org.jboss.ejb.plugins.jms.JMSContainerInvokerMBean corresponding to my MDB so that the custom JMX bean can call the startDelivery() and stopDelivery() methods on the JMSContainerInvokerMBean. So far, I have been unable to locate the JMSContainerInvokerMBean in JNDI from within the SAR. I have tried the following JNDI contexts, to no avail: anonymous wrote : java:/comp/env/MyMDB | java:/com/MyMDB | java:/MyMDB | local/MyMDB | /MyMDB | MyMDB | The JNDIView service in the JMX Console reports the following: anonymous wrote : Ejb Module: MyMDB.jar | | java:comp namespace of the MyMDB bean: | | +- HandleDelegate (class: org.jboss.proxy.ejb.handle.HandleDelegateImpl) | +- ORB (class: org.jacorb.orb.ORB) | +- env (class: org.jnp.interfaces.NamingContext) | And of course I can access the desired JMSContainerInvokerMBean via the JMX console also, at something like the following: anonymous wrote : jboss.j2ee | | * binding=message-driven-bean,jndiName=local/my...@9049759,plugin=invoker,service=EJB | That number following the @ sign seems to be different every time I start JBoss, and this JNDI name seems to only apply from within the MDB's JAR scope itself. At first, I wasn't sure I could get access to the JMSContainerInvokerMBean from outside the MDB's JAR, but if the JMX Console can do it, I should be able to do it from within my custom JMX bean in my SAR. So does anyone know the correct JNDI path to construct to get a handle to this? For reference, I am running the following: JBoss AS 4.2.2 GA JBoss Messaging 1.0 Java SDK 1.5.0_12 And this is what my client JNDI lookup code looks like: JMSContainerInvokerMBean mbean = null; | try { | Context context = new InitialContext(); | mbean = (JMSContainerInvokerMBean)context.lookup(jndiName); | } catch (NamingException ne) { | log.error("Unable to retrieve JMSContainerInvokerMBean at JNDI context " + jndiName, ne); | } catch (ClassCastException ce) { | log.error("Object at JNDI context " + jndiName + " is not instance of JMSContainerInvokerMBean", ce); | } Any help is appreciated. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226046#4226046 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226046 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: new to JBOSS .. need some help
Here are two classes that might be of interest: https://www.redhat.com/courses/jb336_jboss_for_administrators/ https://www.redhat.com/courses/jb336c_jboss_administration_without_jboss_on/ There are also the JBoss AS docs at https://www.jboss.org/community/docs/DOC-12898 Finally, there is a lot of advice to be found in these forums and in the wiki. By the way, which JBoss AS version will you be working with? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226044#4226044 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226044 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Deployer test framework (Ruby and RSpec)
For my rails deployers, I wanted to be able to write tests using RSpec. I've been reworking the rspec-maven-plugin so that this will eventually work in your normal mvn test build. RSpec itself is a BDD testing tool, and tries to be fairly useful and self-documenting of tests. Here's what I've got so far to spin up a basic VFS-enabled MC, jam in 1 deployer, and deploy a file. | require 'deployers/deployer_test_helper' | | import org.jboss.rails.core.deployers.AppRailsYamlParsingDeployer | import org.jboss.rails.core.metadata.RailsApplicationMetaData | | describe AppRailsYamlParsingDeployer do | | include DeployerTestHelper | | def create_deployers | [ | AppRailsYamlParsingDeployer.new | ] | end | | before( :each ) do | setup_microcontainer | end | | it "should create a sub-deployment with pre-attached RailsApplicationMetaData" do | deployment = deploy( "#{BASE_DIR}/src/test/resources/deployments/toplevel/simple-rails.yml" ) | unit = deployment_unit_for( deployment ) | | sub_deployment = unit.getAttachment( "jboss.rails.root.deployment" ) | sub_deployment.should_not be_nil | sub_unit = deployment_unit_for( sub_deployment ) | | meta_data = sub_unit.getAttachment( RailsApplicationMetaData.java_class ) | meta_data.should_not be_nil | meta_data.getRailsRootPath().should eql( '/Users/bob/oddthesis/oddthesis' ) | meta_data.getRailsEnv().should eql( 'development' ) | end | | end | For example, in the above test, the AppRailsYamlParsingDeployer actually doesn't attach meta-data, but triggers a sub-deployment of another VFS, and attaches the sub-deployment to the unit of the root deployment. While this might not be "awesome" in terms of VDF usage, it just shows the ease of mucking about in all the innards from the Ruby end of things. If there's any further interest in this, I can break this framework out of the jboss-rails project into a more generally useful deployer-testing add-on for RSpec users. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226032#4226032 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226032 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Referencing path outside of portlet
Hi, I have 2 or more portlets on a page that I want to use a shared js library for that exists outside of the portlet structure. If I add it to the jboss-portlet.xml for each: The browser loads the file twice because it attaches the portlet's context in front of it. Since JBoss portal is open source, I imagine I could go into the Java file that adds the context in front of the header-content and edit it, but I can't find that file. Could someone point me to the correct file? Thanks! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226030#4226030 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226030 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: @RunAs doesn't work in JBossAS 4.2.3?
I researched this a little more. My example above is actually wrong. I tried to simplify my actual problem, and simplified it too far. According to EJB 3.0 Section 17.2.5.2: anonymous wrote : | Note that isCallerInRole(String roleName) tests the principal that represents the | caller of the enterprise bean, not the principal that corresponds to the run-as security identity | for the bean, if any. | So my above example will never print true in a compliant container. However my real problem is actually the more complex example (properly using RunAs): | public interface CalleeSessionBean { | public void execute(); | } | | @Stateless | @TransactionManagement(TransactionManagementType.CONTAINER) | @Remote(CalleeSessionBean.class) | @Local(CalleeSessionBean.class) | public class CalleeSessionBeanImpl implements CalleeSessionBean { | @Resource | private SessionContext context; | | public void execute() { | System.out.println("CallerPrincipal: " + context.getCallerPrincipal().getName()); | System.out.println("CallerInRole(testRole): " + context.isCallerInRole("CallerRole")); | } | } | | public interface CallerSessionBean { | public void execute(); | } | | @Stateless | @TransactionManagement(TransactionManagementType.CONTAINER) | @Remote(CallerSessionBean.class) | @Local(CallerSessionBean.class) | @RunAs("CallerRole") | public class CallerSessionBeanImpl implements CallerSessionBean { | @Resource | private SessionContext context; | | public void execute() { | InitialContext initialContext = new InitialContext(); | CalleeSessionBean callee = initialContext.lookup("CalleeSessionBean/local"); | callee.execute(); | } | } | In this case, the Callee still prints false, despite the fact it should have aquired the RunAs CallerRole. I traced through the code and the problem is due to https://jira.jboss.org/jira/browse/EJBTHREE-741, a defect in the RunAsSecurityInterceptor. Even though the issue claims it was applied to AS 4.2.0, it does not appear to be. It is however applied to the 5.0.0+ branches. Bottom Line: the answer to my own question is: The @RunAs EJB 3.0 annotation is broken in the 4.2.x branches, but does work correctly in the 5.x branches. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226028#4226028 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226028 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: org.jbpm.jpdl.JpdlException
See my post on how to build an archive via ant: http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225012#4225041 Normally I deploy via eclipse. Volker View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226027#4226027 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226027 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Weird Jbpm exception.. need help...
The problem might be that no one has faced this error before... at least you posted too little detail and context. Have you looked up http://localhost:8080/jmx-console/HtmlAdaptor?action=inspectMBean&name=jboss%3Aservice%3DJNDIView (check host/port) which names and types are registered and checked jbpm and spring configuration files for correct usage of this names? Have you debugged the code? Volker View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226023#4226023 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226023 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Classloading issue moving from 4.2.0 to 5.0.1
I have an application which is running without issue on JBoss 4.2.0. I am attempting to run the same application on JBoss 5.0.1 and I am hitting a classloading issue. It happens during deployment while Spring is instantiating my Spring managed beans. The class which cannot be found is in the Facelets library and the bean being instantiated is one of mine. The Spring jar, the Facelets jar and the jar containing my class are all packaged at the root of the EAR and referenced by the WAR via the MANIFEST.MF. As I said before, this worked fine in 4.2.0. FWIW, I am using the standard configuration for JBoss (although I get the same results using the default configuration) on Windows 2000 SP4 with JDK 1.6.0_01. Here is the relevant portion of the error: Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.mycompany.faces.FaceletViewRendererImpl]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/sun/facelets/FaceletViewHandler | at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115) | at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61) | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877) | ... 101 more | Caused by: java.lang.NoClassDefFoundError: com/sun/facelets/FaceletViewHandler | at java.lang.ClassLoader.defineClass1(Native Method) | at java.lang.ClassLoader.defineClass(ClassLoader.java:620) | at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:63) | at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:546) | at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:506) | at java.security.AccessController.doPrivileged(Native Method) | at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:504) | at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:481) | at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:134) | at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:131) | at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:452) | at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:258) | at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:152) | at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:259) | at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1102) | at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:772) | at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:415) | at java.lang.ClassLoader.loadClass(ClassLoader.java:251) | at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) | at com.mycompany.faces.FaceletViewRendererImpl.(FaceletViewRendererImpl.java:74) | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) | at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) | at java.lang.reflect.Constructor.newInstance(Constructor.java:513) | at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100) | ... 103 more I did look over the release notes and documentation and found nothing to indicate a classloader change which would affect this (as far as I could tell anyway). I also tried the suggestions at http://www.jboss.org/community/wiki/ClassLoadingConfiguration to no avail. I'd appreciate any suggestions as to how to resolve this. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226022#4226022 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226022 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - new to JBOSS .. need some help
hi all, i am a linux admin at my company and i have been working in this field for not more than a year. i have asked to attend JBOSS administration training as we plan to provide JBOSS support to our clients. can someone please let me know how to go about it? i mean to ask, i am not a Java person in the first place. my java knowledge is limited to creating a few programs in college in j2ee. thats it. how difficult would this be? spare just a couple of minutes plz. thank you View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226021#4226021 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226021 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Deploy Processdefinition via Ant
I'm using 3.2.6.SP1 too. Have you checked the content of the database after the deployment? Note that the target database of the deployment may be different from the one that is used by the jbpm-console. Make sure that both use the same connection/datasource. Volker View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226019#4226019 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226019 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Missing SecurityContextInterceptor while starting a Hell
I think that is comparing apples and oranges. Using a stand-alone Java client to access an EJB is more like using a stand-alone client to access RMI, a JMS destination, or a web service. Servlets and JSPs, on the other hand are typically accessed via a browser. The so-called security error you got is a common error when you are missing JAR files. I think what happens is that the JVM recognizes you are attempting to access a remote method and thus assumes the reason for the failure is security-related, but it usually is not. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226013#4226013 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226013 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Multiple data sources when using MySQL
I eliminated this last error by shutting down JBoss, truncating the timers table, and then restarting JBoss. Another issue has come up with this configuration. I tried to install a second box (one of our testing serviers) using the final configuration from the above experiments and ran into problems. Apparently, if I use the XA data source specification that I show above (without first using the non-XA source), then the JMS tables will not get created in the database and the Messaging service fails to start. Here are some stacktrace snips: | 2009-04-16 10:17:34,446 DEBUG [org.jboss.messaging.core.jmx.JDBCPersistenceManagerService] (main) Starting jboss.messaging:service=PersistenceManager | | 2009-04-16 10:17:34,493 DEBUG [org.jboss.messaging.core.impl.JDBCSupport] (main) Failed to execute: CREATE TABLE JBM_DUAL (DUMMY INTEGER, PRIMARY KEY (DUMMY)) ENGINE = INNODB | | java.sql.SQLException: XAER_RMFAIL: The command cannot be executed when global transaction is in the ACTIVE state | | at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055) | | at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956) | | at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3515) | | at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3447) | | at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1951) | | at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2101) | | at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2548) | | at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1605) | | at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1524) | | at com.mysql.jdbc.jdbc2.optional.StatementWrapper.executeUpdate(StatementWrapper.java:839) | | at org.jboss.resource.adapter.jdbc.WrappedStatement.executeUpdate(WrappedStatement.java:249) | | at org.jboss.messaging.core.impl.JDBCSupport.createSchema(JDBCSupport.java:301) | | at org.jboss.messaging.core.impl.JDBCSupport.start(JDBCSupport.java:167) | | at org.jboss.messaging.core.impl.JDBCPersistenceManager.start(JDBCPersistenceManager.java:148) | | at org.jboss.messaging.core.jmx.JDBCPersistenceManagerService.startService(JDBCPersistenceManagerService.java:100) | | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376) | | at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:269) | | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | | at java.lang.reflect.Method.invoke(Method.java:597) | | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) | | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) | | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138) | | at org.jboss.mx.server.Invocation.invoke(Invocation.java:90) | | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140) | | at org.jboss.mx.server.Invocation.invoke(Invocation.java:90) | | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668) | | at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206) | | at $Proxy36.start(Unknown Source) | | at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42) | | at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37) | | at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) | | at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) | | at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) | | at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348) | | at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286) | | at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598) | | at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934) | | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062) | | at org.jboss.dependency.plugins.Abstrac
[jboss-user] [JBoss/Spring Integration] - Re: IllegalArgumentException when trying to deploy an ear
The only thing that helped was to replace the Spring-JARs that come with JBoss-WS/CXF (spring-beans, -context and -core) with pristine JARs from a clean Spring distribution. The ones that come with JBoss-WS seem to be borked somehow. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226006#4226006 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226006 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Missing SecurityContextInterceptor while starting a Hell
Hi Peter, thanks for the quick answer. Am I right, if I say ejb3 applications do not need a specific security configuration, they just run like servlets or JSPs on a JBoss 5.0 ? regards JRookie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226005#4226005 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226005 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Jboss Portal Related Issues
anonymous wrote : 1 ) How to use drag and drop functionalities DnD property can be turned on both by xml and admin portlet. This link shows how to set it for dashboard. This property can also be applied to portals in similar way. http://docs.jboss.org/jbportal/v2.7.1/referenceGuide/html_single/#d0e13288 anonymous wrote : | Problem : I have created three user and three user has rights to access the portal which I have created. One user logged in and created some dynamic portlet(in center region). If another user logged in, he can see some chart portlet in center region. But he did not create any portlet in center region. The first users chartportlet is reflected this user also. Only dashboard is private area for users, everything else will be shared between the users(public area). I guess you can leverage this http://docs.jboss.org/jbportal/v2.7.1/referenceGuide/html_single/#d0e4799 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226002#4226002 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226002 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Running JBoss 5 within Eclipse with a different set of p
Caveats: You have to change the XXX.launch file while Eclipse is not running - apparently the file is not reread when you start the server, and also the file is overwritten when you stop Eclipse. So stop Eclipse first, then change the file. Eclipse can no longer tell if the JBoss AS has started because Eclipse is looking at JNDI port 1099, which is not used by the ports-01 port configuration. I thought I saw a post about this earlier. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226000#4226000 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226000 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Running JBoss 5 within Eclipse with a different set of p
I thought it should be as easy as specifying a property somewhere, but it appears that no such place exists. It even looks like Eclipse runs JBoss AS via a java command that it generates, rather than relying on the run.bat file, so it is not like you could edit the run file. Found it! Look in workspace\.metadata\.plugins\org.eclipse.debug.core\.launches\XXX.launch, where XXX is the name you gave to the server. Edit this entry: | Perhaps you should ask about this in the JBoss Tools (Users) forum; being able to provide additional command line arguments sounds like a worthwhile new feature request to me. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225998#4225998 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225998 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Possible to encrypt/encode mdb-passwd?
I'm working with JBoss 4.0.3SP1 and message driven beans. All users of any kind on the system have to auth with ldap to subscribe to any message queues. We currently have our ldap passwords encrypted in the xml files, but have yet to find a way to encrypt the mdb-password. I've been looking around for a way to encrypt/encode the mdb-password in the jboss.xml file and have not found any useful information. Is there a way to do this? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225997#4225997 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225997 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Re: How to encrypt MDB passwords
Did you ever find a solution to this? I've been searching around for a couple days for a way to do this, but this is the only post that I found that has anything to do with what I'm needing to do. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225995#4225995 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225995 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: injection SFSB to SLSB
I fact, when I use just one SFSB, then it works fine, just I have many methods there and sometimes ugly names like getCountForAAA(), getCountForBBB(). I still cannot believe there is not any nice easy way how to break my code into more objects :-) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225992#4225992 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225992 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Render Portlet in a pop-up window
I am also looking for similar functionality wherein user can see the preview of portlet before adding it to page. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225988#4225988 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225988 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Missing SecurityContextInterceptor while starting a Hell
Most likely you are just missing some JAR files in your client's classpath. You should have jbossall-client.jar, your client's JAR file and a JAR file containing the interface(s) for your EJB(s). View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225987#4225987 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225987 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss OSGi] - Deployment of EJBs as OSGi Bundles
Hello! I am really interested in the progress of JBoss OSGi. As far as I understand JBoss AS 5 uses OSGi for loading services internally. Am I right? Is it already possible to deploy EJBs as OSGi bundles or will it be possible in the near future? That would be a really nice feature. Unfortunately, I couldn't find any further documentation about that (neither in the JIRA nor in the docs). View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225986#4225986 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225986 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Running JBoss 5 within Eclipse with a different set of p
I should specify, I'm running Eclipse 3.4.2 w/ JBoss Tools. The JBoss version is 5.0.1.GA. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225980#4225980 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225980 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Specifying default values to @Service attributes (JBoss
"csorbag" wrote : | I tried both ejb-jar.xml and jboss.xml. None of them worked. I know the tutorial mentions only jboss.xml. The problem is that there is only a partial deployment descriptor in the tutorial that does not mention where I should put the service tag. Unfortunately I couldn't even find any references to the deployment descriptor XSD or DTD, so I couldn't figure out myself. No matter where I put the service tag I get the following exception after deploying the service: | I finally found the DTD of jboss.xml (jboss_5_0.dtd under docs/dtd). I simply cannot find any trace of the service tag in that. I'm totally confused :( Is it a deprecated feature in the new release? Do I misunderstand something? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225979#4225979 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225979 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Running JBoss 5 within Eclipse with a different set of ports
Hello. I can't use the default set of ports with JBoss and would like to run it with one of the alternative sets. I can do this on "stand-alone" JBoss by creating a new .bat file with the contents "run.bat -Djboss.service.binding.set=ports-01", but I'm not sure how do to the equivalent when running JBoss from within Eclipse. Is there a way to supply parameters? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225978#4225978 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225978 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Missing SecurityContextInterceptor while starting a HelloWor
Hello all, I try to run a very simple ejb3 application under JBoss5.0. It's just Hello World where you give a name and get the reply "Hello ". When I try to start the client I get this message: org.jboss.proxy.ejb.SecurityContextInterceptor (no security manager: RMI class loader disabled) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:668) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:520) at javax.naming.InitialContext.lookup(Unknown Source) at de.akdabas.jli.j2ee.ejb.HelloWorldClient.main(HelloWorldClient.java:37) In line 37 of my program there is: InitialContext ctx = new InitialContext(env); Object objRef = ctx.lookup("ejb/HelloWorld"); Do I have to set up a security policy, if I try to run a ejb3 application? Or is it something else? Deployment of that bean looks alright: 11:42:35,656 INFO [EjbDeployer] installing bean: ejb/HelloWorld.jar#HelloWorld,uid27633413 11:42:35,656 INFO [EjbDeployer] with dependencies: 11:42:35,656 INFO [EjbDeployer] and supplies: 11:42:35,656 INFO [EjbDeployer]jndi:ejb/HelloWorld 11:42:35,890 INFO [EjbModule] Deploying HelloWorld 11:42:35,953 WARN [EjbModule] EJB configured to bypass security. Please verify if this is intended. Bean=HelloWorld Deployment=vfszip:/F:/Entwicklung/JBos s_5.0/jboss-5.0.0.GA/server/default/deploy/HelloWorldApp.ear/HelloWorld.jar 11:42:36,609 INFO [ProxyFactory] Bound EJB Home 'HelloWorld' to jndi 'ejb/HelloWorld' Is there anyone who has an idea ?? regards JRookie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225974#4225974 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225974 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Render Portlet in a pop-up window
I would like this functionality as well. I have used other Portal vendors in the past, they had this functionality by setting a custom mode called SOLO. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225969#4225969 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225969 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Cluster nodes not discovered
Can they ping each other? Is there a firewall running? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225968#4225968 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225968 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: ActorId & PooledActors
Thank you my friend. There was an issue in my query. Now I am using this query and get the right information. public List findEndedPooledTaskInstancesByName(List actorIds) { | JbpmContext jbpmContext = Tools.jbpmConfiguration.createJbpmContext(); | try { | List taskList; | Query query = | getSession(jbpmContext).createQuery("select distinct ti\n" + | " from org.jbpm.taskmgmt.exe.PooledActor pooledActor "+ | " join pooledActor.taskInstances ti " + | " where pooledActor.actorId in ( :actorIds ) " + | "and ti.actorId != null " + | "and ti.end != null"); | query.setParameterList("actorIds", actorIds); | taskList = query.list(); | return taskList; | } finally { | jbpmContext.close(); | } | } View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225960#4225960 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225960 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Specifying default values to @Service attributes (JBoss
"jaikiran" wrote : anonymous wrote : | | The service element in not available in ejb-jar.xml. Its available only in jboss.xml. | | I tried both ejb-jar.xml and jboss.xml. None of them worked. I know the tutorial mentions only jboss.xml. The problem is that there is only a partial deployment descriptor in the tutorial that does not mention where I should put the service tag. Unfortunately I couldn't even find any references to the deployment descriptor XSD or DTD, so I couldn't figure out myself. No matter where I put the service tag I get the following exception after deploying the service: | org.jboss.xb.binding.JBossXBRuntimeException: service not found as a child of enterprise-beans | | at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:863) | at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:806) | at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:293) | at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221) | at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) | at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) | at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181) | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205) | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) | at java.lang.Thread.run(Thread.java:619) | "jaikiran" wrote : anonymous wrote : | | The env-entry can be specified for the services in the jboss.xml. If that doesn't work then please post the contents of your jboss.xml and the entire exception stacktrace. | | That's exactly what I'm trying to do. Here are the DD and the class. | | | | | TestService | | defaultAttributeValue | java.lang.Integer | 10 | | test.TestService | attribute | | | | | | The service: | package test; | | import javax.ejb.Remote; | | import org.jboss.ejb3.annotation.Management; | import org.jboss.ejb3.annotation.Service; | | @Service(name = "TestService", objectName = "test:service=TestService") | @Remote(TestInterface.class) | @Management(TestInterface.class) | public class TestService implements TestInterface { | | private int attribute; | | @Override | public int getAttribute() { | return attribute; | } | | public void setAttribute(int attribute) { | this.attribute = attribute; | } | | } | If I change the @Service attribute to @Stateless and the service tag to session, so that it's a regular SB, then it works fine and the container injects the value specified in the env-entry-value tag. I just cannot figure out how to do it with a @Service. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225959#4225959 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225959 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM on GlassFish - HTTP status 500
Bernd, It's most likely caused by the same thing as why the console does not run out of the box on JBoss AS5. Solutions can be found in combining things from Jira and reading some posts in the forum for additional info. I unfortunately cannot make the time to fix these. Ronald View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225957#4225957 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225957 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: How to configure region based caching & use multiple cac
Thank you. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225954#4225954 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225954 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Active Directory Single sign on
What you are looking for is Windows Integrated Authentication. Someone in an earlier post mentioned a Java library that can do this, and I finally found the reference: http://www.ioplex.com/jespa.html I have not yet used this library (it's on my to-do list) so I cannot provide any further guidance as to how to integrate it into Portal. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225951#4225951 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225951 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: injection SFSB to SLSB
Well, then I do not see, why SFSBs exists. I have hoped they can do this for me. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225948#4225948 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225948 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: JBoss property files error
Issue created https://jira.jboss.org/jira/browse/JBIDE-4195 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225944#4225944 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225944 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: svn plugin
For example http://www.eclipse.org/projects/project_summary.php?projectid=technology.subversive View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225943#4225943 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225943 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: svn plugin
Jboss doesn't develop svn plugin, it's only provide third party svn plugin. I think you should try google. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225940#4225940 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225940 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: calling a web service from a web page
I'm no expert, but that would seem to require that you write a WS client in Javascript... no easy task. You'd be better off writing a servlet or JSP that contains the WS client and then using that to invoke the web service, then present the results in HTML. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225934#4225934 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225934 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - svn plugin
Where can i find the svn version 1.6 plugin for jboss developer studio. I am using ver 1.1 CR1 of the jbossdevstudio and wen i commit files a message appears which says that please update your svn client as it is too old for the repository. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225931#4225931 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225931 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Process deployment in jBPM4
Hello, what are the options for process deployment in jBPM v4? I don't see neither org.jbpm.ant.DeployProcessTask nor the jbpm-console web app. And there is no deployment option in gwt-console. Thanks in advance, Vojtech View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225929#4225929 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225929 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: injection SFSB to SLSB
Just a possibility to get rid of this problem could be to transfer the session informations between the client and server (like cookies). If this would be to big, you can also maintain all session information on the server side (database) and just transfer the session id. We are using the second approach where the client sends with every request his session id to the server. This can be done by facading the already written ejb's with another ejb but needs change in every server request at client side. Hope this helps in a way. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225926#4225926 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225926 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: injection SFSB to SLSB
Hmm, I have changed my all SLSBs info SFSBs, but it didn't help my problem. If fact, I need something like http session, but for session beans called from Swing client. I.e. the client calls a several session bean, they gets some object which are related to this client (a quick operation) and then make some lengthy operation, like accessing DB or the local filesystem. Yes, if I will have just one SFSB, then it would work for me. However, I'd like to have more remote interfaces just to have the code logically separated, since I have a quite few business methods to call. Thanks for any help Andy View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225923#4225923 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225923 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM on GlassFish - HTTP status 500
This seems to be still an issue, which is a bit disgusting for Glassfish users :-( Anybody has new thoughts on this? Or solved it without just removing sorting and filtering? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225917#4225917 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225917 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - WebFault and Declared RuntimeException is wrapped by SOAPFau
Hi All ! I'm writing webservice with JBoss 4.2.3 and jbossws-native-3.0.3.GA. When I declare checked exception, client can catch right unbinded exception. @WebMethod | public String testWyjatek003(@WebParam(name = "paramString") String paramString) throws WyjatekTestowy, | WyjatekTestowyDziedziczacy; When I declare runtime exception, exception is right unmarshalled as cause of SOAPFaultException but is not unwrapped. | @WebMethod | public String testWyjatekRuntime005(@WebParam(name = "paramString") String paramString) | throws WyjatekTestowyRuntime02; | | @WebFault | @ApplicationException(rollback = true) | public class WyjatekTestowyRuntime02 extends RuntimeException { | [...] | } | I was investigating this case and I found ClientProxy.handleException(Exception ex) private void handleException(Exception ex) throws Throwable |{ | if (ex instanceof SOAPFaultException) | { | // Unwrap the cause if it is an Application Exception, otherwise use a protocol exception | Throwable cause = ex.getCause(); | if (cause instanceof Exception) | { | // Throw unwrapped WebServiceException | if (cause instanceof WebServiceException) |throw (WebServiceException)cause; | | // Throw wrapped SOAPException | if (cause instanceof SOAPException) |throw (SOAPFaultException)ex; | | // Throw wrapped RuntimeException | if (cause instanceof RuntimeException) |throw (SOAPFaultException)ex; | | // Throw all other causes | throw (Exception)cause; | } | } | throw ex; |} So RuntimeException is wrapped with SOAPFaultException. Is there way to write transparent code with declaring RuntimException and services with JBossWS ? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225916#4225916 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225916 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: IPC sample project ala JSR 286
Thanks everybody for your help. I manage to create two little portlets communicating ;-) The next step is to migrate a seam/richfaces application in several portlets view. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225912#4225912 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225912 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: injection SFSB to SLSB
Hmm, I think injecting of SFSB into SLSB is a wrong design: http://www.coderanch.com/t/436872/EJB-Other-Java-EE-Technologies/java/Dependency-injection-stateful-session-beans View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225900#4225900 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225900 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Best Practice to get SessionFactory
Is true, Kuke thanks for your reply. I missed that thing.. usually i use always Interfaces.. my bad to think about this as a solution :). View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225897#4225897 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225897 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Problem - if USB Token is removed, web application must not
Hi, I'm using JBoss 4.2.2.GA for a J2EE web application, running on a secured VPN. The application must all be SSL-enabled and the users accesing it must have an USB eToken Pro (with their client certificate on it). The application runs on Internet Explorer 7 (client requirement). If the user removes the usb token the web application must not allow any other operation. If I run the application on Firefox 3, remove the token and then try to continue with the application an error message appears: anonymous wrote : Secure Connection Failed | PKCS#11 token was inserted or removed while operation was in progress. | (Error code: ssl_error_token_insertion_removal) Internet Explorer 7 doesn't have the same behavior if I remove the token. On IE7 the application behaves the same even if I remove the token. Can someone give me some advice on how to configure this behavior on JBoss (when the user removes the token, the application must not be accessible anymore) ? How can I enforce client certificate authentication not just at login time, but more frequently so if the user removes the token the application must not be accessible anymore ? In Apache Http Server there is an option to configure the SSL Session Timeout, but could not find this in JBoss AS (in embedded Tomcat): anonymous wrote : Apache Http Server | # SessionCache Timeout: | # This directive sets the timeout in seconds for the information stored | # in the global/inter-process SSL Session Cache. It can be set as low as | # 15 for testing, but should be set to higher values like 300 in real life. | SSLSessionCacheTimeout 30 The SSL Connector in JBoss is configured as follows: | The JaasSecurityDomain MBean is configured like this: | | | | | ${jboss.server.home.dir}/conf/server.keystore | {CLASS}org.jboss.security.plugins.FilePassword:${jboss.server.home.dir}/conf/serverKeystore.password | ${jboss.server.home.dir}/conf/user.truststore | {CLASS}org.jboss.security.plugins.FilePassword:${jboss.server.home.dir}/conf/userTruststore.password | jbossserver | 13 | | Any help at all would be highly appreciated. Thanks. Andrei View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225896#4225896 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225896 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - RMI IIOP Security
Hi, It is my duty to implement security over the app RMI/IIOP calls. How to do it? Thanks, Andre View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225894#4225894 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225894 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: use RichFaces Beta for a single project within JBoss Too
Code assist will work in JSP for new components. But not in XHTML. We are working on it to make this feature more flexible. In order to add new components to code assist for XHTML you have to add them to \eclipse\plugins\org.jboss.tools.common.kb-*\schemas\tld\Richfaces3_3.xml I hope we will improove this feature in next version of JBoss Tools. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225891#4225891 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225891 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Best Practice to get SessionFactory
this way you are dependent on what is explicitly configured (not using interfaces but and explicit implementation) imo that is not the best way (no examples show this, but do show what Volker advised) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225887#4225887 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225887 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Assigning task to a Group with variable(variable-name) d
Never used the expressions since they are not easily used with a custom identity solution, so I have no real clue. Maybe the unittests in the source can shed some light on this View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225885#4225885 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225885 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Getting Started Documentation] - unable to Integrate opends and opensso with jbossportal 2.7
Hi !!! I am using jboss portal 2.7.0 on linux(fedora 10) OS i tried integrating opends(LDAP server) and opensso witj jboss portal following the link http://blog.jboss-portal.org/search/label/ldap but the problem i am facing is i am not able to login to opensso nor does it give me a login failed error but it dispalays the same login page again so i am unable to prodeceed with the integration procedure can someone plz help me in resolving this issue Regards.. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225883#4225883 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225883 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: use RichFaces Beta for a single project within JBoss Too
thank you for your answers! is it possible to enable syntax completion for the new components as well? (the completion that is triggered by CTRL + Space) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225881#4225881 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225881 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.0 with Stateless Session Bean as instance variable
See this http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4140142 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225877#4225877 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225877 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.0 with Stateless Session Bean as instance variable
Yes I know, but my main concern is that stateless session beans should not get created endlessly, that is to say that if pooled message driven beAn is used to process a message, a pooled stateless session bean should be injected rather than creating a new one every time. Hope I make sense now. Thanks, Ahmed View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225872#4225872 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225872 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - Re: Different jboss-aop.xml files for unit testing
Hi Flavia, Can I just confirm a few things about my setup; 1. I would have thought the following pointcut would have worked | | | | | Just to explain what I have done ExampleManagerBean - session bean under test ExampleManagerBeanTest - junit test So pointcut is saying "if createObject method in session bean is called from within the junit test then execute aspect - ExceptionInjector" Is my understanding correct? I still can't get the aspect to be executed! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225870#4225870 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225870 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: use RichFaces Beta for a single project within JBoss Too
Please ignore last paragraph: anonymous wrote : Just copy new RichaFaces jars (richfaces-api-*.jar, richfaces-impl-*.jar, richfaces-ui-*.jar) to your web project (/WebContent/WEB-INF/lib) in case of war project. | If you use EAR then copy richfaces-api-*.jar to /EarContent ;) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225868#4225868 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225868 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: use RichFaces Beta for a single project within JBoss Too
Hi, If you use EAR project: - update old /EarContent/richfaces-api.jar to new one - update old richfaces-impl.jar, richfaces-ui.jar in /WebContent/WEB-INF/lib to new ones Please don't rename these jar names otherwise you have to update /META-INF/MANIFEST.MF in ejb and war projects too. If you use WAR project: - update old /WebContent/richfaces-*.jar to new ones Just copy new RichaFaces jars (richfaces-api-*.jar, richfaces-impl-*.jar, richfaces-ui-*.jar) to your web project (/WebContent/WEB-INF/lib) in case of war project. If you use EAR then copy richfaces-api-*.jar to /EarContent View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225867#4225867 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225867 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: use RichFaces Beta for a single project within JBoss Too
download richfaces and use those jars in your project instead of the current ones. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225865#4225865 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225865 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Exciting times for JBoss Messaging
That's a great move! I'm glad to see it's happening. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225864#4225864 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225864 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Injecting EJBS into Webservice in Servlet Layer
This is actually more an Java EE 5 than en "ejb 3.0" Question. Please point me to a more appropiate Forum if there is such. I've got a Class with "@WebService" packaged in a war together with an web.xml configuring it with the "servlet" and "servlet-mapping" tags. This class does not getFields anotated with "@EJB" injected. The war is packaged in an ear together with an ejb-jar. I'm running jboss 5.0.1. Does this simply not work or am I doing somethingh wrong? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225863#4225863 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225863 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Exciting times for JBoss Messaging
As many of you will be aware, for some time now Red Hat has had more than one messaging system implementation in house: JBoss Messaging - the project based at JBoss, (currently available in the JBoss EAP and JBoss SOA-P products), and Red Hat Messaging, based on the Apache Qpid project (currently available in the Red Hat Enterprise MRG product). For a while now we've recognised that we need to present a single consistent messaging offering across the whole of JBoss / Red Hat, so the projects are coming together to deliver a unified cross-company messaging solution in the future. To reach that goal, JBoss Messaging 2.x will implement AMQP, as we consider this to be of strategic importance, along with JMS, and of course the full set of enterprise messaging functionality that you'd expect in any serious messaging broker. JBoss Messaging will also be relicensing it's code under the ASL 2.0 licence (moving away from LGPL) in order to be usable by the widest range of interested parties. The JBoss Messaging team will work with the Apache QPid community to ensure the QPid AMQP clients work seamless with both the QPid and JBoss Messaging brokers. The JBoss Messaging project will remain as a community project at jboss.org. I think you'll agree this is great news and will signal the start of a new era of unified messaging at Red Hat. :) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225860#4225860 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225860 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss OSGi] - Re: Exporting bundles as MBeans
Thomas, yes indeed I did connect to the wrong server. Just adding -D...jmxremote and using jconsole with the process id of the runtime does not work. I did not see the line anonymous wrote : | 12:10:39,303 INFO [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector | In the startup log before - using this url to connect via jconsole works and shows all bundles as mbeans. Perhaps you could add a note to look for that url into the user docs. Thanks Heiko View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225857#4225857 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225857 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: injection SFSB to SLSB
I have a similar problem with JBoss 5.0.1 GA. I have one SFSB (which holds some data) with only local business interface . And several SLSBs with remote interfaces. All SLSBs inject the SFSB using @EJB. I have a standalone Swing client accessing the SLBS. I have observed that: - Each SLSB inject new SFSB although the session is the same. - When the session is removed (by a business method marked as @Remove), the next call to a SLBS throws "javax.ejb.NoSuchEJBException: Could not find stateful bean: all5z-81lkw2-ftl86qub-1-ftl9srgf-a0". I suspect (like the previous post), that @EJB is not refreshed each time the SLBS is called, but only when it is created. Is this a normal behaviour or a bug? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225854#4225854 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225854 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - use RichFaces Beta for a single project within JBoss Tools
Hi! I am using the newest JBoss Tools for Eclipse to develop JBoss Seam RIA using the included RichFaces version 3.3.0. I now want to try a few new features of the new RichFaces beta. Is it possible to include the new richfaces version into JBoss Tools for only that single project? How do I do that? Thank you in advance! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225846#4225846 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225846 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Stateful Session Beans as Web Services on Jboss 5.0
Can web service be stateful? see http://www.coderanch.com/t/419120/Web-Services-Certification-SCDJWS/certification/Stateful-Web-Service View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225847#4225847 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225847 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Using remote EJB by annotation
Hi, My scenario is: a) jboss server A (ip a.a.a.a) - client - application wants to access through annotation (inject and execute method) on ejb located on other server b) jboss server B (ip b.b.b.b) - ejb - other server containing ejb which I want to access Where: a) jboss server A ip address is a.a.a.a and name dns name is jbossa b) jboss server B ip address is b.b.b.b and name dns name is jbossb I was trying to follow this article: http://www.mastertheboss.com/en/jboss-application-server/49-jboss-ejb3-in-a-cluster.html part: " How can a remote client access a clustered EJB ?" but I don't want to cluster 2 jboss servers I added to jboss server A in ...jboss/server/default/conf/jndi.properties new line (none of them allowed to pass my scenario): a) java.naming.provider.url=jbossb:1099 b) java.naming.provider.url=jnp://b.b.b.b:1099 c) java.naming.provider.url=jbossa:1099,jbossb:1099 d) java.naming.provider.url=jnp://a.a.a.a:1099,jnp://b.b.b.b:1099 and according to article I should add @Clustered but I did not (I don't want to use cluster). When I'm trying to inject EJB in client on jboss server A I got typical exception "MyBean is not bound". My questions: 1) Is it possible to access remote EJB using annotation without clustering jboss servers ? 2) Is it possible to use access EJB using annotation clustering jboss servers? 3) Is clustering only option to access remote EJB when using annotation? 4) What is the overhead when two jboss servers are clustered? 5) Is it possible to setup clustering in a way that it will only support using remote ejb without other functionality (to limit overhead)? Regards, Adam. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225843#4225843 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225843 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - Re: Different jboss-aop.xml files for unit testing
Hi Flavia, I cannot seem to get the verbose mode to work! I have tried; 1. adding the -Djboss.aop.verbose=true setting to the VM Arguments of my JUnit test class's run configuration (eclipse) 2. Set the jboss.aop.verbose=true as a System property setting via System.setProperty("jboss.aop.verbose", "true"); Neither of which seem to make any difference. I do not have any aop configuration file or anythin like that - do I need one to define this setting? The "call pointcuts" work in the examples provided by the aop release, that I have tried! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225841#4225841 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225841 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Re: Problem with custom Authenticator and Login Module
I solved my problem. The problem was a NullPointerException in commit() method of the AbstractServerLoginModule because the logger was not initialize. Thank you to myself. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225838#4225838 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225838 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JBossRenderResponse cannot be cast to HttpServletRespons
P.S version: jboss-portal-bundled-2.4.1-SP1 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225828#4225828 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225828 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JBossRenderResponse cannot be cast to HttpServletRespons
I also try to open localhost:8080/portal/portal/default/default page but I get the same page as localhost:8080/portal View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225830#4225830 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225830 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - JBossRenderResponse cannot be cast to HttpServletResponse
Hello. I have to make some additional code changes in project, which is built on jboss portal. Deployment is ok, but when I try to refres localhost:8080/portal page after deployment I get this: | java.lang.ClassCastException: org.jboss.portlet.JBossRenderResponse cannot be cast to javax.servlet.http.HttpServletResponse | This exception occurs in PhaseListener: | FacesContext facesContext = event.getFacesContext(); | HttpServletResponse response = (HttpServletResponse)facesContext.getExternalContext().getResponse(); | Here is configuration: portlet.xml: | http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"; |xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"; |version="1.0"> | | SomePortlet | | some.some.MyfacesRepairedPortlet | | | default-view | /jsp/welcome.jsp | | | text/html | VIEW | | | Some Portlet | | | ADMIN | ADMIN | | | | | SomePortlet | *.jsp | | | | NONE | | | | | | portlet-instances.xml: | | | | | SomeInstance | SomePortlet | | | | some-object.xml: | | | | overwrite | default.default | | SomePortletWindow | SomeInstance | center | 1 | | | |ADMIN |viewrecursive | | | | | jboss-web.xml: | | http://www.jboss.org/j2ee/dtd/jboss-web.dtd";> | | |java:/jaas/some | | jboss-portlet.xml: | | | | SomePortlet | | | | | | And finally: MyFacesRepairedPortlet: | public class MyfacesRepairedPortlet extends MyFacesGenericPortlet{ | |protected void facesRender(RenderRequest request, RenderResponse response) throws PortletException, | java.io.IOException { | if (sessionTimedOut(request) || request.getPortletSession().getAttribute(CURRENT_FACES_CONTEXT) == null) { | setPortletRequestFlag(request); | nonFacesRequest(request, response); | return; | } | | super.facesRender(request, response); |} | | | } | Please help!! With Best Wishes, Maxim View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225827#4225827 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225827 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss/Spring Integration] - Re: JBoss5/Spring deployment problem
"f...@gmx.net" wrote : | could you please update the sourceforge downloads? | Sure, np. I need to change some of the stuff anyway since I extracted the spring-int code out of the jbossas project. I'll let you know when the sf has been updated. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225826#4225826 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225826 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Assigning task to a Group with variable(variable-name) doesn
Hi, I'm using Jbpm 3.2.6. According to documentation http://docs.jboss.com/jbpm/v3.2/userguide/html/taskmanagement.html#assignmentexpressions, it says: anonymous wrote : variable(variable-name) means the user or group is taken from the specified variable instance. The variable instance can contain a java.lang.String, in which case that user or group is fetched from the identity component However, if I use the expression variable(variable-name) to assign a task in my process definition, and my 'variable-name' value is the name of an existing Group, an exception is thrown: Caused by: org.jbpm.identity.assignment.ExpressionAssignmentException: couldn't resolve assignment expression 'variable(RoleToObtainQuote)' | at org.jbpm.identity.assignment.ExpressionAssignmentHandler.assign(ExpressionAssignmentHandler.java:97) | at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignmentDelegation(TaskMgmtInstance.java:313) | at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignment(TaskMgmtInstance.java:267) | ... 130 more | Caused by: org.jbpm.identity.assignment.ExpressionAssignmentException: user 'IF-Other Maintenance Leader' couldn't be fetched from the user db | at org.jbpm.identity.assignment.ExpressionAssignmentHandler.getUserByName(ExpressionAssignmentHandler.java:209) | at org.jbpm.identity.assignment.ExpressionAssignmentHandler.resolveFirstTerm(ExpressionAssignmentHandler.java:138) | at org.jbpm.identity.assignment.ExpressionAssignmentHandler.assign(ExpressionAssignmentHandler.java:75) | ... 132 more It says the USER couldn't be fetched from the DB, but according to docs, shouldn't it also look if its a GROUP? As in my case, it is a Group, and that Group does exist in the DB. Any ideas? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225825#4225825 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225825 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - ManagedConnectionFactory lifecycle
Hi, I have created a new post that continues this one http://www.jboss.org/index.html?module=bb&op=viewtopic&t=154012 because I think this subject describes better what I want to discuss, so if administrators want to delete the old post and continue this one I think it would be better. Basically I want to discuss about how to handle the ManagedConnectionFactory lifecycle I have developed a solution for this issue that I want to share with you to know your impressions. I have modified jboss-jca sources in my jboss installation to do the following: I have added an interface ManagedConnectionFactoryLifeCycle as follows: | public interface ManagedConnectionFactoryLifeCycle { | |public void start(); | |public void stop(); | } | I have added the following code in org.jboss.resource.connectionmanager.RARDeployment | protected void startService() throws Exception |{ |...original actions | | if (mcf instanceof ManagedConnectionFactoryLifeCycle) | { | ManagedConnectionFactoryLifeCycle mcflc = (ManagedConnectionFactoryLifeCycle) mcf; | mcflc.start(); | } |} | | protected void stopService() |{ | if (mcf instanceof ManagedConnectionFactoryLifeCycle) | { | ManagedConnectionFactoryLifeCycle mcflc = (ManagedConnectionFactoryLifeCycle) mcf; | mcflc.stop(); | } | ... original actions |} | Then my ManagedConnectionFactory implements this interface and can handle its deployment and undeployment and perform actions needed. It works, but I know this is not JCA compliant, so I would like to know if you agree with this solution or if you can suggest any other better solution. Thanks a lot View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225822#4225822 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225822 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss/Spring Integration] - Re: TransactionManager and UserTransaction
Quick check .. see how many jars you have with JTA in it in all your lib folders :P then in your <.ear>/.war/WEB-INF/lib move the jta.jar (if here) to a different folder outside the classpath View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225820#4225820 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225820 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss/Spring Integration] - Re: JBoss5/Spring deployment problem
"alesj" wrote : | Ah, yes. | I totally forgot about this change. :-( | - https://jira.jboss.org/jira/browse/JBAS-5803 | Hi Ales, could you please update the sourceforge downloads? I also ran into this problem and only did find this post by luck. I could have spent days to figure that out. Many thanks, Frank View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225819#4225819 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225819 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss OSGi] - Re: Exporting bundles as MBeans
You should be able to see them in the jmx-console. http://jbmuc.dyndns.org:8280/hudson/job/jbossosgi-jdk16/ws/jboss-osgi/build/distribution/target/auto-install-dest/docs/userguide/html/ChapDeveloperGuide.html#SecJMXView Maybe you connect to the wrong MBeanServer View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225814#4225814 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225814 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Best Practice to get SessionFactory
Sorry bad cut :) this is how the SessionFactory is returned : anonymous wrote : | JtaDbPersistenceServiceFactory jtaDBFactory = (JtaDbPersistenceServiceFactory)JbpmConfiguration.getInstance().getServiceFactory("persistence"); | return (SessionFactory) jtaDBFactory.getSessionFactory(); | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225811#4225811 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225811 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Best Practice to get SessionFactory
Hi all again :), i found another way to get SessionFactory, and i want know if this is a most clear solution. I use this code in a DAO class. anonymous wrote : | JtaDbPersistenceServiceFactory jtaDBFactory = (JtaDbPersistenceServiceFactory)JbpmConfiguration.getInstance().getServiceFactory("persistence"); | It is correct?. It's work fine :) and save correctly. Thanks for any reply. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225810#4225810 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225810 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: What happened to jBPM 3.3.x ?
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4208999#4208999 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225806#4225806 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225806 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user