jboss

Hibernate MapKeyManyToMany gives composite key where none exists

I have a Hibernate (3.3.1) mapping of a map using a three-way join table: @Entity public class SiteConfiguration extends ConfigurationSet { @ManyToMany @MapKeyManyToMany(joinColumns=@JoinColumn(name="SiteTypeInstallationId")) @JoinTable( name="SiteConfig_InstConfig", joinColumns = @JoinColumn(name="SiteConfigId"), inve...

Deploying solr in Jboss

I want to deploy the solr.war to jboss server. Please provide me the steps for this. Also after deploying what url i should use to access the solr/data/index directory? Thanks!! ...

Accessing the .war deployed on Jboss server

How to access the sample.war deployed in jboss from outside? Is there any configuration needed for this or just use the Url as: http:SOLR_SERVER_IP:PORT/sample ...

How do I force MyEclipse to hot-deploy a JavaScript file to my JBoss instance?

I'm having trouble with MyEclipse 7.1.1 hot-deployment of files to my JBoss 4 server. The problem is this: while my server is running, I can make changes to various JAVA and HTML files, which are then hot-deployed immediately (I can see the changes reflected in my browser when I refresh the page). However, while working on a particular ...

Finding JNP port in JBoss from Servlet

I have a servlet running in JBoss (4.2.2.GA and 4.3-eap) that needs to connect to an EJB to do work. In general this code works fine to get the Context to connect and make RMI calls (all in the same server). public class ContextFactory { public static final int DEFAULT_JNDI_PORT = 1099; public static final String DEFAULT_CONTEXT_FA...

How to Get JSF 2.0 Working with Eclipse 3.5 and JBoss 5.1

I am running Eclipse 3.5 and JBoss 5.1. I want to create a JSF 2.0 project. I heard here that the Eclipse JBoss Tools plugin version 3.1 (available here) could do this for me. I have installed the plugin. However, if I go to the Project Facets properties page for a Dynamic Web Project, I only see Facets for JavaServer Faces 1.1 and 1...

How to start and stop jboss server using Ant task ?

I need to stop, deploy my ear file and start Jboss server using the Ant tasks. I am able to compile, build and deploy my J2EE application as an ear file into the JBoss server successfully using Ant tasks. We can see the redeployment of my application in the jboss console. I want to stop the server before deployment and start the server....

JBOSS V/s appache tomcat

I am new to "java world", I need following clarification when to use JBOSS vs TOMCAT? differences? which is more reliable? which is more scalable? which is more easy to to administrate? does both have scale out options? can I host an application developed in flex on JBOSS/TOMCAT? My application would be simple 3-tier with Servlets, s...

How to avoid Perm Gem space exception in JBoss server ?

I deploy my J2EE application after making some changes to the code. At maximum of 4 times I can deploy the EAR file into the server without restarting the JBoss server. After the 4th deployment if I deploy one more time it throws PermGem space exception. I don't what this exception is. I restart the server then everything works fine. ...

Application throws NotSerializableException when run on an jboss cluster

Environment: JBoss 5.1.0, JBoss Seam 2.2.0 While trying to get my application running in a clustered environment after login I am getting the following exception. Post login we try to store the currentUser in jboss seam session context. java.io.NotSerializableException: org.jboss.seam.util.AnnotatedBeanProperty How to resolve this? ...

Using JBoss Web SingleSignOn with JBoss Seam

Has anyone successfully used JBoss Web SingleSignOn with JBoss Seam, or know if it is possible? I have two web app:s that I would like to share the same login functionality, ie if you sign into one web app you do not need to sign in again when accessing the other web app. Best regards P ...

Different lib directories of JBoss

There is a number of different lib directories JBoss (5.1.0) uses: I can find jboss/lib, jboss/lib/endorsed, jboss/common/lib, jboss/server/default/lib and of course the jboss/server/default/deploy/myapp/WEB-INF/lib (am I missing something ?). From the above, I know that I need to use the last one (WEB-INF/lib) to put any jars my app ne...

jboss custom class loader

I need to patch my jars and some third-party jars on the fly (see also this question). I think I have to implement a custom class loader and use it to load my.ear . I found an example how to implement a custom class loader for jboss which is packaged in a sar but when I tried to use it I got some difficult to comprehend StreamCorrupted...

deploying multiple struts2 applications JBOSS

I am deploying two struts2 applications as war files to JBOSS4.1 Sp1, i am getting the below error for the second application, while the first application is deployed successfully. it works fine for tomcat5.5. Also if i deploy these applications separatly one by one it works. I have been working since two days to solve it out but no hel...

JNDI name not bound

Hi. I'm going crazy trying to fix this exception: javax.naming.NameNotFoundException: lawless not bound This is a Stripes web app built in Intellij and being deployed on Jboss 4.2.3 (Using 4.2.3 because Stripes has issues with later versions. I have successfully used 4.2.3 in the past so I know that's not the problem). I have one ses...

How to configure JBoss DatabaseServerLoginModule for Digest Authentication in a Web Application

In a sentence, I want to configure JBoss 4.2.2 to use DatabaseServerLoginModule as the login-module for a Web application that is secured via Digest Authentication. The problem I am having is that the passwords fail to validate. I suspect the issue is either in how I've defined the application policy or in how the passwords are stored ...

Deploy multiple instances of the same application on JBoss

I want to deploy multiple instances of the same Seam/EJB3 application that differ only in their database settings on the same JBoss server instance. That way I want to provide different demo instances of this application. Is this possible at all? And if it is what do I need to change in the configuration of JBoss and the application ins...

How do I create an Internal Maven Repository with JBOSS?

Hello, Right now I have a JBOSS application server and I want to setup an internal maven2 repository. I want the repository to be located on the application server. How would I go about doing this? Basically I want to host files on a JBOSS application server similar to: http://repo1.maven.org/maven2/ Thanks! Shawn ...

Intermittetly NPE during parseParameters in Tomcat's Request

We have intermittet NPE during parseParemeters in org.apache.catalina.connector.Request. The more users are online, the more this NPE happens. After a JBoss restart, the NPEs disappear for a while. Within 24 hours we receive between one and over 400 of those NPE. It does not matter which service is called. Any service request can end in ...

JBoss Web Services interoperability with ASP.NET

I have a Web Service deployed on JBoss 4.2.3. The Web Service is created using the EJB3 @WebService annotation. One of the method requires an object which has a java.util.Date property public void createUser(UserDTO dto) throws FancyException{ //-- do some work here } class UserDTO { ..... private Date joined; //-- app...