[JBoss Web Services] - Migrating secured WS from JBoss 5.1 to 7.1.1
by Xavier Dury
Xavier Dury [https://community.jboss.org/people/xdury] created the discussion
"Migrating secured WS from JBoss 5.1 to 7.1.1"
To view the discussion, visit: https://community.jboss.org/message/780326#780326
--------------------------------------------------------------
Hi,
I've been migrating one of our projects from JBoss 5.1 to 7.1.1, all was done without too much problems but I'm stuck on the security configuration for a Web Service (which does not have WS-Security Policy):
In JBoss 5.1, configuring WS-Security was done within the file "META-INF/jboss-wsse-server.xml"
<jboss-ws-security>
<key-store-file>${wsse.keystore}</key-store-file>
<key-store-type>jks</key-store-type>
<key-store-password>${wsse.keystore.password}</key-store-password>
<trust-store-file>${wsse.truststore}</trust-store-file>
<trust-store-type>jks</trust-store-type>
<trust-store-password>${wsse.truststore.password}</trust-store-password>
<config>
<timestamp ttl="3000" />
<sign type="x509v3" alias="${wsse.keystore.alias}" />
<requires>
<timestamp maxAge="3000" />
<signature />
</requires>
</config>
</jboss-ws-security>
So, I just need requests and responses to be signed and timestamped but I have a hard time understanding how to achieve this in AS7.1.1.
I've read the page https://docs.jboss.org/author/display/JBWS/WS-Security https://docs.jboss.org/author/display/JBWS/WS-Security, but it didn't help.
Do I need to configure this via jbossws-cxf.xml? (tried this but seems to be ignored)
Is it available out-of-the-box in JBoss AS7.1.1? (I see spring is being used but there are no spring jars in the distribution)
I must be missing something...
Thanks,
Xavier
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/780326#780326]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 4 months
[Beginner's Corner] - Re: jboss error: "process crashed on startup"
by dfox
dfox [https://community.jboss.org/people/dfox] created the discussion
"Re: jboss error: "process crashed on startup""
To view the discussion, visit: https://community.jboss.org/message/809334#809334
--------------------------------------------------------------
Having the same problem here...
============
service jbossas start
Starting jbossas: [FAILED]
Process crashed on startup
============
server.log is empty
============
BOOT.LOG
10:15:11,111 INFO [ServerImpl] Starting JBoss (Microcontainer)...
10:15:11,111 INFO [ServerImpl] Release ID: JBoss [EAP] 5.1.2 (build: SVNTag=JBPAPP_5_1_2 date=201206071031)
10:15:11,112 DEBUG [ServerImpl] Using config: mailto:org.jboss.bootstrap.BaseServerConfig@4e99353f org.jboss.bootstrap.BaseServerConfig@4e99353f
10:15:11,112 DEBUG [ServerImpl] Server type: class org.jboss.bootstrap.microcontainer.ServerImpl
10:15:11,112 DEBUG [ServerImpl] Server loaded through: org.jboss.bootstrap.NoAnnotationURLClassLoader
10:15:11,112 INFO [ServerImpl] Bootstrap URL: null
10:15:11,112 INFO [ServerImpl] Home Dir: /var/lib/jbossas
10:15:11,112 INFO [ServerImpl] Home URL: file:/var/lib/jbossas/
10:15:11,112 INFO [ServerImpl] Library URL: file:/var/lib/jbossas/lib/
10:15:11,112 INFO [ServerImpl] Patch URL: null
10:15:11,112 INFO [ServerImpl] Common Base URL: file:/var/lib/jbossas/common/
10:15:11,112 INFO [ServerImpl] Common Library URL: file:/var/lib/jbossas/common/lib/
10:15:11,112 INFO [ServerImpl] Server Name: default
10:15:11,113 INFO [ServerImpl] Server Base Dir: /var/lib/jbossas/server
10:15:11,113 INFO [ServerImpl] Server Base URL: file:/var/lib/jbossas/server/
10:15:11,113 INFO [ServerImpl] Server Config URL: file:/var/lib/jbossas/server/default/conf/
10:15:11,113 INFO [ServerImpl] Server Home Dir: /var/lib/jbossas/server/default
10:15:11,113 INFO [ServerImpl] Server Home URL: file:/var/lib/jbossas/server/default/
10:15:11,113 INFO [ServerImpl] Server Data Dir: /var/lib/jbossas/server/default/data
10:15:11,113 INFO [ServerImpl] Server Library URL: file:/var/lib/jbossas/server/default/lib/
10:15:11,113 INFO [ServerImpl] Server Log Dir: /var/lib/jbossas/server/default/log
10:15:11,113 INFO [ServerImpl] Server Native Dir: /var/lib/jbossas/server/default/tmp/native
10:15:11,113 INFO [ServerImpl] Server Temp Dir: /var/lib/jbossas/server/default/tmp
10:15:11,113 INFO [ServerImpl] Server Temp Deploy Dir: /var/lib/jbossas/server/default/tmp/deploy
10:15:11,116 DEBUG [ServerImpl] Shutdown hook added Thread[JBoss Shutdown Hook,5,jboss]
10:15:11,141 DEBUG [KernelFactory] Starting JBoss Kernel construction...
10:15:11,285 DEBUG [KernelFactory] Completed JBoss Kernel construction. Duration: 144 milliseconds
10:15:11,664 DEBUG [ServerImpl] Already in start, ignoring duplicate start
10:15:11,665 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/var/lib/jbossas/server/default/conf/bootstrap.xml
10:15:11,666 DEBUG [ServerImpl] Failed to start
java.lang.NoClassDefFoundError: org/jboss/xb/binding/sunday/unmarshalling/SchemaBinding
at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:123)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException: org.jboss.xb.binding.sunday.unmarshalling.SchemaBinding
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 5 more
10:15:11,668 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
10:15:11,683 INFO [ServerImpl] Shutdown complete
============
CONSOLE.LOG
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /usr/share/jbossas/
JAVA: /usr/lib/jvm/java/bin/java
JAVA_OPTS: -Dprogram.name=run.sh -server -Xms1303m -Xmx3000m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=600000 -Dsun.rmi.dgc.server.gcInterval=600000 -Dsun.lang.ClassLoader.allowArraySyntax=true -XX:+HeapDumpOnOutOfMemoryError -Djboss.partition.udpGroup=228.1.2.3 -Djboss.webpartition.mcast_port=45577 -Djboss.hapartition.mcast_port=45566 -Djboss.ejb3entitypartition.mcast_port=43333 -Djboss.ejb3sfsbpartition.mcast_port=45551 -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true
CLASSPATH: /usr/share/jbossas//bin/run.jar:/usr/lib/jvm/java/lib/tools.jar
=========================================================================
10:15:11,111 INFO [ServerImpl] Starting JBoss (Microcontainer)...
10:15:11,111 INFO [ServerImpl] Release ID: JBoss [EAP] 5.1.2 (build: SVNTag=JBPAPP_5_1_2 date=201206071031)
10:15:11,112 INFO [ServerImpl] Bootstrap URL: null
10:15:11,112 INFO [ServerImpl] Home Dir: /var/lib/jbossas
10:15:11,112 INFO [ServerImpl] Home URL: file:/var/lib/jbossas/
10:15:11,112 INFO [ServerImpl] Library URL: file:/var/lib/jbossas/lib/
10:15:11,112 INFO [ServerImpl] Patch URL: null
10:15:11,112 INFO [ServerImpl] Common Base URL: file:/var/lib/jbossas/common/
10:15:11,112 INFO [ServerImpl] Common Library URL: file:/var/lib/jbossas/common/lib/
10:15:11,112 INFO [ServerImpl] Server Name: default
10:15:11,113 INFO [ServerImpl] Server Base Dir: /var/lib/jbossas/server
10:15:11,113 INFO [ServerImpl] Server Base URL: file:/var/lib/jbossas/server/
10:15:11,113 INFO [ServerImpl] Server Config URL: file:/var/lib/jbossas/server/default/conf/
10:15:11,113 INFO [ServerImpl] Server Home Dir: /var/lib/jbossas/server/default
10:15:11,113 INFO [ServerImpl] Server Home URL: file:/var/lib/jbossas/server/default/
10:15:11,113 INFO [ServerImpl] Server Data Dir: /var/lib/jbossas/server/default/data
10:15:11,113 INFO [ServerImpl] Server Library URL: file:/var/lib/jbossas/server/default/lib/
10:15:11,113 INFO [ServerImpl] Server Log Dir: /var/lib/jbossas/server/default/log
10:15:11,113 INFO [ServerImpl] Server Native Dir: /var/lib/jbossas/server/default/tmp/native
10:15:11,113 INFO [ServerImpl] Server Temp Dir: /var/lib/jbossas/server/default/tmp
10:15:11,113 INFO [ServerImpl] Server Temp Deploy Dir: /var/lib/jbossas/server/default/tmp/deploy
10:15:11,665 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/var/lib/jbossas/server/default/conf/bootstrap.xml
Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/xb/binding/sunday/unmarshalling/SchemaBinding
at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:123)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException: org.jboss.xb.binding.sunday.unmarshalling.SchemaBinding
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 5 more
10:15:11,668 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
10:15:11,683 INFO [ServerImpl] Shutdown complete
Shutdown complete
Halting VM
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/809334#809334]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 4 months
[JBoss Cache] - [jboss eap 5.1.2] node's invalidation cache cleared by each other
by Bond Chan
Bond Chan [https://community.jboss.org/people/bondchan921] created the discussion
"[jboss eap 5.1.2] node's invalidation cache cleared by each other"
To view the discussion, visit: https://community.jboss.org/message/788169#788169
--------------------------------------------------------------
greetings,
I'm using jboss cahce 3.2.8 shiped with jboss eap 5.1.2:
step 1: @node A click a link on the browser
-> 153 nodes with values at nodeA
-> 153 nodes without values at nodeB
step 2: @node B click the same link on the browser
-> 153 nodes with values at nodeB
-> 153 nodes without values at nodeA
Then loop the step1 and step2 having the same result of each, so one node always having no values, I tried MVCC and OPTIMISTIC, result is same.
but OPTIMISTIC having the warning :
2013-01-05 19:08:26,540 WARN [org.jboss.cache.interceptors.InvalidationInterceptor] (main:) Unable to broadcast evicts as a part of the prepare phase. Rolling back.
org.jboss.cache.optimistic.DataVersioningException: Node found, but version is not equal to or less than the expected [Ver=1]. Is [Ver=2] instead!
at org.jboss.cache.commands.legacy.write.VersionedInvalidateCommand.perform(VersionedInvalidateCommand.java:115)
at org.jboss.cache.interceptors.CallInterceptor.invokeCommand(CallInterceptor.java:108)
at org.jboss.cache.interceptors.CallInterceptor.handleDefault(CallInterceptor.java:99)
at org.jboss.cache.commands.AbstractVisitor.visitInvalidateCommand(AbstractVisitor.java:90)
at org.jboss.cache.commands.write.InvalidateCommand.acceptVisitor(InvalidateCommand.java:125)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/788169#788169]
Start a new discussion in JBoss Cache at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 4 months