[Remoting] - Re: Problem calling EJB3 method via HTTP only
by formica
First of all, thanks a lot for your replies Marc!
I have progressed a little bit in my understanding, and I think I managed to get a working system, so I want to describe to you what I have done. If experts are around they could may be comment on the procedure.
Starting from the beginning:
- I need to access a JBOSS 4.2.0GA stateless session bean from a remote
client.
- my client being behind a firewall I decided to pass my invocations via http, but I need to be sure that is http only !
Reading forums + doc I have done the following changes to a standard jboss installation (on a "server" machine).
1) I have added servlet-invoker.war from the jboss remoting 2.0 package (copy the war in deploy dir), performing the following modification in the config file WEB-INF/web.xml:
| <param-name>locatorUrl</param-name>
| <param-value>servlet://${jboss.bind.address}:8080/servlet-invoker/ServerInvokerServlet</param-value>
| <description>The servlet server invoker locator url</description>
|
2) I have added a Connector using a xxx-service.xml file that I have created and put in /server/default/deploy
| <server>
| <mbean code="org.jboss.remoting.transport.Connector"
| name="jboss.remoting:service=Connector,transport=Servlet"
| display-name="Servlet transport Connector">
| <attribute name="InvokerLocator">
| servlet://${jboss.bind.address}:8080/servlet-invoker/ServerInvokerServlet
| </attribute>
| <attribute name="Configuration">
| <config>
| <handlers>
| <handler subsystem="AOP">org.jboss.aspects.remoting.AOPRemotingInvocationHandler</handler>
| </handlers>
| </config>
| </attribute>
| </mbean>
| </server>
|
Now I start jboss running with option -b :
| run.sh -b myhost.domain.name
|
I think this is important in order to associate the hostname to the variable jboss.bind.address, so to avoid ip number substitutions that would have a bad effect on the firewall....
3) I have installed on the same jboss-server machine a Squid proxy server, configured to listen to port 3128 with the appropriate acl (see Squid documentation)
4) I have forwarded the 3128 port into localhost 13128 using ssh tunneling (-L options)
5) now I can for example access the JMX console if I configure in my web browser the proxy server to be localhost 13128
6) I run the client program using in java command line the options:
| java -Dhttp.proxyHost=localhost -Dhttp.proxyPort=13128 xxxx
|
and it works !
Now my question is :
Could I avoid to use an external proxy server ?
Andrea
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050049#4050049
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050049
17 years, 6 months
[Installation, Configuration & Deployment] - JBoss 4.2.0.GA jdk 5 NoSuchFieldError: TRACE
by andyredhead
We are migrating from jboss 4.0.5.ga to jboss 4.2.0.ga
Currently working on our development machines (win xp) running on jdk 1.5.
We have a remote ejb3 client that could successfully connect to the server when the application is hosted on 4.0.5.
We have updated the libraries used by the remote client to connect to the server to use the jars shipped with jboss 4.2.0.
When the client attempts to connect to the 4.2.0 server we get the stack trace:Error creating Epic Metadata Connector: java.lang.NoSuchFieldError:
| TRACE
| java.lang.NoSuchFieldError: TRACE
| at
| org.jboss.logging.Log4jLoggerPlugin.isTraceEnabled(Log4jLoggerPlugin.jav
| a:85)
| at org.jboss.logging.Logger.isTraceEnabled(Logger.java:122)
| at
| org.jboss.security.SecurityAssociation.<clinit>(SecurityAssociation.java
| :145)
I've had a look at the log4j.properties included in the jboss client jar (the only log4j config on the client) and there is no mention of a trace level...
Anyone got any idea what might be going on?
Thanks,
Andy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050046#4050046
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050046
17 years, 6 months
[JBoss Portal] - single portlet to configure my portal
by den74
hi all,
i read something on forum old posts about this, but it's not clear to me if there is a solution to my problem.
I'm using the portal 2.4.1 and what i would like is to deploy separately all my portlets and then configure my portal with instances and pages.
I have been in part able to do it with a separated project ,with the xxx-object.xml forced to be deployed after the all others war, but i am not able yet to take out the instances.xml file from each portlet war.
If i use a single instances in my fake configuration portlet it try to create instances starting from it and obviously not finding it. The output message is Failed to create instance XXXInstance of portlet /z_FakeConfig./local.Portal_XXX.PortalXXX
Anyone know a possible solution? Or have i mandatory to put the instances.xml in each portel war?
Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050039#4050039
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050039
17 years, 6 months
[JBoss jBPM] - Swimlanes, Assignment and Active Directory Integration
by belthazor
Hi,
I'm kind of new to the JBoss / JBPM world. I successfully managed to set up the Getting Started version. I also managed to set up authentication with Active Directory.
Here's my config:
<application-policy name = "jbpm">
| <authentication>
| <login-module code="org.jboss.security.auth.spi.LdapLoginModule" flag="required">
| <module-option name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</module-option>
| <module-option name="java.naming.provider.url">ldap://chbasvvm703/</module-option>
| <module-option name="java.naming.security.authentication">simple</module-option>
| <module-option name="principalDNPrefix"></module-option>
| <module-option name="uidAttributeID">sAMAccountName</module-option>
| <module-option name="principalDNSuffix">@hapimag.local</module-option>
| <module-option name="baseCtxDN">OU=HAPIMAG,DC=hapimag,DC=local</module-option>
| <module-option name="rolesCtxDN">OU=HAPIMAG,DC=hapimag,DC=local</module-option>
| <module-option name="roleAttributeID">memberOf</module-option>
| <module-option name="roleNameAttributeID">cn</module-option>
| <module-option name="roleAttributeIsDN">true</module-option>
| <module-option name="roleRecursion">-1</module-option>
| <module-option name="searchTimeLimit">5000</module-option>
| <module-option name="searchScope">SUBTREE_SCOPE</module-option>
| </login-module>
| </authentication>
| </application-policy>
I now want to create a process. I did just like I was told in the "Getting started" guide and created the process states, transitions and swimlanes, then creating tasks, add the required properties and fields, etc.
The guide tells me to use something like "user(bert)" as assignment expression for the swimlane. Unfortunately, even if bert is a user in my Active Directory and has the appropriate roles, JBpm tells me: "Couldn't resolve assignment expression 'user(bert)'."
I read the chapter "11.3 Assignement" from the manual (http://docs.jboss.com/jbpm/v3/userguide/taskmanagement.html) but I did not get it.
Do I have to code my own identity module or what are my next steps?
What I thought about when I started was that I could use something like "role(it-people)" and that jBpm would read from Active Directory and do the assignment.
Could anyone please point me into the right direction!
Thanks in advance
Belthazor
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050038#4050038
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050038
17 years, 6 months