cancel
Showing results for 
Search instead for 
Did you mean: 

Checling the exception for Java code

Former Member
0 Kudos

Hi,

I am using SAP EP 6.0 WAS 6.20

I have a java code which tries to get initial context

try

{

//try{

Properties p = new Properties();

p.put(Context.INITIAL_CONTEXT_FACTORY, "com.inqmy.services.jndi.InitialContextFactoryImpl");

//p.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.InitialContextFactoryImpl");

p.put(Context.PROVIDER_URL, "137.72.229.238:50004");

p.put(Context.SECURITY_PRINCIPAL, "Administrator");

p.put(Context.SECURITY_CREDENTIALS, "password");

Context ctx = (Context) new InitialContext(p);

Object objRef = ctx.lookup("SAPEPUMEBean");

UMEEJBHome ejbHome = (UMEEJBHome)objRef ;

objUMEBean = ejbHome.create();

}

}catch(NamingException namingEx)

{

{

}

This code throws a naming exception.

I wanted to know in which file this exception stacktrace will be present .

Regards

Manoj

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Roelof,

Thanks for the response.

I could not find the file .

Please note i am using the SAP EP 6.0 SP2 WAS 6.20 Engine.

I logged onto the visual Admin tool.

But i could not see any log after selecting the options

Former Member
0 Kudos

Hi,

On the filesystem look in folder:

C:\usr\sap\XXX\XXX\j2ee\cluster\server\log

In Visual Administrator:

Open server node, services, Log viewer.

In the right panel open Server node, select path (C:\usr\sap\XXX\XXX\j2ee\cluster\server\log).

Good luck,

Roelof

Former Member
0 Kudos

Hi,

It will probably be able to find it in defaultTrace.trc.

You can access this file using the visual administrator, Log Viewer.

Good luck,

Roelof