Suhas Madap

Ranch Hand
+ Follow
since Aug 29, 2006
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 Suhas Madap

Jeanne Boyarsky wrote:Suhas,
What would it mean to do that? An ear file doesn't have loose classes in it.



Hi Jeanne,

To be more precise with my query, there is a concept of JEE/shared library (http://docs.oracle.com/cd/E11035_01/wls100/programming/libraries.html#wp1064823) & is supported by most of application servers. By leveraging JEE library, we no need to bundle common code or any war application or EJB component as part of your application or EAR. Instead we can just use <library-ref> element in deployment descriptors, provided components are deployed as shared library.

Referring an .ear or .war or .jar from a enterprise application is straight forward, but it's not that straight forward when we've scenario to refer an .jar or .ear file from a web application.

so just want to get an expertise advice on possibility of referring a .jar or .ear from a web application.
Hi,

Is there anyway to refer an Enterprise Archive as JEE library from a web application deployed in weblogic application server?
Hi,

I'm getting error while doing a JNDI look-up of another EJB which is deployed as part of another EAR from a EJB method.

ConverterBean and it's Interface are package Converter-EJB.jar which is deployed as Converter-App.ear.
TaskServiceBean, it's Remote interface are package Task-EJB.jar which is deployed as Task-App.ear

Here is my sample EJB:

ConverterBean:



ConverterService.java:



ejb-jar.xml:


weblogic-ejb.xml:


Client program:



First, I tried final String EJB_REF_LOOK_UP = "java:comp/env/ejb/TaskServiceBean";

[b]Exception:[/b]
Context lookup for bean is failed com.suhas.madap.ejb.ConverterService, invokeTaskService method
javax.naming.NameNotFoundException: While trying to look up comp/env/ejb/TaskServiceBean in /app/ejb/converter-ejb.jar#ConverterBean.; remaining name 'comp/env/ejb/TaskServiceBean'


second, final String EJB_REF_LOOK_UP = "ejb/TaskServiceBean";

[b]Exception:[/b]
Context lookup for bean is failed com.suhas.madap.ejb.ConverterService, invokeTaskService method
javax.naming.NameNotFoundException: Unable to resolve 'ejb.TaskServiceBean'. Resolved 'ejb'; remaining name 'TaskServiceBean'
at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)


Any pointers to resolve this issue will be very helpful.
Hi Jeff,

Thanks a lot!! for the explanation. This was just an experimental to understand JVM behavior. I completely agree with you, it would be a rarest use-case where sub thread will not override run().
Hi,

May I know whether JVM creates a native thread or not, when SubThread doesn't override run()? Any explanation related to behavior of JVM for the below code is appreciated.

Sub Thread Class with Out run()


Main Class


Thanks in advance,
Suhas Madap.
Hi David,
I built this app as a war file and structure of war file is something like this:

> images
> META-INF
> scripts --> contains javascript files
> stylesheets --> contains .css files
> WEB-INF
|
|__ classess
|
|__lib
|
|__ templates (contains .xsl files)
|
|__ struts-config.xml (has an entry "<plug-in className="com.oroad.stxx.plugin.StxxPlugin">
| <set-property property="pipeline-config" value="/WEB-INF/stxx-transforms.xml"/> </plug-in>)
|
|__ stxx-transforms.xml (is responsible for loading templates )
|
|__ web.xml (contains an entry to load stxx related classes <init-param>
<param-name>stxxInit</param-name>
<param-value>/stxx.properties</param-value>
</init-param>)


stxx-transforms.xml:

<?xml version="1.0" encoding="UTF-8"?>
<transform-definitions>
<pipeline match="*Request.dox">
<transform type="html">
<param name="path" value="/WEB-INF/templates/{1}Request.xsl"/>
</transform>
</pipeline>
<pipeline match="*Response.dox">
<transform type="html">
<param name="path" value="/WEB-INF/templates/{1}Response.xsl"/>
</transform>
</pipeline>
</transform-definitions>

