Neal Sharman

Greenhorn
+ Follow
since Oct 24, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Neal Sharman

Can anyone explain this .... I am testing for a failure condition in a web application using hibernate and DB2 iseries as the database. The test involves ending the journal on a table testing the app to catch errors and then journalling the table and running tests for success conditions.

All transactions are PROPAGATION_REQUIRES_NEW (Spring transaction proxy). However, after I start journalling the tables the error condition still persists i.e. I get a SQL exception error 7008 (describing that the table is not ready). The journalled status of the table is recognized only after I restart the application server.

I am using the server based connection pooling.
Hello
I am a newbie on JMS support on WAS 6.1 Can anybody help me by sending me some beginner documentation on setting up an embedded jms server? I have developed apps using ActiveMQ. I am not sure if that can be used as a provider with WAS. I would also like to find out if MQ is necessary for homogenous apps i.e producer and consumer are j2ee apps. Any best practices info would also be appreciated.
Thanks
14 years ago
I am using a DefaultAdvisorAutoProxyCreator for auto proxying in order to log before and after a method is invoked. However, I notice that any method invocation that is invoked from the primary method does not show up. I am not filtering out any method in the pointcut pattern (set to .*). Is there a limit on the methods invoked from the first method? Any feed back would be great.

Thanks
14 years ago

Jay Burrill wrote:Have you had any success in getting through this error? I am seeing this in my applicaiton on WAS 6.1 (although using Sun JAX-WS). Suggestions on other sites seem to point to schema import, but a second service on this same server, with nearly identical structure, is not showing this problem.



Jay
Sorry for the delayed response. I did not check the replies. Yes, I did get through. It was a "duh" moment. I did not specify the correct path to the wsdl. make sure that SEI uri is pointing all the way to the wsdl. i.e ??

http://....?wsdl. Once I made that correction everything worked fine.
14 years ago
Thanks Greg. That helps. I had the vendor fix the cert chain exactly as you had outlined and it now works.
14 years ago
Has anybody encountered this one? I am not sure how to pinpoint where in the chain the corruption is occurring or what to look for in the trace. I am using java.net.debug to output a trace. Any help will be much appreciated.
Thanks
14 years ago

Ivan Krizsan wrote:

Neal Sharman wrote:Thanks for the post. Does this mean that the protocol soap1.2 is being recognized however the service still issues a complaint?


Yes, to me it looks like this is the case.
Do the web service work as expected, apart from the abovementioned log message?
Best wishes!



Yes it does. Though the console keeps spitting out this message for every request. I was wondering why it would do that.
14 years ago

Ivan Krizsan wrote:Hi!
Perhaps because WS-I Basic Profile 1.1 and WSDL 1.1 only talks about SOAP 1.1 and not SOAP 1.2?
References:
http://www.w3.org/TR/wsdl#_soap-b
http://www.ws-i.org/Profiles/BasicProfile-1.1.html#WSDLSOAPBINDING
Best wishes!



Hello

Thanks for the post. Does this mean that the protocol soap1.2 is being recognized however the service still issues a complaint?
Thanks
14 years ago
Can someone shed light on whether the web services feature pack from IBM is essential for MTOM and WSIT on WAS 6.1 and also to run soap1.2 protocol? I have tried running some tests without the feature pack and I am confused by the results. It looks like WAS is switching to SOAP1.1 but I am not sure. TCPMON displays the following :

REQUEST:

POST /DealerInventoryService/Service HTTP/1.1
Content-Type: application/soap+xml ----------------------------------------------> SOAP1.2
SOAPAction: "http://schemas.xmlsoap.org/ws/2004/09/transfer/Get";
User-Agent: Java/1.5.0
Host: 4zftw81:8080
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 482

RESPONSE:

HTTP/1.1 500 Internal Server Error
Content-Type: application/soap+xml;charset=utf-8
Content-Language: en-US
Transfer-Encoding: chunked
Connection: Close
Date: Fri, 12 Jun 2009 20:40:34 GMT
Server: WebSphere Application Server/6.1
<S:Text xml:lang="en">Cannot find dispatch method for {}</S:Text> -----> Included just the message for brevity

