[JBoss Web Services] - enabling https in jboss 6
by ian diddams
ian diddams [http://community.jboss.org/people/didds] created the discussion
"enabling https in jboss 6"
To view the discussion, visit: http://community.jboss.org/message/637556#637556
--------------------------------------------------------------
Hi - apologies for what is undoutedly a really numpty query but I have googled, tried and failed...
I have a jboss-6.0.0.Final jboss instance that is running fine (centos 5.6 FYI) - but we need to make it available under https as well.
The conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml file has the following
| | <!-- For services like those listed above that need to know the |
| | port of the HTTPS connector --> |
| | <bean class="org.jboss.services.binding.ServiceBindingMetadata"> |
| | <property name="serviceName">jboss.web:service=WebServer</property> |
| | <property name="bindingName">HttpsConnector</property> |
| | <property name="port">8467</property> |
| | <property name="description">JBoss Web HTTPS connector socket</property> |
| | </bean> |
... but starting the appp doesn;'t respon on port 8467 and lsof doesn;t list anything running there and a telnet to that port doesn;t connect etc.
So I googled around found this page
http://riaconnection.wordpress.com/2011/08/30/https-in-jboss-6tomcat-6/ http://riaconnection.wordpress.com/2011/08/30/https-in-jboss-6tomcat-6/
but that didn't work. The app will start Ok following those instrauctions IF the server.sml file has the Https Connector section commented out but as soon as I enable it and edit it to point at the correct keystore ... it just doesn;t work at all.
Help! How do I configure https to work on jboss 6?
regards
Ian
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/637556#637556]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[jBPM] - StatefulKnowledgeSession management
by Zeliang Huang
Zeliang Huang [http://community.jboss.org/people/ossa] created the discussion
"StatefulKnowledgeSession management"
To view the discussion, visit: http://community.jboss.org/message/637453#637453
--------------------------------------------------------------
Hi All,
I have a few questions regarding StatefulKnowledgeSession.
I had created a class MyContextListener that extends the ServletContextListener.
This MyContextListener.java will do things like starting Mina and creating a new StatefulKnowledgeSession and not disposing it. When server starts up, I am assured that Mina server is up and there is one session active. This session is re-used for all subsequent communication with the Engine.
1. Should I reuse the session for all communication with the engine?
Any other way of managing the session for better performance? From what I had tried, there ought to be at least one active session at anytime so that Human Tasks can be completed successfully.
2. When do I need to use JPAKnowledgeService.loadStatefulKnowledgeSession
As I am creating a new Session when the server restarts up, no previous session was actually loaded. However old process instances still flow. I don't have any rules in the process map. Is that the reason why I don't need to load a previous session in order to continue the instance? Or I am missing something by not loading the previous Session?
Any advice is welcome !
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/637453#637453]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[jBPM] - Re: jBPM5.1 : Setting Process Variable from code(Using API)
by Sandeep Sapra
Sandeep Sapra [http://community.jboss.org/people/sandeepsapra] created the discussion
"Re: jBPM5.1 : Setting Process Variable from code(Using API)"
To view the discussion, visit: http://community.jboss.org/message/636955#636955
--------------------------------------------------------------
Thanks Jack
I solved the problem and later I checked your response. Along with jta.jar and btm.jar,sl4j jar has to removed and should be present in tomcat lib.
1.) I am trying to run my example in JBoss AS (5.0.0 GA) now but I am not sure how to do configurations in JBoss.
*Could anyone give some reference?*
2.) When I tried doing an error occured saying :
java.lang.RuntimeException: Specification violation [EJB3 JPA 6.2.1.2] - You have not defined a jta-data-source for a JTA enabled persistence context named: org.jbpm.task
at org.jboss.jpa.deployment.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:115)
at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:285)
I changed following in persistence.xml as
Before
......
<persistence-unit name=++"org.jbpm.task"++>
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:jdbc/testDS1</jta-data-source>
<class>org.jbpm.task.Attachment</class>
<class>org.jbpm.task.Content</class>
..........
After changes :
......
<persistence-unit name=+"org.jbpm.task"+>
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:jdbc/testDS1</jta-data-source>
<class>org.jbpm.task.Attachment</class>
<class>org.jbpm.task.Content</class>
..........
But now error is coming as java.lang.ClassCastException
: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider
at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:310)
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.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
*Could anyone suggest what went wrong and how to solve it?*
PS: I am using the example in article : http://community.jboss.org/people/bpmn2user/blog/2011/09/21/jbpm5-web-exa... http://community.jboss.org/people/bpmn2user/blog/2011/09/21/jbpm5-web-exa... but doing the same configuration Jboss 5.0.0 GA now
Thanks and Regards,
Sandeep
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/636955#636955]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years