[JBoss Web Services] - WS-Security without Spring, without WS-Policy and without the CXF annotations?
by Matt Wringe
Matt Wringe [https://community.jboss.org/people/mwringe] created the discussion
"WS-Security without Spring, without WS-Policy and without the CXF annotations?"
To view the discussion, visit: https://community.jboss.org/message/751071#751071
--------------------------------------------------------------
Is it possible to configure ws-security with JBossWS CXF Stack without using Spring, without using ws-policy, and without using the cxf annotations in the service classes?
I need to configure ws-security with wsrp, and wsrp is _not_ compatible with ws-policy (its against the spec, it may be supported in the next spec version but its not in the current one). So I can't just use ws-policy with the configuration properties to enable ws-security.
It looks like you still have the pre and post soap handlers for the CXF stack like you did with the native stack ( https://docs.jboss.org/author/display/JBWS/Predefined+client+and+endpoint... https://docs.jboss.org/author/display/JBWS/Predefined+client+and+endpoint...). But this is only for adding in soaphandlers, and cxf is configured using interceptors, which means I can't use this to add the security interceptors. Is there anyway to add in intereceptors in a similar manner?
IIts possible to use the cxf annotations on the java service classes to add in the security interceptors, but this means making our service classes dependent on cxf or having to have separate classes just for cxf. This really isn't an acceptable solution either, we need to support more than one application server.
Since the recommended way to configure CXF is to use Spring configuration files, I am confused why Spring is not the recommended manner to configure cxf in JBossWS (and Spring isn't include in AS7 either). Or is Spring the recommended manner with the cxf stack in JBossWS and I am reading the docs wrong? I would rather not have to add a spring dependency, but it looks like this might be the only real solution :/
Am I missing anything obvious on how to do this in a manner that is not dependent on spring, ws-policy or custom cxf only classes with the special cxf annotations?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/751071#751071]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months
[jBPM] - [insert-error] jBPM 5.3 with MySQL
by hiroro
hiroro [https://community.jboss.org/people/hiroro] created the discussion
"[insert-error] jBPM 5.3 with MySQL"
To view the discussion, visit: https://community.jboss.org/message/751217#751217
--------------------------------------------------------------
I try jBPM not only with PostgreSQL but also MySQL.
I try Evaluation Sample with MySQL,
Following Error is occuerd internal.
22:01:51,530 ERROR [stderr] (Thread-16) Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: FUNCTION jbpm5.nextval does not exist
22:01:51,530 ERROR [stderr] (Thread-16) at sun.reflect.GeneratedConstructorAccessor37.newInstance(Unknown Source)
22:01:51,530 ERROR [stderr] (Thread-16) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
22:01:51,530 ERROR [stderr] (Thread-16) at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
22:01:51,639 ERROR [stderr] (Thread-16) at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
22:01:51,639 ERROR [stderr] (Thread-16) at com.mysql.jdbc.Util.getInstance(Util.java:386)
22:01:51,639 ERROR [stderr] (Thread-16) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
22:01:51,639 ERROR [stderr] (Thread-16) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4096)
22:01:51,639 ERROR [stderr] (Thread-16) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4028)
22:01:51,639 ERROR [stderr] (Thread-16) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2490)
22:01:51,733 ERROR [stderr] (Thread-16) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2651)
22:01:51,733 ERROR [stderr] (Thread-16) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2683)
22:01:51,733 ERROR [stderr] (Thread-16) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2144)
22:01:51,733 ERROR [stderr] (Thread-16) at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2310)
22:01:51,733 ERROR [stderr] (Thread-16) at org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:462)
22:01:51,842 ERROR [stderr] (Thread-16) at org.hibernate.id.SequenceGenerator.generate(SequenceGenerator.java:98)
22:01:51,842 ERROR [stderr] (Thread-16) ... 17 more
Because of this Error, nothig is registered to "task" table.
So,I can regist the process,but nothing is shown task menu.(So, I can not Proceed the Task).
Why is this Error occuerd?
Please tell me how to resolve this problem.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/751217#751217]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months
[Beginner's Corner] - Migrating from jboss 4.2.3 to 5.1.0
by gajendra jangid
gajendra jangid [https://community.jboss.org/people/gjangid] created the discussion
"Migrating from jboss 4.2.3 to 5.1.0"
To view the discussion, visit: https://community.jboss.org/message/749815#749815
--------------------------------------------------------------
Hi,
I am migrating from jboss 4.2.3 to 5.1.0 and after deploying my application and placing -ds.xml (xauthority-jms-ds.xml) file.
I have removed hsqldb-ds.xml from server/deploy folder and hsqldb-persistence-service.xml from server/deploy/messaging folder.
I am facing folloeing error.Please suggest me any solution.
Here are the error logs and xauthority-jms-ds.xml :-
03:44:21,785 [main] ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "JBossTimerServiceFactory" is missing the following dependencies:
Dependency "jboss.ejb:service=EJBTimerService" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.ejb:service=EJBTimerService" is missing the following dependencies:
Dependency "jboss.ejb:persistencePolicy=database,service=EJBTimerService" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.ejb:persistencePolicy=database,service=EJBTimerService' **")
Deployment "jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3" is missing the following dependencies:
Dependency "<UNKNOWN jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService' **")
Deployment "jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3_endpoint" is missing the following dependencies:
Dependency "jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3" (should be in state "Configured", but is actually in state "PreInstall")
Deployment "jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3" is missing the following dependencies:
Dependency "<UNKNOWN jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService' **")
Deployment "jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3_endpoint" is missing the following dependencies:
Dependency "jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3" (should be in state "Configured", but is actually in state "PreInstall")
Deployment "jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3" is missing the following dependencies:
Dependency "<UNKNOWN jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService' **")
Dependency "<UNKNOWN jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'jndi:SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView' **")
Deployment "jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3_endpoint" is missing the following dependencies:
Dependency "jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3" (should be in state "Configured", but is actually in state "PreInstall")
Deployment "jboss.j2ee:module="AsyncRegistrationBean.jar",service=EjbModule" is missing the following dependencies:
Dependency "jboss.ejb:service=EJBTimerService" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.j2ee:module="common-utils-mdbs1.jar",service=EjbModule" is missing the following dependencies:
Dependency "jboss.ejb:service=EJBTimerService" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.jca:name=JmsXA,service=ConnectionFactoryBinding" is missing the following dependencies:
Dependency "jboss.jca:name=JmsXA,service=TxCM" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.jca:name=JmsXA,service=ManagedConnectionFactory" is missing the following dependencies:
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.jca:name=JmsXA,service=ManagedConnectionPool" is missing the following dependencies:
Dependency "jboss.jca:name=JmsXA,service=ManagedConnectionFactory" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.jca:name=JmsXA,service=TxCM" is missing the following dependencies:
Dependency "jboss.jca:name=JmsXA,service=ManagedConnectionPool" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.messaging.connectionfactory:service=ClusterPullConnectionFactory" is missing the following dependencies:
Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.messaging:service=PostOffice' **")
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.messaging.connectionfactory:service=ClusteredConnectionFactory" is missing the following dependencies:
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.messaging:service=PostOffice' **")
Deployment "jboss.messaging.connectionfactory:service=ConnectionFactory" is missing the following dependencies:
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.messaging:service=PostOffice' **")
Deployment "jboss.messaging.destination:name=DLQ,service=Queue" is missing the following dependencies:
Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.messaging:service=PostOffice' **")
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.messaging.destination:name=ExpiryQueue,service=Queue" is missing the following dependencies:
Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.messaging:service=PostOffice' **")
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.messaging:service=ServerPeer" is missing the following dependencies:
Dependency "jboss.messaging:service=JMSUserManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.messaging:service=JMSUserManager' **")
Deployment "jboss.mq.destination:name=AsynchXpdlMessageDrivenBean,service=Topic" is missing the following dependencies:
Dependency "jboss.mq:service=DestinationManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq.destination:name=BulkProvisionParserQueue,service=Queue" is missing the following dependencies:
Dependency "jboss.mq:service=DestinationManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq.destination:name=BulkProvisionQueue,service=Queue" is missing the following dependencies:
Dependency "jboss.mq:service=DestinationManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq.destination:name=BulkUserImportQueue,service=Queue" is missing the following dependencies:
Dependency "jboss.mq:service=DestinationManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq.destination:name=CacheNotificationsTopic,service=Topic" is missing the following dependencies:
Dependency "jboss.mq:service=DestinationManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq.destination:name=INVJVTEventTopic,service=Topic" is missing the following dependencies:
Dependency "jboss.mq:service=DestinationManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq.destination:name=JVTEventTopic,service=Topic" is missing the following dependencies:
Dependency "jboss.mq:service=DestinationManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq.destination:name=JawaQueue,service=Queue" is missing the following dependencies:
Dependency "jboss.mq:service=DestinationManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq.destination:name=JawaTestResponse,service=Queue" is missing the following dependencies:
Dependency "jboss.mq:service=DestinationManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq.destination:name=JawaTopic,service=Topic" is missing the following dependencies:
Dependency "jboss.mq:service=DestinationManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq.destination:name=MessageQueue,service=Queue" is missing the following dependencies:
Dependency "jboss.mq:service=DestinationManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq.destination:name=MessagingRequestQueue,service=Queue" is missing the following dependencies:
Dependency "jboss.mq:service=DestinationManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq.destination:name=MessagingResponseQueue,service=Queue" is missing the following dependencies:
Dependency "jboss.mq:service=DestinationManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq.destination:name=OMJVTEventTopic,service=Topic" is missing the following dependencies:
Dependency "jboss.mq:service=DestinationManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq.destination:name=OMMessageQueue,service=Queue" is missing the following dependencies:
Dependency "jboss.mq:service=DestinationManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq.destination:name=OMResponseMessageQueue,service=Queue" is missing the following dependencies:
Dependency "jboss.mq:service=DestinationManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq.destination:name=OMXVTEventTopic,service=Topic" is missing the following dependencies:
Dependency "jboss.mq:service=DestinationManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq.destination:name=OMXVTReplyTopic,service=Topic" is missing the following dependencies:
Dependency "jboss.mq:service=DestinationManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq.destination:name=OmegaQueue,service=Queue" is missing the following dependencies:
Dependency "jboss.mq:service=DestinationManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq.destination:name=OmegaRelayMDB,service=Queue" is missing the following dependencies:
Dependency "jboss.mq:service=DestinationManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq.destination:name=OrderQueue,service=Queue" is missing the following dependencies:
Dependency "jboss.mq:service=DestinationManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq.destination:name=ResponseMessageQueue,service=Queue" is missing the following dependencies:
Dependency "jboss.mq:service=DestinationManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq.destination:name=TestMessagingRequestQueue,service=Queue" is missing the following dependencies:
Dependency "jboss.mq:service=DestinationManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq.destination:name=TestMessagingResponseQueue,service=Queue" is missing the following dependencies:
Dependency "jboss.mq:service=DestinationManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq.destination:name=UnregisterQueue,service=Queue" is missing the following dependencies:
Dependency "jboss.mq:service=DestinationManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq.destination:name=XVTEventTopic,service=Topic" is missing the following dependencies:
Dependency "jboss.mq:service=DestinationManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq:service=DestinationManager" is missing the following dependencies:
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
DEPLOYMENTS IN ERROR:
Deployment "jboss.ejb:persistencePolicy=database,service=EJBTimerService" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.ejb:persistencePolicy=database,service=EJBTimerService' **
Deployment "<UNKNOWN jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService' **, ** UNRESOLVED Demands 'jndi:SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView' **
Deployment "jboss.messaging:service=JMSUserManager" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.messaging:service=JMSUserManager' **
Deployment "<UNKNOWN jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService' **
Deployment "<UNKNOWN jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService' **
Deployment "jboss.messaging:service=PostOffice" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.messaging:service=PostOffice' **
03:44:21,795 [main] INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
03:44:21,822 [main] INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
03:44:21,842 [main] INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)] Started in 49s:13ms
And i have attached xauthority-jms-ds.xml
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/749815#749815]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months