jboss5.x

How to get a session by session id in JBoss 5

僤鯓⒐⒋嵵緔 提交于 2019-12-11 15:18:05
问题 I want to verify that session in JBoss 5 is still active and in logged in state. to implement a JWT (json web token). for this, I need to get session by id. 回答1: to debug it: JBoss uses a special version of tomcat called JBoss web. then I searched "jboss web 2* jar" and added it as source for sources to eclipse then I could debug it. also in eclipse, I have installed from eclipse marketplace FernFlower decompiler (* I took the actual version from https://developer.jboss.org/wiki

Exception in thread “main” java.lang.NoClassDefFoundError: org/jboss/util/Nested RuntimeException

≯℡__Kan透↙ 提交于 2019-12-11 11:45:18
问题 When I start my jBoss5.x server I get the following exception Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/util/Nested RuntimeException at org.jboss.bootstrap.AbstractServerImpl.doInit(AbstractServerImpl.java :190) at org.jboss.bootstrap.AbstractServerImpl.init(AbstractServerImpl.java:1 73) at org.jboss.bootstrap.AbstractServerImpl.init(AbstractServerImpl.java:1 43) at org.jboss.Main.boot(Main.java:218) at org.jboss.Main$1.run(Main.java:556) at java.lang.Thread.run

Application Specific Logging in Jboss 5.1

纵饮孤独 提交于 2019-12-11 11:18:48
问题 I added following configuration in my jboss AS'S CONFIG directory Entry in jboss-log4j.xml file <appender name="YYY" class="org.apache.log4j.FileAppender"> <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"></errorHandler> <param name="Append" value="false"/> <param name="File" value="${jboss.server.home.dir}/log/app1.log"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/> </layout> </appender> <category

How to dynamically add datasources to jboss 7

心已入冬 提交于 2019-12-11 09:49:52
问题 I have an application which dynamically adds databases for each instance of the application, and which then, on JBoss 5 would write a datasource file out into the deploy folder, so that the application could make use of the new database (And be locked down to it). In JBoss 7 the datasource configuration is inside standalone.xml. And more importantly if I enter new datasources into this file, they don't seem to get read and no datasource is available. Does anyone have any idea how I can

Java8, JBoss AS5, SSLException: “Received fatal alert: handshake_failure”

青春壹個敷衍的年華 提交于 2019-12-11 09:08:46
问题 My java application is running by JBoss AS 5. I'm trying to connect by URL to download image, but I receive the next exception: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure I've configurated trust-managet as "all-trusting trust manager": TrustManager[] trustAllCerts = new TrustManager[]{ new X509TrustManager() { @Override public java.security.cert.X509Certificate[] getAcceptedIssuers() { return null; } @Override public void checkClientTrusted( java.security

Empty EntityManager in Java EE bean on JBoss 5.1

Deadly 提交于 2019-12-11 04:12:13
问题 I'm a newbie in Java EE. This is the first project I'm trying to do and I have a problem that I just can't solve. I've created three projects: slowka-beans (EJB), slowka-persistance (JPA) and slowka-web(JSF). After deploying them I can't get access to persistence unit - the EntityManager is null. Everything works fine - I can create beans, inside them instantiate entity classes and show them on JSF page. But how can I store them in the DB? I have MySQL database configured on JBoss site. The

Is is safe to use HSQLDB for production? (JBoss AS5.1)

梦想与她 提交于 2019-12-11 03:43:00
问题 The JBoss developers warn against the use of HSQLDB as a persistent storage (see JBoss wiki). I am confused though, because HSQLDB appears to be used heavily in production. Especially, the above mentioned page seems to warn against the use of HSQLDB entirely and not against the use in conjunction with JBoss. Is it still not recommendable to use HSQLDB in JBoss (particularly, the bundled default datasource in Community JBoss 5.1)? *:We plan to use it in in-memory mode. 回答1: If your own link

jBoss issue with binding to a specific port

元气小坏坏 提交于 2019-12-11 00:50:17
问题 I'm running jboss, trying to bind it to a specific address. My command line goes like: ./run.sh -b 192.168.99.3 -c temp-config This gives me following error: 15:27:54,178 INFO [ServerInfo] VM arguments: -Dprogram.name=runzing.sh -XX:+DisableExplicitGC -server -Xms31G -Xmx31G -PX:ARTAPort= 50001 -XX:GenPauselessNewThreads=3 -XX:GenPauselessOldThreads=3 -XX:+KeepSafepointsInCountedLoops -XX:+Log4J12Optimized -XX:+UseLock edCollections -Djava.net.preferIPv4Stack=true -Xloggc:zingtest5.log

RESTEasy on JBoss 5 - jars needed

♀尐吖头ヾ 提交于 2019-12-10 18:55:41
问题 We are running JBoss 5.1.0 and I'm trying to get just a simple test app up and running with RESTEasy. However, I cannot figure out what I need in order to do this. Apparently new versions of JBoss have everything included, but that doesn't help me. From what I understand, I need to modify the web.xml of my app to include the bootstrap and some other things. And then I need to include some jars in the WEB-INF/lib. This is where I'm stuck. Do I need to include any jars in the server/lib in

references to SystemProperties in web.xml and jboss-web.xml works in JBoss5 but not in JBoss7

吃可爱长大的小学妹 提交于 2019-12-10 15:39:03
问题 Under JBoss 5.1 we used to "stage" values in the web.xml and the jboss-web.xml by using SystemProperties. In the web.xml that looked like this: <web-app [...]> [...] <auth-constraint> <role-name>${myRole}</role-name> </auth-constraint> [...] <login-config> <auth-method>${myAuthMethod}</auth-method> </login-config> <security-role> <role-name>${myRole}</role-name> </security-role> </web-app> Additionally we did the same thing for the jboss-web.xml and the security-domain. Not adding the