[JBoss Web Services] New message: "[beginner] Deploying a ear file under JBoss AS 5"
by Sarko Zio
User development,
A new message was posted in the thread "[beginner] Deploying a ear file under JBoss AS 5":
http://community.jboss.org/message/519080#519080
Author : Sarko Zio
Profile : http://community.jboss.org/people/sarko86
Message:
--------------------------------------------------------------
Hi everybody, I hope I'm in the right section!
I developed a very basic "web service" (Hello world) following http://www.roseindia.net/jboss/index.shtml. With Ant I generate the jar, war and ear files. Then I try to upload the ear using the Jboss Administration section but it gives error:
Failed to create Resource example2.ear - cause: java.lang.Exception:Failed to remove deployment [vfszip:/C:/Programmi/jBoss/server/default/deploy/example2.ear/] after start failure. -> java.lang.RuntimeException:java.io.IOException: Failed to delete: DelegatingHandler(a)9044862[path=example2.ear context=file:/C:/Programmi/jBoss/server/default/deploy/ real=file:/C:/Programmi/jBoss/server/default/deploy/example2.ear] -> java.io.IOException:Failed to delete: DelegatingHandler(a)9044862[path=example2.ear context=file:/C:/Programmi/jBoss/server/default/deploy/ real=file:/C:/Programmi/jBoss/server/default/deploy/example2.ear]
I tried with the war file only and I had the same issue. I also tried to copy the war/ear file into the deploy/ default's subfolder and this still throws exception in the console. I then checked whether the file is correct and it should be, for I managed to run it properly under tomcat (the war file, I mean).
Can someone help me understading this issue? In attachment you find the ear file.
Thank you so much!
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/519080#519080
14 years, 4 months
[Performance Tuning] New message: "Slow JVM memory leak"
by Jon Walton
User development,
A new message was posted in the thread "Slow JVM memory leak":
http://community.jboss.org/message/519069#519069
Author : Jon Walton
Profile : http://community.jboss.org/people/jw550
Message:
--------------------------------------------------------------
Greetings,
I am running JBoss AS 5.1/Sun JRE 1.6_17/ on CentOS 5. I have a 2-node cluster using stateless EJBs accessied via both RMI and jboss-ws, three back-end SQL Server 2005 hosts accessed via jTDS. No JNI code.
My JVM footprint slowly grows over a 24 hour period until it reaches 3G and of course terminates with an out of memory error. The strange thing is that the Java heap stays very reasonable (~500M) and stabilizes. Active thread count never goes over ~300. The JVM footprint itself just continues to grow until it exhausts the 32-bit limit of 3 gigs. Please note that I am NOT getting heap allocation errors as I am running with initial/max of 1024M and the Java heap stays well below that.
This seemed to begin with my upgrade from 4.2.3 to 5.10. That is also when I went from standalone to a clustered configuration.
I am stumped. I have spent two weeks trying to track this down and am getting no further. Can anyone offer some troubleshooting tips? All the Java memory analysis tools (Eclipse MAT, jmap, jconsole) don't really help as they all report a small, stable java heap size. There is some resource in the JVM itself that is leaking. Running pmap against the JVM pid also does not tell me much, other than that there is a large amount of [anon] memory allocated, mostly in smaller (300K) chunks.
Thank you,
Jon
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/519069#519069
14 years, 4 months
[Beginner's Corner] New message: "Help please with authentication."
by Luis Esquivel
User development,
A new message was posted in the thread "Help please with authentication.":
http://community.jboss.org/message/519067#519067
Author : Luis Esquivel
Profile : http://community.jboss.org/people/lesquivel
Message:
--------------------------------------------------------------
Hello,
My questions is how to retrieve the userPrincipal attribute from the http session in an intranet web app.
Please read below for my setup:
We are using jboss-5.1.0.GA-jdk6. Our web server is IIS7. The connection between the 2 is working fine as we have an Internet app working.
We need to create an Intranet app. I have IIS7 Authentication set to Windows authentication for this. Our organization uses Active Directory for our internal authentication. Our current intranet app that uses JRun app server, doesn't require anything special to retrieve the userPrincipal attribute from the http session in a filter we have setup. My application only needs the userPrincipal attribute from the http session.
So far, I have not been able to get that attribute. Can somebody help in how this can be achieved using JBoss? I don't have to authenticate to the LDAP again as at that point all I need is a user name contained in the userPrincipal attribute.
Thank you in advance.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/519067#519067
14 years, 4 months
[JBoss Web Services] New message: "How do I rewrite soap:address to always HTTPS"
by Ulrich Romahn
User development,
A new message was posted in the thread "How do I rewrite soap:address to always HTTPS":
http://community.jboss.org/message/519064#519064
Author : Ulrich Romahn
Profile : http://community.jboss.org/people/uromahn
Message:
--------------------------------------------------------------
We have a strange issue here and I must assume that someone else must have run into this before.
We are currently deploying our EJB3-based web service on JBossAS 5.1.0.GA.
The Session bean that implements our service methods is using annotations to generate all the necessary artifacts upon deployment, especially the WSDL.
As everybody knows, JBoss is generating the service URL in the <soap:address> field every time a WSDL gets re-generated.
We are also aware that there are certain options to configure how this URL gets generated in the deployers/jbossws.deployer/META-INF/jboss-beans.xml.
However, we have a configuration that just never gives us the correct protocol in the service URL.
We are using a F5 load balancer to front-end our traffic. All traffic up to the F5 is using HTTPS. Based on rules, the F5 is now forwarding the requests to a set of Apache HTTPD server - this traffic is using HTTP. The Apache HTTPD server are now configured to use mod_proxy_ajp to send the request to our individual JBoss server who will then ultimately serve this request.
So, we have multiple options to configure the generation of the service URL:
1. we configure it statically by setting "webServiceHost" to our public server name, or
2. we configure it using dynamic rewrite based on the request URL
If we use option #1, JBoss will always generate a service URL with "http" no matter what else we do and if we use option #2, JBoss will also always generate a URL with "http" since the request from the F5 to Apache is actually just HTTP. The only way to force a "https" address in option #1 is to configure our webservice with <transport-guarantee>CONFIDENTIAL</transport-guarantee> in jboss.xml (or in the @WebContext annotation). However, this does not work either because the incoming traffic is actually HTTP and JBossWS is expecting HTTPS so it correctly never responds.
So, our question now would be:
How can we configure JBossWS to generate a service URL with "https" regardless of whether the service actually expects encrypted requests or not?
I could not find any viable solutions at all yet, so any ideas may be helpful.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/519064#519064
14 years, 4 months
[JBoss Tools] New message: "Tools 3.1 CR1 generation issue"
by David Hibbs
User development,
A new message was posted in the thread "Tools 3.1 CR1 generation issue":
http://community.jboss.org/message/519049#519049
Author : David Hibbs
Profile : http://community.jboss.org/people/sage.sam
Message:
--------------------------------------------------------------
I did a fresh install from the ground up of Eclipse and the full JBoss tools suite to give them a whirl. I also downloaded the 2.2.0 GA release of SEAM and used that in my setup of the tools.
As a first experiment, I decided to take a shot at reverse engineering the components for the open18 demo from Seam In Action. I struggled a bit at first as it kept telling me it couldn't connect to the database (H2, after all, only allows a single connection) but was able to get past that finally by telling the DB perspective to work in offline mode.
Generation accomplished, now it's time to look at what was created!
When I checked my problems view, I found a STACK of errors, all the same:
cvc-elt.1: Cannot find the declaration of element 'page'.
This, as one would expect, points at the top element of the page:
{code:xml}<page xmlns="http://jboss.com/products/seam/pages"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.2.xsd"
no-conversation-view-id="/CourseList.xhtml"
login-required="true">{code}
If I change this to pages-2.1.xsd, the error is cleared. Is this an enhancement that is in the current SEAM nightly builds, or am I missing something?
In case it's relevant, I used the ZIP version of the download site for its quick setup/install.
Any input is appreciated!
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/519049#519049
14 years, 4 months