jboss

Java Performance Issue from Windows to Solaris JBoss

Hi there, I have a quick question that someone might be able to answer. We have recently built a java library that is referenced within a web service that runs on a JBoss application server. The performance of the web service on a standard Windows XP machine is satisfactory and takes about 1.5 seconds for the whole process. However when...

JBoss JMS provider

I need to write a Message Driven Bean. I'm using JBoss IDE 1.5. I understand the concept behind MDB's but I don't really know how to install the JMS provider (JBoss MQ? I think) and use it so that it will be used to broker my message to an MDB. does anyone know of a tutorial I can use ? ...

Java: measure code coverage for remote scripting tests

We have an application which is deployed on JBoss 5.1, JDK 1.6. We also have scripts written in PowerShell for testing. These scripts access the application using a web-service. I would like to check the code coverage of the scripts. Any ideas? Most of the tools I saw are checking a JUnit test coverage and I don't see how we can use them...

Jboss Configuration... Slow Page loads on application

Hello, I am deploying a custom java application to my jboss server... I am getting really really slow page loads (like 15 min) between pages. Does anyone have any Jboss tips? tools to optimize Jboss? I am using the newest version of Jboss. Thanks for your thoughts. Jared ...

JBoss Error in ejb-jar.xml for Message Driven Bean TextMDB: expected one res-ref-name tag

I've copied and pasted the example ejb-jar.xml and jboss.xml file from http://docs.jboss.org/jbossas/jboss4guide/r4/html/ch6.chapt.html#ch6.mdbejbjar.ex and I'm receiving the following error when JBoss attempts to deploy it: ERROR [ScannerThread] deployment.MainDeployer (MainDeployer.java:943) - Could not create deployment: file:/...-ej...

jboss jms and xa transaction

I'm using JMS with JBoss 5.1.0 GA-jdk6 Can I use the same Database for application data and JMS as well, or should I configure them in separated databases with a two-phase XA protocol? ...

How to inhibit start of WAR file within EAR file configuratively?

I have an ear file which contains 4 war files. The main reason we put those together is, that the order of startup is important, and it is easier from a deployment perspective (the customer only gets one file and does not have to worry about which versions works together). The ear files are going to be deployed on 4 different systems, w...

Jboss Message Bean (EJB3) - configuration name

Is there a way of specifying the configuration name of a message bean through annotations? In the jboss.xml descriptor you can have different configurations and bind the beans to a particular config: <message-driven> <ejb-name>PushUserAgentBean</ejb-name> <destination-jndi-name>queue/PushUserAgent</des...

What is the JBoss equivalent of Tomcat's server.xml?

I am running an application which was deployed on JBoss. There is only documentation for Tomcat, none for JBoss. I need to change some connector tag attributes to look like so: <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8443" minProcessors="5" maxProcessors="75" enableLookups="true" acceptCount="100" debu...

How to configure JBoss for SSL using F5 Load Balancer

Hi, I am having troubles configuring JBoss for a secure environment. Here's our environment: We have an F5 Loadbalancer which has our domain's wildcard certificate. I have several applications running on JBoss on a server called peanut. From within our firewall, I can run the application as http://peanut.mydomain.com:8080 From the ...

Any tool to view the picture of class loader tree?

Say I'm debugging some weird class loading issues of an application deployed inside of a Java EE app server. By some reason it appears, that I have duplicate jars on the class paths of two classloaders (2 different EAR classloaders), and the classes from namespaces of these class loaders need to colaborate. So the question is following:...

Avoid validating WSDL every time the web service is executed

I have a small app running in JBoss that uses web services and every time they are called, it parses the WSDL and tries to fetch from xmlsoap.org [1] in order to validate it (the WSDL). Is there a way to avoid this validations? The problem is that: It's slowing down the system and Many times xmlsoap.org [1] doesn't return correctly (r...

JBoss: @Resource not injected when classloader isolation enabled

Hello, JBoss 4.2.3, an application deployed as a ear. Works. Then I enable classloader isolation by adding a loader-repository tag into jboss-app.xml. In multiple beans @Resource TimerService stops being injected and the code throws NullPointerException. What could possibly be the reason of such behavior? I have no clue. Thanks, Artem...

How do you configure JBoss to trim additonal whitespaces generated by JSPs?

Getting lots of additional whitespace in the html output, looks like its because of the JSP tags =/ I saw this referenced somewhere: <init-param> <param-name>trimSpaces</param-name> <param-value>true</param-value> </init-param> That should put it in web.xml, I tried that but that didn't seem to work. Maybe I'm not putting it in t...

Apache Webserver & JBoss AJP connectivity with https

We are hosting a JEE Application running on JBoss. For security reasons this application that should be available on the internet is protected with a front-end Apache server. We are using AJP to enable this. This works fine when we access the application through http. When we try to do this with https, it doesn't work, we get a 404 erro...

JBoss 5 truncates trailing = of a base64 cookie string

After upgrading from JBoss 4 to JBoss 5, I've noticed the most annoying regression. It truncates the trailing equal sign ('=') of a base64 cookie value. It took me so much time to understand that the problem wasn't my code but JBoss', I googled it and find out it's a known issue . The suggested work around is to calculate the string le...

Struts redirect from model

I'm trying to implement a security model where the model of secured pages inherits from a SecureSupport. I don't know how or if I can redirect from a constructor, however. See below: public class SecureSupport extends ActionSupport { private Map session; public SecureSupport throws Exception { session = ActionContext....

JBoss Microcontainer + AOP in a standalone app

Hi everyone, I'm trying to create a standalone app using JBoss Microcontainer for IoC and JBoss AOP for, well, AOP. I've boot-strapped, deployed a descriptor with AOP XML, so far so good. But the aspect is not performed. Do I need to enable AOP plugin or something? Note that I don't want to add a build step - I want it to work like Spri...

Where is the trust store in JBOSS for a self-signed certificate?

I have created a self-signed certificate on my server. Now I need to import the certificate to the trust store so that the application . If it was Tomcat, I would put it here: %JAVA_HOME%\jre\lib\security\cacerts Where is the equivalent in JBoss? Where should I look? ...

Where can I find a complete Maven Cargo plugin example for EJB tests?

For tests of some small JBoss enterprise apps I would like to use JUnit, and the Maven Cargo plugin. (I know that there is also JSFUnit but first I would like to take a closer look at Cargo.) Is there a simple example available online which I could use as a reference for running a JUnit test which invokes a EJB operation using JBoss (4....