Skip to main content

Posts

Showing posts with the label jboss

Challenges starting jboss v7.1.0 - thunder

My goal is to migrate my application which is running on jboss v4 to jboss v7.1, my application is completely based on EJB2.0 and so as starting point, I wanted to install jboss v7.1 and get it up and running. I have downloaded tar.gz file and i have untared it using 7-zip tool, now when i try to run standalone.bat script, I get below mentioned log message: From errors, it is evident that C:\Users\ados\Softwares\jboss-as-7.1.0.Final\standalone\configuration\mgmt-users.properties and C:\Users\ados\Softwares\jboss-as-7.1.0.Final\standalone\configuration\application-users.properties files are missing. I have checked in the standalone folder and yes, i do not have those file, my question is: Are those files present in the distribution, also when i tried to download zip file, i was not successful in getting data and ended up with error message as compressed file does not contain any data. Also if i try to untar file via cygwin then it ends up with below mentioned error: gzip: stdin

JBOSS 7.1.0 error - Unable to find a public constructor for class org.jboss.resteasy.core.AsynchronousDispatcher

I am trying to migrate my spring MVC based REST application to Jboss 7.1.0. At startup, the Jboss initialisation shows that everything was started up correctly with all war files deployed successfully. I had quite a few problems getting the integration between Spring MVN and Jboss's RestEasy service and im wondering if this is another conflict between jboss resteasy with Spring MVN. When i make a request to the REST service i get the following error: 12:52:31,541 INFO [org.springframework.web.context.ContextLoader] (MSC service thread 1-5) Root WebApplicationContext: initialization completed in 3035 ms 12:52:31,845 INFO [org.jboss.web] (MSC service thread 1-5) JBAS018210: Registering web context: /MyRestService 12:52:31,875 INFO [org.jboss.as] (MSC service thread 1-5) JBAS015874: JBoss AS 7.1.0.Final "Thunder" started in 53526ms - Started 390 of 468 services (72 services are passive or on-demand) 12:52:32,034 INFO [org.jboss.as.server] (DeploymentScanner-threads

JBoss/Java and SSL

Hi I'm a bit lost and hope you'll get me out of here. I'll try to be as clear as possible since I don't really understand/know how I should use certificates. I've got an application that is supposed to communicate with another one using webservices and SSL. We both asked our main "Certificate Authority" to get certificates. They sent us 4 files and a password for the .P12 file: .csr, .cer, .key, .P12 Here is what I did : * Configure JBoss to use SSL on 8443 and used the P12 file as the keystore To test this I did a small Java class that call a webservices on this server, using : props.setProperty("javax.net.ssl.trustStore", "/.../.../certif.p12"); props.setProperty("javax.net.ssl.trustStorePassword", "XXXXXXXXX"); props.setProperty("javax.net.ssl.trustStoreType", "PKCS12"); The connection works, but I think I'm missing something as I did not use the other files. If I send my .P12 file

Jboss 7 auto deploy plugin cannot connect to localhost:8080

I configured the plugin in maven as shown below <plugin> <groupId>org.jboss.as.plugins</groupId> <artifactId>jboss-as-maven-plugin</artifactId> <version>7.0.2.Final</version> <configuration> <hostname>localhost</hostname> <port>8080</port> <filename>target/TestApp.war</filename> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>deploy</goal> </goals> </execution> </executions> </plugin> I then trigger it using maven using mvn -U clean install package It does build and everything works fine bu