Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 340723

Summary: EclipseLink DBWS does not provide details on eclipselink-dbws-sessions.xml load failure
Product: z_Archived Reporter: Evgeny <forrestline>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: david.mccann, michael.norman
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Exception trace
none
Deployment generated for WebLogic
none
Standalone package
none
Proposed fix.
none
Supporting test cases.
none
Proposed fix v2 (use statics from SessionLog for log levels)
none
Supporting test cases. none

Description Evgeny CLA 2011-03-23 00:38:21 EDT
Build Identifier: 2.2.0

I'm unable to deploy Eclipselink DBWS package with an error message:

Exception Description: Could not locate file [eclipselink-dbws-sessions.xml]

The mentioned file is available in META-INF directory of the war. 

When I checked the source code I have noticed that RuntimeException from the load() function is not reported in anyway or form.

It should be logged somehow to provide additional insight into why it is failing.
 


Reproducible: Always

Steps to Reproduce:
1. Prepare a standalone .jar using DBWSBuilder utility
2. Run the application  
3. Receive the above mentioned error
Comment 1 Evgeny CLA 2011-03-23 00:41:23 EDT
Created attachment 191720 [details]
Exception trace
Comment 2 Mike Norman CLA 2011-03-23 12:09:53 EDT
Evgeny:

I looked at the exception trace and it shows in XRServiceFactory (line ~226)
the specific DBWSException for the above situation ("Could not locate file").
What app server are you deploy the Web service to? 

Could you attach the jar file as well as the dbws-builder.xml file?

Thanks in advance,
Mike Norman
Comment 3 Evgeny CLA 2011-03-24 03:16:04 EDT
I have tried :

Weblogic 10.3.0  (wls options)
JBoss 5.1.0      (jboss option)
Standalone       (javase option)

I have a feeling that a dependency might be missing or something else that prevents 

{{{
try {

       found = loader.load(sessionManager, projectLoader);

}

catch (RuntimeException e) { /* ignore */

}

from working out correctly. Yet the  RuntimeException is suppressed.

Attaching WebLogic .WAR and the standalone .JAR.
Comment 4 Evgeny CLA 2011-03-24 03:17:00 EDT
Created attachment 191806 [details]
Deployment generated for WebLogic
Comment 5 Evgeny CLA 2011-03-24 03:17:50 EDT
Created attachment 191807 [details]
Standalone package
Comment 6 Mike Norman CLA 2011-03-28 14:04:20 EDT
Evgeny:

The root-cause is the <property name="logLevel">DEBUG</property> -
DEBUG is not one of the accepted values:
off, severe, warning, info, config, fine, finer, finest, all

However, you are right - this fact is 'swallowed-up' by the logic
in 'loader.load(sessionManager, projectLoader)' and all we get is
'cannot locate eclipselink-dbws-sessions.xml' which isn't quite true.

If it is alright by you, I'll use this bug to track this issue, ok?

Mike Norman
Comment 7 Evgeny CLA 2011-03-29 03:16:21 EDT
Thanks a lot for the solution!

And, of cause, use the bug as you please.
Comment 8 David McCann CLA 2011-06-22 11:48:28 EDT
Created attachment 198414 [details]
Proposed fix.
Comment 9 David McCann CLA 2011-06-22 11:48:41 EDT
Created attachment 198415 [details]
Supporting test cases.
Comment 10 David McCann CLA 2011-06-23 11:41:04 EDT
Created attachment 198476 [details]
Proposed fix v2 (use statics from SessionLog for log levels)
Comment 11 David McCann CLA 2011-06-23 11:41:22 EDT
Created attachment 198477 [details]
Supporting test cases.
Comment 12 David McCann CLA 2011-06-23 11:52:49 EDT
Reviewed by:  michael.norman@oracle.com
Tests: n/a
Revision: 9612
Comment 13 David McCann CLA 2011-06-23 11:55:50 EDT
Ignore previous commit comments!

Reviewed by:  michael.norman@oracle.com
Tests:  dbws/testing/loglevelvalidation/LogLevelValidationTestSuite; all unit tests pass as expected
Revision: 9613
Comment 14 David McCann CLA 2011-06-23 11:59:46 EDT
Ignore this!
(In reply to comment #12)
> Reviewed by:  michael.norman@oracle.com
> Tests: n/a
> Revision: 9612
Comment 15 David McCann CLA 2011-06-23 12:09:02 EDT
Note that our resolution of this issue only addresses the DBWS builder portion, not the runtime.  Bug 350164 (DBWS: Better runtime validation and error handling required) has been opened to track changes to the DBWS runtime.
Comment 16 Eclipse Webmaster CLA 2022-06-09 10:24:30 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink