cancel
Showing results for 
Search instead for 
Did you mean: 

Problem add library in StandardApplicationReferences

Former Member
0 Kudos

Hi,

I created & deployed a library with some jars that I want to be loaded first.

In provider.xml of the library, I have

<component-name>KMCJaxp</component>

<provider-name>mycompany.com</provider-name>

Then, in Visual Admin - Services - Classloader viewer - Libraries, I can see the library with mycompany.comKMCJaxp as its Library name. Then, in Deploy - StandardApplicationReferences, if I add library:mycompany.comKMCJaxp, after restart J2EE server, a NullPointerException will be thrown when access http://host:port/irj/portal. If I write as library:KMCJaxp, it's fine, but has no use - there's no library named KMCJaxp, only mycompany.com~KMCJaxp.

So what might be the problem?

Thanks,

Ray

Accepted Solutions (1)

Accepted Solutions (1)

Sigiswald
Contributor
0 Kudos

Hi Ray,

Indeed, <i>library:mycompany.com~KMCJaxp</i> is correct. Can you give the NullPointerException stacktrace?

Kind regards,

Sigiswald

Former Member
0 Kudos

Hi Sigiswald,

Sorry I don't know where to get the stack trace.. defaultTrace.0.trc is too big to figure out:)

Short message: when calling http://host:port/irj/portal, just a NullPointerException; when calling other URL, it says Dispatcher is not instantized.

Any idea now?

Thanks,

Ray

Sigiswald
Contributor
0 Kudos

If possible, stop the server, delete the trace file, start the server, access /irj/portal and check the trace file for the NullPointerException. It can't be that hard to find.

On the other hand, if you access /irj/portal and a NullPointerException is thrown, it's appended at the end of the trace file. So it shouldn't be that hard to find either, even if the trace file is very large.

BTW, when you modified <i>StandardApplicationReferences</i> in Visual Administrator, I assume you didn't remove the items that were already present? You just added your own application reference?

Kind regards,

Sigiswald

Former Member
0 Kudos

Hi,

Thanks, I've looked at the trace, and it reported many ClassNotFoundException:)

But it's OK on another EP. So I gues maybe I need patch my EP.

I am using NW04 SP16 Full Java Edition (90-day trial). Do you know where can I get SP for this?

Thanks,

Ray

Sigiswald
Contributor
0 Kudos

No patches for sneak previews I'm afraid...

The ClassNotFoundExceptions don't apply to your own library?

Kind regards,

Sigiswald

Vlado
Advisor
Advisor
0 Kudos

Hi Ray,

All trial and preview versions can be downloaded from <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cfc19866-0401-0010-35b2-dc8158247fb6">here</a>. However, in order to apply a Support Package Stack you need an account for service.sap.com. Then you can download from <a href="https://service.sap.com/patches">https://service.sap.com/patches</a>. And this does not apply to trial versions, I'm afraid.

Best regards,

Vladimir

PS: And just to confirm - <i>library:mycompany.com~KMCJaxp</i> would be the correct name of the reference.

Message was edited by:

Vladimir Pavlov

Answers (0)