jboss7.x

Problems loading remote Interface with context.lookup

眉间皱痕 提交于 2019-12-25 01:00:22
问题 I used to work with jboss 4.2.3 GA and there everything worked fine (at least calling the remote interface from the client side). Now I try to deploy that with Jboss 7.0.1 FINAL I have (on the server project) this class: @Remote(ConfigurationHelperRemote.class) @Local(ConfigurationHelperLocal.class) @Stateless public class ConfigurationHelper implements ConfigurationHelperRemote, ConfigurationHelperLocal { ... } and I have the remote Interface @Remote public interface

Vaadin: CDI Inject is null after referencing

感情迁移 提交于 2019-12-25 00:59:20
问题 Good day. There is an application (using a CDI add on): @VaadinScoped(VaadinScope.APPLICATION) public class AdminApplication extends AbstractCdiApplication { @Inject private Instance<Lang> lang; @Override public void init() { setMainWindow(new LoginWindow(this)); } public void authenticate(String login, String password) throws Exception { lang.get(). ... } ... And the LoginWindow: public class LoginWindow extends Window { ... public LoginWindow(AdminApplication application) { super(

java.lang.NoClassDefFoundError while deploying a war file that was created by maven overlay

大兔子大兔子 提交于 2019-12-24 22:16:03
问题 I've built by Maven a war file that uses other war overlays as dependencies... The built was successful. But while deploying to Jboss I get the following error: 11:27:49,054 ERROR [org.springframework.web.context.ContextLoader] (MSC service thread 1-1) .... nested exception is java.lang.NoClassDefFoundError: org/springframework/core/type/classreading/AnnotationMetadataReadingVisitor at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents

JBoss7 Web SSO (Non-Clustered)

青春壹個敷衍的年華 提交于 2019-12-24 19:49:13
问题 I am trying to configure Single-Sign-On in JBoss7. security-domain in standalone.xml: <security-domain name="my_auth"> <authentication> <login-module code="Database" flag="required"> <module-option name="dsJndiName" value="java:/comp/env/myDS"/> <module-option name="principalsQuery" value="select password from usertable where login_id=?"/> <module-option name="rolesQuery" value="select user_role from usertable where login_id=?"/> <module-option name="hashAlgorithm" value="MD5"/> <module

deploying a java application on eclipse juno using jboss 7.1.0 server

巧了我就是萌 提交于 2019-12-24 12:56:37
问题 I am deploying a java application on eclipse juno using jboss 7.1.0 server. Below is the problem i am encountering.Please help me with this. 532 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015010: The deployment scanner found a directory named META-INF that was not inside a directory whose name ends with .ear, .jar, .rar, .sar or .war. This is likely the result of unzipping an archive directly inside the C:\jboss\jboss-as-7.1.0.Final\standalone

jar as jboss module: dependencies

a 夏天 提交于 2019-12-24 12:47:23
问题 I have a question about JBoss modules dependencies vs war dependencies. I have an app.war ; its webinf/lib directory contains a myLib.jar only . In this configuration everything works fine. Now I have to move mylib.jar outside the war, so I put it into a JBoss module and added it to module.xml; I also added it to the deployment-structure.xml file in the war. In this new configuration my app.war finds succesfully the external myLib.jar but now myLib.jar cannot find its dependencies anymore .

JBoss7 remote MDB connection to JMS queue -Connection failure has been detected

旧时模样 提交于 2019-12-24 11:27:46
问题 I am trying to develop an MDB for listening to remote queue in JBoss7, I Didn't receive messages from the queue. I got warnings in the server log: 11:32:41,882 WARN [org.hornetq.core.protocol.core.impl.RemotingConnectionImpl] (hornetq-failure-check-thread) Connection failure has been detected: Did not receive data from /137.72.223.212:50835. It is likely the client has exited or crashed without closing its connection, or the network between the server and client has failed. You also might

org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher cannot be cast to javax.servlet.Servlet

白昼怎懂夜的黑 提交于 2019-12-24 10:47:27
问题 I am using rest web service and building the project with maven. The project is building successfully, but when i hit url to test rest web services I am getting following exception. java.lang.ClassCastException: org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher cannot be cast to javax.servlet.Servlet at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1116) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809) at org.apache

Sending String[] through REST with Jersey

空扰寡人 提交于 2019-12-24 08:49:48
问题 I'm trying to implement a REST webservice with Jersey. I'm using JBoss AS 7.1.1 Final as my webserver. The problem is happening whenever I attempt to use a String[] as part of my method's signature: @Override @POST @Path("/getVersion") public ControllerVersion getVersion(String deviceID, String[] macAddresses) { System.out.println("Received "+deviceID+", and macAddress[0] "+macAddresses[0]); return new ControllerVersion(); } The exception that's being thrown on the server side is as follows:

Error in Referencing a Dependency Jar File from JBoss 7.1

一笑奈何 提交于 2019-12-24 08:13:04
问题 I reference a jar file from JBoss 7.1 module according to the instructions provided in a stackoverflow question here. I have used this jar in JBoss 5.x, 6.x without any issue. However, when I try to deploy a war file in JBoss 7.1 which references the above jar, it gives me the following error: 15:59:19,220 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host]. [/Max_client]] (MSC service thread 1-2) StandardWrapper.Throwable: java.lang NoClassDefFoundError: org/xml/sax