Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340723 - EclipseLink DBWS does not provide details on eclipselink-dbws-sessions.xml load failure
Summary: EclipseLink DBWS does not provide details on eclipselink-dbws-sessions.xml lo...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-23 00:38 EDT by Evgeny CLA
Modified: 2022-06-09 10:24 EDT (History)
2 users (show)

See Also:


Attachments
Exception trace (3.01 KB, text/x-log)
2011-03-23 00:41 EDT, Evgeny CLA
no flags Details
Deployment generated for WebLogic (6.01 KB, application/octet-stream)
2011-03-24 03:17 EDT, Evgeny CLA
no flags Details
Standalone package (3.62 KB, application/x-java-archive)
2011-03-24 03:17 EDT, Evgeny CLA
no flags Details
Proposed fix. (2.57 KB, patch)
2011-06-22 11:48 EDT, David McCann CLA
no flags Details | Diff
Supporting test cases. (11.43 KB, patch)
2011-06-22 11:48 EDT, David McCann CLA
no flags Details | Diff
Proposed fix v2 (use statics from SessionLog for log levels) (3.85 KB, patch)
2011-06-23 11:41 EDT, David McCann CLA
no flags Details | Diff
Supporting test cases. (11.65 KB, patch)
2011-06-23 11:41 EDT, David McCann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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