Subsequently the client seems to be retrying with SOAP 1.1 requests. How ever I don't see the response payload. Even though I am able to retrieve the results from the service. I tested on a Tomcat 6 server and the request and response clearly shows the content-type as application/soap+xml.

Would appreciate any feedback.
Thanks

Upon reading the redbook for the feature pack I got more confused since it talks about the necessity of the feature pack only in teerms of reliable messaging and does not explain whether the base WAS code contains support for MTOM and Fastinfoset.
14 years ago
Any idea why a soap 1.2 binding produces this message whilst running apt and wsgen. Also I have to use the protocol Xsoap1.2 and extension attribute in order for this to work. Per metro web site documentation soap 1.2 is regarded as non standard? Why is soap 1.2 regarded as non standard.
Thanks
14 years ago
I am running into the following error:

javax.resource.ResourceException: enlist: caught Exception
at com.ibm.ejs.j2c.LocalTransactionWrapper.enlist(LocalTransactionWrapper.java:688)
at com.ibm.ejs.j2c.ConnectionManager.lazyEnlist(ConnectionManager.java:1881)
at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl.lazyEnlist(WSRdbManagedConnectionImpl.java:2219)
at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.beginTransactionIfNecessary(WSJdbcConnection.java:643)
... 67 more
Caused by:
com.ibm.ws.Transaction.IllegalResourceIn2PCTransactionException: Illegal attempt to enlist multiple 1PC XAResources
at com.ibm.ws.Transaction.JTA.RegisteredResources.enlistResource(RegisteredResources.java:416)
at com.ibm.ws.Transaction.JTA.TransactionImpl.enlistResource(TransactionImpl.java:3165)
at com.ibm.ws.Transaction.JTA.TranManagerSet.enlistOnePhase(TranManagerSet.java:441)
at com.ibm.ejs.j2c.LocalTransactionWrapper.enlist(LocalTransactionWrapper.java:585)


I am trying to access a DAO using Spring and Hibernate from an EJB SLSB (CMT). The database is on an iseries server and is DB2. The app server is WAS 6.1 The hibernate properties I am using:


<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.DB2400Dialect</prop>
<prop key="hibernate.connection.release_more">auto</prop>
<prop key="hibernate.connection.isolation">0</prop>
<prop key="hibernate.connection.autocommit">true</prop>
<!--
<prop key="hibernate.c3p0.minPoolSize">5</prop>
<prop key="hibernate.c3p0.maxPoolSize">20</prop>
<prop key="hibernate.c3p0.timeout">600</prop>
<prop key="hibernate.c3p0.max_statement">50</prop>
-->
<prop key="show_sql">true</prop>
<prop key="hibernate.format_sql">true</prop>
<prop key="hibernate.use_sql_comments">true</prop>

<prop key="current_session_context_class">org.hibernate.context.ThreadLocalSessionContext</prop>

<prop key="hibernate.current_session_context_class">jta</prop>
<prop key="hibernate.transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</prop>
<prop key="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.WebSphereExtendedJTATransactionLookup</prop>

</props>

Strangely this seems to happen for only one query ( Ihave included the code below):

Query qry = session.getNamedQuery(VinSearchItem.class.getName() + vinSearchQry)
.setString("companyCode", companyCode)
.setString("productType", productType)
.setString("dealerNo", dealerNo)
.setString("vinPart", "%" + vinPart);

List vins = qry.list();

All other queries work fine. Any feed back will be greatly appreciated. I am sure I am messing up on some configuration parameter.

Does the book address portal server aspects? I would like to find out about the features available in JBOSS (enterprise license), ease of configuration etc. Any comparisons between other portal servers would also be helpful.

ALSO-

Has anybody attempted migration from WPS to JBOSS. Seems like JBOSS is much cheaper than WPS. However, not sure about the tech support aspects. Also, I am looking at some stats for server startup, compatibility with RAD etc. Any links, articles would be very helpful
15 years ago
This is a shameless attempt at getting the book. Though I have a valid question. Any enhancements to the struts taglib for struts-el in struts 2?
16 years ago
Looking for recommendations on Spring and Hibernate training. Online or classroom based. Classroom - In the LA metro area. Thanks
Neal