jboss

RPC/Encoded Jboss solution

I recently posted a question regarding RPC/Encoded Jboss problem since I was having problems with jboss-4.2.1.GA to generate RPC/Encoded WS requests. The solution I found was to have jaxrpc.jar, saaj.jar and wsdl4j-1.5.1.jar files in the EAR file that I deploy to Jboss. I did not have to run Axis as a client from inside JBoss as kindly ...

Can I change web application root globally in jboss 4.2?

Hi, I have following situation of deployment: application_one.war application_two.war application_three.war When I deploy it in Jboss, I get three url contexts: http//myserver/application_one/ http//myserver/application_two/ http//myserver/application_three/ Is it possible to change (prepend) globally an additional path to all d...

Handle PortletException in JSR-168

Hi, How can I catch and handle the PortletException thrown by GenericPortlet.doView()? I'd like to show a custom error page or custom message in JBoss portal if this exception is thrown for some reason. ...

Object reference lookup from JNDI results in ClassCastException

I'm having problems calling EJB3 stateless bean outside the container. Code for getting the object reference: Context envCtx = (Context) context.lookup("ejb"); MyObject o = (MyObject) envCtx.lookup(MyObject); The second row results in exception: java.lang.ClassCastException: javax.naming.Reference I use JBoss.org 5.1.0 GA. Based ...

How I can use Java Reflection API within EJB 3 entity ?

Dear all, I do the following steps with eclipse 3.5 ,JBoss 4.2 ,EJB3 but I face class not found exception 1.compiling this code to foo.jar file package mypackage.foo; import myejbpackage.ejb.fooInterface; class foo implements fooInterface{ @override void helloWorld(){System.out.print("HelloWorld");} } Note that fooInterface ...

JBOSS webservice annotations.

Background I am attempting to make a webservice using SOAP and JBOSS. I know that to make a webservice that you do something like this: import javax.jws.WebService; @WebService public class HelloImpl { /** * @param name * @return Say hello to the person. */ public String sayHello(String name) { return "Hello, " + ...

jboss shutdown not happening, stuck at message: Closing Spring root WebApplicationContext

2010-01-30 03:25:27,598 INFO [org.apache.catalina.core.ContainerBase] Closing WebApplicationContext of Spring FrameworkServlet 'expertx' 2010-01-30 03:25:27,696 INFO [org.apache.catalina.core.ContainerBase] Closing Spring root WebApplicationContext are the last few lines in my server log. looking for "Shutdown complete" to be posted i...

Unable to pass none string parameters to TAG files

Hi I'm using JBOSS 4.0.2 with JSP 2.0. I have created a TAG file with the following directives: <%@ attribute name="id" required="true" %> <%@ attribute name="upgradeAccount" type="com.upc.domain.UpgradeAccountData" %> However, when I try to pass an object of type UpgradeAccountData to the tag as a parameter it is always resolved as...

How to use ExternalDirectory Resource

How to use External Directory to Store Images. And how i access that images thru my Web application ? I am using Jboss as an application Server. Web application is in Java,Jsp. Presently images stored in WAR file. After google i got the solution C:\jboss-4.0.0\server\default\deploy\jbossweb-tomcat55.sar\server.xml Then restart ...

jboss error in myeclipse - Connections refused

Hi, javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]] I am new to jboss. i am using myeclipse 7.5. i have connected jboss in ...

JBoss training and certification from Red Hat?

Has anyone taken JBoss Application Administration course or any other courses from Red Hat? How much the emphasis is on Enterprise version over Community edition? How about JBoss Certified Applications Administrator (JBCAA) test? Easy to pass without course? ...

jboss client-server app. concurrent user

Hi all, I have a client-server application. Client app. is a swing application. Server app. is ejb3 based Java EE application and working on JBoss AS 4.2.1.GA. Client and server are communicating with RMI. I want to monitor, how many user is using the application and active clients that are requesting information from server. Is there a...

JBoss ignores @RemoteBinding annotation

I would like to specify JNDI name for an EJB3 bean using annotation, but JBoss 5.1.0 GA seems to ignore the annotation completely. Bean's annotations are: @Remote(Foobar.class) @Stateless(name = "Foobar") @TransactionManagement(TransactionManagementType.BEAN) @RemoteBinding(jndiBinding="ejb/Foobar") public class FoobarBean implements Fo...

How to define index by several columns in hibernate entity?

Morning. I need to add indexing in hibernate entity. As I know it is possible to do using @Index annotation to specify index for separate column but I need an index for several fields of entity. I've googled and found jboss annotation @Table, that allows to do this (by specification). But (I don't know why) this functionality doesn't w...

How can I configure the HTTP proxy for a Web Service client running in JBoss 4?

Using NetBeans 6.8 I managed to write a JAX-WS Web Service client for a service which runs in the Internet. Within NetBeans, communication through the HTTP firewall works fine. Now I tried to run the client in a Servlet in JBoss 4.2.3.GA, here the request fails with the message: HTTP transport error: java.net.UnknownHostException: www...

Deploying a mavenised seam project, noClassdefFound org.jboss.el.util.ReflectionUtil

Hi, While deploying a mavenized application consisting of a parent project, ejb jar project and a web project I have following stack trace in Jboss As ,5.1.0.GA. I checked that I have the dependency for jboss-el-1.0_02.CR4.jar and the library also contains the class org/jboss/el/util/ReflectionUtil. Any ideas ? If required, I will ...

JBoss transaction timeout setting?

We have a timer service triggered task in JBoss 5.1.0.GA application and the problem is that we cannot change the transaction time out. This long Lucene indexing can take longer than the default 300 second limit. The question is how to change the timeout value, adding @TransactionTimeout(1800) to the worker method or the class did not ...

JDK 1.6 and servlet containers

When you upgrade to a newer version of the JDK (from 1.5 to 1.6), do you also have to reinstall your servlet container so it takes advantage of the new JDK? The environment in question is running JBoss 4.0.5 with Java 5. ...

How to start and stop a JBoss server from Maven, bound to a different address than localhost?

Hi, I am working on a legacy Java Enterprise server project, and currently I am trying to set up nightly builds. We are using Maven 2, JBoss 4.2 and Bamboo. The idea is that we have a Bamboo agent on one of our dev servers, and the Maven build is configured to hard deploy the resulting .ear file, then restart the server. (We can't use s...

How to wire a custom MailProducer with jBPM 4.3 ?

I have a custom mail producer implementation that creates Multipart MimeMessages with "alternative" contentType. But how can I wire my implementation instead of the default one ? (org.jbpm.pvm.internal.email.impl.MailProducerImpl) ...