[JBoss Cache: Core Edition] - Re: Getting Failed to insert node
by atifoxon
than you for your follow up
1) I am getting following error repeatedly whenever the evicted node is about to be persisted to store (DB)
Feb 12, 2009 10:47:49 AM org.jboss.cache.loader.AdjListJDBCCacheLoader insertNode
| SEVERE: Failed to insert node :A syntax error has occurred.
|
2) I have checked and following SQL fails (syntax errors) marked in red
| deleteNodeSql = DELETE FROM jbosscache WHERE fqn = ?
| selectChildNamesSql = SELECT fqn FROM jbosscache WHERE parent = ?
| deleteAllSql = DELETE FROM jbosscache
|
| selectChildFqnsSql = SELECT fqn FROM jbosscache WHERE parent = ?
|
| insertNodeSql = INSERT INTO jbosscache (fqn, node , parent) SELECT ?, ?, ? FROM jbosscache_D WHERE NOT EXISTS (SELECT fqn FROM jbosscache WHERE fqn = ?)
|
|
| updateNodeSql = UPDATE jbosscache SET node = ? WHERE fqn = ?
| selectNodeSql = SELECT node FROM jbosscache WHERE fqn = ?
|
| createTableDDL = CREATE TABLE jbosscache(fqn VARCHAR(255) NOT NULL, node blob, parent VARCHAR(255), CONSTRAINT jbosscache_pk PRIMARY KEY (fqn))
|
| dropTableDDL = DROP TABLE jbosscache
|
3) Actually i have quoted the correct DDL, create table generating syntax error is
createTableDDL = CREATE TABLE jbosscache(fqn VARCHAR(255) NOT NULL, node blob, parent VARCHAR(255), CONSTRAINT jbosscache_pk PRIMARY KEY (fqn))
|
It is primary key constraint syntax which is generating error
Regards
Atif
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209349#4209349
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4209349
17 years, 5 months
[Installation, Configuration & DEPLOYMENT] - Re: War file produces org.apache.commons.logging.LogConfigur
by gauravnsj
Thanks peterj , for the reply.
Actually i am using eclipse Infocenter .WAR and there are minimal number of jars which are required to run this application and one of the jar used is
org.apache.commons.logging_1.0.4.v20080605-1930.jar. If i am removing this jar from the app ,the application is not running even on jboss 4.0.4.
As per your reply , I tried removing the jar from the application and then tried running it on jboss 4.4.2 GA .
the error which is comming up is
HTTP Status 404 - ProxyServlet: /help/
--------------------------------------------------------------------------------
type Status report
message ProxyServlet: /help/
description The requested resource (ProxyServlet: /help/) is not available.
--------------------------------------------------------------------------------
and when removing commons jar from application and adding the commons jar of jboss 4.2.2 in tha application the error pasted above is not comming but , the trace comming up is similar to the one posted in my last post.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209343#4209343
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4209343
17 years, 5 months
[JBossWS] - WS-Security on POJO Endpoint
by dhanushgopinath
Hi,
I am trying to implement WS-Security on a POJO Endpoint using JBOSS WS. I want to use the UserName token authentication. This is already a Jira Issue with 3.0.5 (https://jira.jboss.org/jira/browse/JBWS-1999) and since I saw the Jira Issue as resolved, I got the latest code from the site and built the Web Service stack and tried to implement it. I am implementing based on this
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=131719&postdays=...
But while deploying the Web Service the endpoint configuration is shown as Standard Endpoint in the logs . Shouldn't it be Standard WSSecurity Endpoint. Given below is the excerpt from log.
| ServerEndpointMetaData:
| type=JAXWS
| qname={http://www.test.com/WF/Framework/AWFUtilityService}AWFUtilityServi...
| id=jboss.ws:context=TestUtility,endpoint=AWFUtilityService
| address=http://127.0.0.1:8180/TestUtility/AWFUtilityService
| binding=http://schemas.xmlsoap.org/wsdl/soap/http
| linkName=AWFUtilityService
| implName=com.test.wf.framework.awfutilityservice.AWFUtilityServiceImpl
| seiName=com.test.wf.framework.awfutilityservice.AWFUtilityServicePortType
| serviceMode=null
| portComponentName=null
| contextRoot=/TestUtility
| urlPattern=/AWFUtilityService
| configFile=META-INF/standard-jaxws-endpoint-config.xml
| configName=Standard Endpoint
| authMethod=null
| transportGuarantee=null
| secureWSDLAccess=false
| properties={}
|
Now I run the client and the SOAP Message is properly built using the wsse:security headers, but at the server side its throwing a class cast exception
2009-02-11 20:12:52,153 DEBUG [org.jboss.ws.core.soap.MessageFactoryImpl] createMessage: [contentType=text/xml; charset=UTF-8]
| 2009-02-11 20:12:52,247 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] Configure SOAPBinding
| 2009-02-11 20:12:52,247 ERROR [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] SOAP request exception
| java.lang.ClassCastException: org.jboss.ws.core.soap.EnvelopeBuilderDOM
| at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:278)
| at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:193)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:455)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:295)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:205)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:131)
| at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:85)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
|
Here is my Web Service and the server side config files.
| @WebService(name="AWFUtilityServicePortType", serviceName = "AWFUtilityService", targetNamespace = "http://www.test.com/WF/Framework/AWFUtilityService",
| endpointInterface = "com.test.wf.framework.awfutilityservice.AWFUtilityServicePortType"
| )
| @EndpointConfig(configFile="META-INF/standard-jaxws-endpoint-config.xml", configName = "Standard WSSecurity Endpoint")
|
| public class AWFUtilityServiceImpl implements AWFUtilityServicePortType {
|
| public String getCorrelationID(String CorrelationID)
| throws GetCorrelationIDFault
| {
| String strCorrValue = Calendar.getInstance().getTime().toString();
| return CorrelationID + "_" + strCorrValue;
| }
|
| }
|
Server config file jboss-wsse-server.xml
<?xml version="1.0" encoding="UTF-8"?>
|
| <jboss-ws-security xmlns="http://www.jboss.com/ws-security/config"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://www.jboss.com/ws-security/config
| http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
|
| <config>
| <authorize>
| <unchecked />
| </authorize>
| </config>
|
| <port name="AWFUtilityServicePort">
| <operation
| name="{http://www.test.com/WF/Framework/AWFUtilityService}getCorrelationID">
| <config>
| <authorize>
| <unchecked />
| </authorize>
| </config>
| </operation>
| </port>
| </jboss-ws-security>
|
jboss-web.xml
<?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
|
|
| <jboss-web>
|
| <security-domain>java:/jaas/JBossWS</security-domain>
| <context-root>/TestUtility</context-root>
|
| </jboss-web>
|
Please help why this service is not getting deployed as a WS Security Endpoint. Do I need to enable it some where ? Or is it that the latest code doesn't contain the fix?
Thanks in Advance.
Dhanush
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209342#4209342
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4209342
17 years, 5 months
[JBoss jBPM] - Re: jbpm 3.3.1 GA and Eclipse plugin
by abyv
Thanks Elifarley, now Im feelin a bit better... I, succesfully tested the connection.with the new url.. but still the deployment is unsuccesful. The plugin is showing the error message Unexpected Exception caused the deployment to fail
I have viewed the server log and the log updates goes like this
anonymous wrote : 2009-02-12 10:03:49,482 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - second pass <Thu, 12 Feb 2009 10:03:49>
| 2009-02-12 10:03:49,482 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] AtomicActionRecoveryModule: Second pass
| 2009-02-12 10:03:49,482 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_6] - TORecoveryModule - second pass
| 2009-02-12 10:03:49,482 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.secondpass] Local XARecoveryModule - second pass
|
I also tried deployment through the jbpm console. In this case i zipped the bin folder of the project which I created through Eclipse the gpd.xml and processdefenition.xml fileand uploaded the zip file to the console.But here also I failed deployment: It showed the error:
anonymous wrote : Error deploying process: An exception of type "org.jbpm.jpdl.JpdlException" was thrown. The message is: [[ERROR] no processdefinition.xml inside process archive]
I,am using an Eclipse 3.3.1 version, is this a reason for my deployment failure, I,ve updated the GPD plugin through Eclipse plugin updates.
I also have an ambiguity regardin the compatibilty between gbpm 3.3.1 GA and Eclipse 3.3.1
Please guide me to solve the pending issues
Thanks and Regards
Aby
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209339#4209339
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4209339
17 years, 5 months
[JBoss Messaging] - JNDI lookup failed for QueueSender program
by siddharth_2279
Hi All,
I am trying for a simple Queue Sender and receiver JBoss messaging program. I am using JBoss-5.0.0 G.A. application server. I am getting the following exception while running the program.
]JNDI lookup failed: javax.naming.NameNotFoundException: QueueConnectionFactory not bound
public static void main(String[] args) {
| // TODO Auto-generated method stub
| String queueName = null;
| Context jndiContext = null;
| QueueConnectionFactory queueConnectionFactory = null;
| QueueConnection queueConnection = null;
| QueueSession queueSession = null;
| Queue queue = null;
| QueueSender queueSender = null;
| TextMessage message = null;
|
| final int NUM_MSGS;
|
| if ((args.length < 1) || (args.length > 2)) {
| System.out.println("Usage: java SimpleQueueSender "
| + "<queue-name> [<number-of-messages>]");
| System.exit(1);
| }
|
| queueName = new String(args[0]);
| System.out.println("Queue Name Is : " + queueName);
|
| if (args.length == 2) {
| NUM_MSGS = (new Integer(args[1])).intValue();
| } else {
| NUM_MSGS = 1;
| }
|
| Properties props = new Properties();
| props.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
| props.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
| props.put("java.naming.provider.url", "localhost:1099");
|
| try {
| jndiContext = new InitialContext(props);
| } catch (NamingException e) {
| System.out.println("Could not create JNDI " + "context: "
| + e.toString());
| System.exit(1);
| }
|
| try {
| queueConnectionFactory = (QueueConnectionFactory) jndiContext
| .lookup("QueueConnectionFactory");
| queue = (Queue) jndiContext.lookup("queue/"+queueName);
| } catch (NamingException e) {
| System.out.println("JNDI lookup failed: " + e.toString());
| System.exit(1);
| }
|
| try {
| queueConnection = queueConnectionFactory.createQueueConnection();
| queueSession = queueConnection.createQueueSession(false,
| Session.AUTO_ACKNOWLEDGE);
| queueSender = queueSession.createSender(queue);
| message = queueSession.createTextMessage();
|
| for (int i = 0; i < NUM_MSGS; i++) {
| message.setText("This is message " + (i + 1));
| System.out.println("Sending Message: " + message.getText());
| queueSender.send(message);
| }
| queueSender.send(queueSession.createMessage());
| } catch (JMSException e) {
| System.out.println("Exception occurred: " + e.toString());
| } finally {
| if (queueConnection != null) {
| try {
| queueConnection.close();
| } catch (JMSException e) {
| System.out.println("Exception occurred: " + e.toString());
| }
| }
| }
|
| }
Dosen't JBoss-5.0.0. G.A. application server gives a default QueueConnectionFactory and a default TopicConnectionFactory as in JBoss-4.2.2 GA.? Do we have to create a QueueConnectionFactory and TopicConnectionFactory by ourselves. If yes, then where do we create it - in jboss-5.0.0.GA\server\default\deploy\messaging\destinations-service.xml.
Please do guide me as I am not able to proceed further. Thanks in advance.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209338#4209338
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4209338
17 years, 5 months