The same application works fine in Apache tomcat server. The issue is only when I deploy (will be successful) this app and try to access it.
Hi David,
I'm not sure whether it's a struts framework or weblogic issue. As far as what I understand from stacktrace is when an action class is trying to resolve or load XSLT file, it's unable to get reference to a Template and null is passed to stxx related classes that is why there is a NullpointerExecption. So I need how to make this stuff work in weblogic.
Hi,
I see a problem related to struts application which uses XSL files for transformation, problem is when I deploy application (war file) in weblogic 10.3 It's getting deployed with success, but when I perform an action which is related to execution of XSL files. It throws a NullPointerException. The same application works fine in Tomcat 6.0. Please help me out in debugging this issue.

Stacktrace of weblogic:

Oct 26, 2009 5:36:31 PM com.oroad.stxx.transform.document.SAXDocumentBuilder init
INFO: Using serializer class com.oroad.stxx.transform.document.DefaultSAXSerializer
Oct 26, 2009 5:36:31 PM com.oroad.stxx.transform.document.SAXDocumentBuilder init
INFO: Using serializer class com.oroad.stxx.transform.document.DefaultSAXSerializer
Oct 26, 2009 5:36:31 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.actions.LocalStrings', returnNull=true
Oct 26, 2009 5:36:31 PM com.oroad.stxx.transform.AbstractXSLTransformer getTemplates
SEVERE: Exception in creating Transform Handler
java.lang.NullPointerException
at java.io.File.<init>(File.java:222)
at com.oroad.stxx.transform.AbstractXSLTransformer.getTemplates(AbstractXSLTransformer.java:138)
at com.oroad.stxx.transform.AbstractXSLTransformer.loadHandlers(AbstractXSLTransformer.java:258)

at com.oroad.stxx.transform.CachedXSLTransformer.transform(CachedXSLTransformer.java:180)
at com.oroad.stxx.transform.TransformerHandler.processActionTransform(TransformerHandler.java:203)
at com.oroad.stxx.plugin.RequestProcessorHelper.processStxxDefinition(RequestProcessorHelper.java:260)
at com.oroad.stxx.plugin.StxxRequestProcessor.processForwardConfig(StxxRequestProcessor.java:133)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Oct 26, 2009 5:36:31 PM com.oroad.stxx.transform.TransformerHandler processActionTransform
WARNING: Unable to transform
com.oroad.stxx.transform.TransformerException: Unable to retrieve template null
at com.oroad.stxx.transform.AbstractXSLTransformer.loadHandlers(AbstractXSLTransformer.java:260)
at com.oroad.stxx.transform.CachedXSLTransformer.transform(CachedXSLTransformer.java:180)

