jboss6.x

Getting a “WELD-001408 Unsatisfied dependencies error when deploying a class injected with an interface”

孤街醉人 提交于 2020-01-16 13:17:09
问题 I'm doing some unit tests using Arquillian on JUnit4 and Jboss6. There is a facade(SomeFacadeclass) that has the "SomeClass"(which is an interface) injected to it. When Arquillian deploys the test.war for testing the above deployment error pops up. What should i do to solve this? 回答1: I would guess that you don't have an implementation of SomeClass in your bean archives 回答2: Everything was solved. I added the implementation class to the @Deployment archive and some other bunch of dependent

JBoss [ClassLoaderManager] Unexpected err… cannot access superclass?

醉酒当歌 提交于 2020-01-05 03:06:43
问题 Trying to deploy to JBoss-6.0.0.Final container and have been battling the following stacktrace. Maybe there's a known solution?? 14:36:08,218 INFO [AbstractJBossASServerBase] Server Configuration: JBOSS_HOME URL: file:/E:/java/jboss-6.0.0.Final/ Bootstrap: $JBOSS_HOME\server/default/conf/bootstrap.xml Common Base: $JBOSS_HOME\common/ Common Library: $JBOSS_HOME\common/lib/ Server Name: default Server Base: $JBOSS_HOME\server/ Server Library: $JBOSS_HOME\server/default/lib/ Server Config:

Jboss undeploy for deploying null

烂漫一生 提交于 2020-01-03 04:56:04
问题 My jboss server starts without errors and deploys my ear but after some seconds it undeploys it: 16:03:34,762 DEBUG [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) Deployment scan of [U:\JBOSS_CFG\deployments] found update action 16:28:46,919 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "myear.ear" (runtime-name : "my-ear.ear") [{ "operation" => "composite", "address" => [], "steps" => [ { "operation" => "undeploy", "address" => [(

JBoss 6: Injecting EJB into servlet

孤者浪人 提交于 2020-01-02 09:28:17
问题 Folks, I am very annoyed by having to re-learn and waste time with this stuff every time a new version of JBoss rolls around. I have a stateless EJB that is discovered and declared in the JNDI space: 10:01:53,044 INFO [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase] Binding the following Entries in Global JNDI: DTalk/UserManager/local - EJB3.x Default Local Business Interface DTalk/UserManager/local-com.doctalk.ejb.UserManagerLocal - EJB3.x Local Business Interface I need to

log4j Logger messages are not displayed on JBoss webapp

只谈情不闲聊 提交于 2020-01-02 07:54:10
问题 I use Jboss 6 and my static Logger logger = Logger.getLogger(Foo.class); displays nothing Tried adding log4 to my project, removing it, placing a log4j file on my main/resources folder, placing no log4j file and no results. Only System.Out seems to work, but it doesn't provide all the information I would like to see I even see Hibernate log working but not mine What am I missing? 回答1: Turns out my logging does work. Hibernate logging is controlled by the jboss logging settings. My logging

How to run different apps on single JBoss AS 6 instance behind different ports?

孤者浪人 提交于 2019-12-29 07:39:08
问题 I am coming from this SO however my case is not on Tomcat, but JBoss EAP 6. So suppose I have two web apps app1 and app2 running on JBoss AS 6: app1 on http://localhost:8080/app1 app2 on http://localhost:8080/app2 However I want to configure Tomcat so that they run in root context behind separate ports: app1 on http://localhost:8081 app2 on http://localhost:8082 How can I make it on JBoss EAP 6? Note this answer doesn't work for me as it targets JBoss 5. 回答1: EDIT: These instructions are for

Error casting context.lookup(…) returned object to ejb3 remote object interface

会有一股神秘感。 提交于 2019-12-25 04:31:47
问题 I have an EJB stateless running under a JBoss server and a client under another JBoss server. In the client side, I am using the following code: final Properties initialContextProperties = new Properties(); initialContextProperties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory"); initialContextProperties.put(Context.PROVIDER_URL, "remote://127.0.0.1:8083"); initialContextProperties.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp

Ejb consumption in JDK1.4

时光毁灭记忆、已成空白 提交于 2019-12-25 02:23:01
问题 As a postlude to Consuming an EJB question. I have created an ejb on JBOSS AS 6.0 and am consuming it in a java client using the following code. private ServiceLocator(String host, String principal, String creadentials) throws NamingException { Properties env = new Properties(); env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces"); env.put(Context.PROVIDER_URL, "jnp://" + host); System.out

How can I bind a JBoss AS 6 running as service to 0.0.0.0?

早过忘川 提交于 2019-12-24 11:07:48
问题 Where in the JBoss AS 6 startup script can I set the -b 0.0.0.0 parameter like in JBoss AS 5? The new version reads input from a temporary file .r.lock :cmdStart REM Executed on service start del .r.lock 2>&1 | findstr /C:"being used" > nul if not errorlevel 1 ( echo Could not continue. Locking file already in use. goto cmdEnd ) echo Y > .r.lock jbosssvc.exe -p 1 "Starting %SVCDISP%" > run.log call run.bat < .r.lock >> run.log 2>&1 jbosssvc.exe -p 1 "Shutdown %SVCDISP% service" >> run.log del

logging System.out.println getting lost in JBoss

社会主义新天地 提交于 2019-12-24 06:34:52
问题 I am using simple System.out.printf / System.out.println statements to perform JBoss logging (I am deploying to JBoss EAP 6.2). I have noticed that when an exception occurs I tend to lose println messages immediately preceding the throwing of the exception. This makes it impossible to debug the exception. To verify this, I put in my WAR the following code: System.out.println("foo"); int i = 0; if (i==0) throw new RuntimeException(); ... (the int i = 0; if (i==0) part is just to silence the