Praveen Kumar Jayaram

Ranch Hand
+ Follow
since Jul 14, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Praveen Kumar Jayaram

As I mentioned at this time I do not have JRF libraries packaged with the WLS build.
10 years ago
Hi

I am working on a Dev build version of WebLogic server where the libraries in modules folder are not completely available yet..

So I've tried using libraries from 11g version for oracle.adf.share_11.1.1/ adf-share-support.jar for class oracle.adf.share.security.authentication.AuthenticationServlet.

But even after setting WEBLOGIC_CLASSPATH in oracle_common/common/bin/commEnv.sh, above mentioned class is not loaded and throws below error -

java.lang.NoClassDefFoundError: Could not initialize class oracle.adf.share.security.authentication.AuthenticationServlet

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:408)

at java.lang.Class.newInstance(Class.java:433)

at weblogic.servlet.internal.WebComponentContributor.getNewInstance(WebComponentContributor.java:252)

at weblogic.servlet.internal.WebComponentContributor.getNewInstance(WebComponentContributor.java:245)

at weblogic.servlet.internal.WebComponentContributor.createServletInstance(WebComponentContributor.java:274)

at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.newServletInstanceIfNecessary(StubSecurityHelper.java:357)

at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:309)

at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:286)

at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

Adding other libraries like JRF works by following above approach works. Am not sure what is wrong or missing here?

As a few alternative approaches tried adding the oracle.adf.share_11.1.1/ adf-share-support.jar to WLS ext directory and domain's lib directory..both the ideas did not work.

Kindly suggest.

Thank you.
10 years ago
Thanks for the clarification and the alternative approaches.
As I mentioned, the JVM would be launched by a 3rd party executable and hence I can't play around with the way how the JVM is launched.

Looks this is not achievable the way I expected. Marking the thread as closed.
12 years ago
Thanks for correcting me. You got it right!

I've a 3rd party executable which picks up the java options and classpath and launches JVM by passing those configured parameters.
So am looking for a standard approach supported by Java to use the system property defined using "-D" option, in classpath (using "-cp" option).
Is there any standard approach?
12 years ago
Thanks for all the responses.

Actually, in my scenario I've these (classpath, java options) in a configuration file. Sorry for the confusion.
My question was, is there a way to use the environment variable provided using '-D' option to java process in other option like '-cp' for classpath?

Sample configuration:

# A env var declared here
JAVA_OPTIONS=-Dtest.path="D:/Test"

# Above created env var is used in classpath
CLASSPATH=$test.path/lib/test.jar

Assumption is another process or executable reads the configuration and launches JVM by passing the Java options & classpath configured above.
12 years ago
Hi,

Is there a way to use Java environment variable in classpath in the following manner?

java -Dtest.path="D:/testing" -cp ${test.path}/lib/test.jar

I understand we can use already declared system environment variables like Path in classpath. But I'm looking for the environment variable used by "-D" option.
Kindly let me know if this is possible.
12 years ago
Hello,

I'm trying to consume a SharePoint web service deployed on IIS remotely and facing some authorization issues.
I have set the NTLM credentials and able to access SharePoint built-in web services like Lists, Search, Web, etc. But the problem is in accessing the custom WCF service using object model classes, as it throws FileNotFoundException. SharePoint reports FileNotFoundException even if the users doesn't have necessary permission.
The same custom WCF service can be consumed successfully locally without any issues.

Though this is not place to ask help for SharePoint related queries. Someone would've faced similar issues while integrating Java and SharePoint.
Please find the code below to configure the NTLM credentials:



Kindly throw some light if any had faced similar issues. Any help would be appreciated.
13 years ago

Kindly someone throw light on this issue.

Thanks in advance.
13 years ago
Hello,

I am trying to call a SharePoint web service from Java using dynamic invocation procedure. But am not sure how to plugin NTLM to this piece of code.
I have done this successfully by creating stub (Axis 2) but this requires many jar dependencies. Hence to reduce the dependency, am trying DII methodology.

Not finding a way because NTLM auth is set on stub usually and don't have any stub in DII.
Kindly suggest me a way to use NTLM authentication with this, (please find the code below)





Above piece of code gives error: (401) Unauthorized

Meanwhile I tried another technique by using Apache Commons HttpClient (by calling getMethod)...But this gives me text/HTML response which would be rendered in browser.
Is there a way to call a specific method like Status() on web service??

I have pasted this code too,



Thanks a bunch in advance.
13 years ago
Hi

Am trying to access a SharePoint webservice from Axis2 Java client in Linux box.....
The code works fine in Windows but in Linux I get a Exception:

javax.xml.stream.XMLStreamException: Undeclared prefix 'soapenv' for element <soapenv:Envelope>
at com.ctc.wstx.stax.stream.BaseStreamWriter.throwOutputError(BaseStreamWriter.java:588)
at com.ctc.wstx.stax.WstxNsStreamWriter.writeStartOrEmpty(WstxNsStreamWriter.java:664)
at com.ctc.wstx.stax.WstxNsStreamWriter.writeStartElement(WstxNsStreamWriter.java:423)
at org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeStartElement(MTOMXMLStreamWriter.java:111)
at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeStartpart(OMSerializerUtil.java:275)
at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeStartpart(OMSerializerUtil.java:197)
at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:221)
at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:947)
at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:471)
at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:79)
... 32 more


Here is the code:




Any idea why this can happen?
15 years ago

How do you I find where thing are getting looped?
The program runs fine with JRE 1.6... When it is moved to JRE 1.5.0_12, faced so many jar dependencies.
After resolving all compile and run time dependencies I get the ProxyException when calling the .Net webservice

Any clues now?

Regards,
Praveen
15 years ago
Any clue for this issue?
Any issues in JRE 1.5.0_12 version???

Thanks in advance.
15 years ago