jboss

Lingering Hibernate sessions without transaction in JBoss

I have encountered a Hibernate issue I just can't find my way around. We're running Hibernate 3.2.6 on JBoss 4.2.0, in a Spring 2.5.4 application behind JBossWS 2.0.1 (just to get all the version on the table). Normally this works just fine, but sometime the system spontaneously (i.e. for some reason currently not know to us) enters a s...

"No context factory" exception thrown when using JBoss' VFS

Hi everybody, I am trying to get a ressource contained in a JAR file . This Jar is used as a dependancy of a web projet MyWebApp. I am using JBOSS 5.1.0 The code in the jar file is : // MyClass Class // part of myFunction ... Enumeration<URL> configEnum; configEnum = this.getClass().getClassLoader().getResources("MyFile"); while (co...

Long running webservice architecture

We use axis2 for building our webservices and a Jboss server to run the logic of all of our applications. We were asked to build a webservice that talks to a bean that could take up to 1 hour to respond (depending on the size of the request) so we would not be able to keep the connection with the consumers opened during that time. We co...

How to upgrade JBoss Web in JBoss 5.x.x ?

JBoss Web 2.1.3 in JBoss 5.1.0 has some fixes that I need on a production server running JBoss Web 2.1.2 in JBoss 5.0.1. I don't want to upgrade to JBoss 5.1.0 yet on a production cluster. This is too risky. So how do I upgrade JBoss Web only? This is a sar. So I'd imagine all that is required is to switch in jbossweb.sar from JBoss ...

In JBoss can I configure a "shared library" location?

I am using JBoss 4.2.2.GA app server in a development environment. I have a WAR file, MyWar.war, and a JAR file ExternalJar.jar. These files are structured in the following way: Application WAR file: MyWar.war | |--- AppClass1.class | |--- AppClass2.class External jar file (provided by client): ExternalJar.jar | |--- ExternalClass.c...

JBoss JNDI Binding Manager - maximum length of value?

I'm using the technique described here to register string values on the JNDI tree via an XML file deployed to JBoss. This is working fine for my system constants (URLs and the like). However I am also trying to register the contents of a file which has been encoded to a Base64 string. The file is fairly large (about 400k), so the resu...

Apache with JBOSS using AJP (mod_jk) giving spikes in thread count.

We used Apache with JBOSS for hosting our Application, but we found some issues related to thread handling of mod_jk. Our website comes under low traffic websites and has maximum 200-300 concurrent users during our website's peak activity time. As the traffic grows (not in terms of concurrent users, but in terms of cumulative requests ...

StackOverflowError during Building workspace

hi, please take a look at this error, how can i fix it? An internal error occurred during: "Building workspace". java.lang.StackOverflowError ...

Programaticly create datasource for JBoss 4.2.x

Would it be possible to programmaticly create a data source in jboss and still have a valid jndi entry for the entity manager to use? Creating the data source is where I am lost, I hope I can use a MBean that runs on stat-up to handle this. This would not be my preferred method, but the application I am working on has a global configur...

Jboss war redeployment Zipexception

All, Server: jboss-5.1.0 Java Version: jdk1.6.0_14 Deployment Method: ant v1.7 Error: 08:40:04,260 WARN [ZipEntryContext] IGNORING: Failed to reinitialize context: vfszip:/home/username/jboss-5.1.0.GA/server/default/deploy/deployment.war java.util.zip.ZipException: error in opening zip file Error occurs if the serv...

Using Spring ContextLoaderListener in JBoss config with default wars

I'm trying to use Spring to configure a web app deployed in JBoss. I've added this to the web.xml: <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> However, I've based my config on the 'default' JBoss config that includes wars such as jmx-console.war, and now these fail t...

Why is restlet running under tomcat under JBoss 5.1 returning my index.html page as type "application/octet-stream" instead of "text/html"?

I have a home page home.html inside a war file named "webapp-1.0.war". When the browser requests "http://domain/myapp" I want the home.html served up, but I want the browswer address bar to continue to display "http://domain/myapp". I DO NOT want "http://domain/myapp/home.html" in the address bar. So I put this into the web.xml: <wel...

Jboss and OPEN MQ integration

Hello can anyone help me integrating OPENMQ (resource adaptor) into JBOSS 4.0.3 . ...

NPE when POSTing Binary data to RESTEasy Service

My environment is JBOSS AS 5.1.0-GA, Struts 2.1.8 and RESTEasy 1.2.GA When posting to my service I get a NPE on the Block getter which is being called from the @Consumes annotation. I'm some what at a loss as to what it could be and any help would be greatly appreciated. Thank you in advance. Jono public class MyForm { @FormP...

How to get Integrated Windows Authentication to work with Seam?

I need to offer SSO for Windows users in a Seam web application. In our previous project (non-Seam) we used a modified jcifs NTLM filter to handle this, but the solution is crappy, cannot support NTLMv2 and is not supported by jcifs anymore. JBossNegotiation seems to offer SPNEGO support for JBoss, but I couldn't find any information on...

Strategies for deploying an exploded ear

I have a build process that creates an ear in a fairly complicated manner (multiple EJB jars, a couple of wars, a couple of sars (which are JBoss specific). The ant process for piecing this together is somewhat complex. What is the best strategy to not recreate the creation logic of the ejb creation in ANT but still be able to deploy ex...

JBOSS create PDF, XLS

I am writing a JBOSS web app with Struts2 and would like to produce reports in PDF and XLS format. How can I do this? Are there popular packages that can do this for me? ...

Deploying a war outside of a deploy directory in jboss

Hello: I am trying to deploy a war file outside of a deploy folder in jboss. I changed the context.xml with the following content: <Context docBase="C:\Apps\foo.war" reloadable="true" privileged="true" antiResourceLocking="false" path="/"></Context> The context file is inside jboss-5.1.0.GA\server\default\deploy\jbossweb.sar\ in 5.1.0...

jboss 4.3 DatabaseServerLoginModule doesn't work if passwords are MD5 and hex-ed

I have a problem with authorization when my login-conf is <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="optional"> <module-option name="dsJndiName">java:/myDS</module-option> <module-option name="hashAlgorithm">MD5</module-option> <module-option name="hashEncoding">hex</module-option> <...

How to keep attachments in temporary file, not in memory, during web service message download on JBoss

I have the following problem on JBoss 4.2.3 and 5.1 using JBoss WS Native Stack. The web service is receiving a significant number of large attachments. When my server is receiving these attachments, they are stored in memory until the whole message is transfered and parsed. As a result, I am runnig out of memory quickly (due to large ...