at com.oroad.stxx.transform.TransformerHandler.processActionTransform(TransformerHandler.java:203)
at com.oroad.stxx.plugin.RequestProcessorHelper.processStxxDefinition(RequestProcessorHelper.java:260)
at com.oroad.stxx.plugin.StxxRequestProcessor.processForwardConfig(StxxRequestProcessor.java:133)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Oct 26, 2009 5:38:08 PM com.oroad.stxx.transform.AbstractXSLTransformer getTemplates
SEVERE: Exception in creating Transform Handler
java.lang.NullPointerException
at java.io.File.<init>(File.java:222)
at com.oroad.stxx.transform.AbstractXSLTransformer.getTemplates(AbstractXSLTransformer.java:138)
at com.oroad.stxx.transform.AbstractXSLTransformer.loadHandlers(AbstractXSLTransformer.java:258)
at com.oroad.stxx.transform.CachedXSLTransformer.transform(CachedXSLTransformer.java:180)
at com.oroad.stxx.transform.TransformerHandler.processActionTransform(TransformerHandler.java:203)
at com.oroad.stxx.plugin.RequestProcessorHelper.processStxxDefinition(RequestProcessorHelper.java:260)
at com.oroad.stxx.plugin.StxxRequestProcessor.processForwardConfig(StxxRequestProcessor.java:133)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Oct 26, 2009 5:38:16 PM com.oroad.stxx.transform.TransformerHandler processActionTransform
WARNING: Unable to transform
com.oroad.stxx.transform.TransformerException: Unable to retrieve template null
at com.oroad.stxx.transform.AbstractXSLTransformer.loadHandlers(AbstractXSLTransformer.java:260)
at com.oroad.stxx.transform.CachedXSLTransformer.transform(CachedXSLTransformer.java:180)
at com.oroad.stxx.transform.TransformerHandler.processActionTransform(TransformerHandler.java:203)
at com.oroad.stxx.plugin.RequestProcessorHelper.processStxxDefinition(RequestProcessorHelper.java:260)
at com.oroad.stxx.plugin.StxxRequestProcessor.processForwardConfig(StxxRequestProcessor.java:133)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
<Oct 26, 2009 5:42:21 PM GMT+05:30> <Warning> <netuix> <BEA-423420> <Redirect is executed in begin or refresh action. Redirect url is /console/console.portal.>
<Oct 26, 2009 5:49:30 PM GMT+05:30> <Warning> <netuix> <BEA-423420> <Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nf
pb=true&_pageLabel=HomePage1.>
<Oct 26, 2009 5:49:30 PM GMT+05:30> <Error> <HTTP> <BEA-101020> <[weblogic.servlet.internal.WebAppServletContext@50d7c5 - appName: 'consoleapp', name: 'console',
context-path: '/console', spec-version: '2.5'] Servlet failed with Exception
java.lang.IllegalStateException: Response already committed
at weblogic.servlet.internal.ServletResponseImpl.objectIfCommitted(ServletResponseImpl.java:1553)
at weblogic.servlet.internal.ServletResponseImpl.sendRedirect(ServletResponseImpl.java:838)
at javax.servlet.http.HttpServletResponseWrapper.sendRedirect(HttpServletResponseWrapper.java:136)
at com.bea.netuix.nf.HttpServletResponseWrapper.sendRedirect(HttpServletResponseWrapper.java:50)
at com.bea.netuix.servlets.controls.content.NetuiContent.handleRedirect(NetuiContent.java:234)
Truncated. see log file for complete stacktrace
>
Hi Samir,
Thanks a lot, your response logically make sense. Even I felt the same.
14 years ago
[color=violet]Hi,
As we know that equals() and compareTo() is used to evaluate String Object is equal or same, my question here is "Which one is better choice when it comes to performance and why?"

Note: This question is keeping in context of String class
[/color]
14 years ago
Hi,
Please provide guidance, we've a requirement i.e. to portray a tree or binary-tree from a XML. XML will be our input and we've to construct/visualization in the form of a Tree or Binary-Tree using Java. Please provide some direction like what framework can be used to achieve the same.

eg:
Input:-
<?xml version="1.0" encoding="UTF-8"?>
<Parent>
<Child1>Children1</Child1>
<Child2>Children2</Child2>
</Parent>

Expected Output:-
Please find Attachment
14 years ago
Hi,
It'll be very helpful if some one can provide resolution to below issue:
javax.jms.JMSSecurityException: MQJMS2008: failed to open MQ queue FUSIONQA.FBSVCS.FUSIONROUTER.REQ
at com.ibm.mq.jms.MQQueueServices.getQueueOpenException(MQQueueServices.java:423)
at com.ibm.mq.jms.MQQueueServices.getOutputQueue(MQQueueServices.java:354)
at com.ibm.mq.jms.JMSServicesMgr.getOutputQueue(JMSServicesMgr.java:145)
at com.ibm.mq.jms.MQSession.createQSender(MQSession.java:6359)
at com.ibm.mq.jms.MQQueueSession.createSender(MQQueueSession.java:240)
at My_MQ_MsgProducer.initializeSession_send(My_MQ_MsgProducer.java:137)
at My_MQ_MsgProducer.connectMQ2(My_MQ_MsgProducer.java:122)
at My_MQ_MsgProducer.main(My_MQ_MsgProducer.java:37)

Let me give some background about the issue, I'm using a java client trying to connect to WMQ using WMQ & JMS API. I'm getting this error exactly QueueSender mqSender = session.createSender(mqQueue);.
15 years ago
Hi,
Please help in learning messaging concepts? So need some information merits and demerits of using JMS and Websphere MQ?
Hi,
Please help me out in understanding quick difference between xmlns and targetNameSpace attributes in a schema?
Hi,
Please help me in writing the a stand alone SSL webservices client. What I want to do within it are as follows:

1) I want to add/load the certificates.
2) verify & validate the certificate received from the server.
3) then i want to call the exposed services (I knew this).

Thank you,