Ticket #82 (closed task: fixed)

Opened 2 years ago

Last modified 22 months ago

Server certificate test: Weblogic

Reported by: Jani Laakso Owned by: Jani Laakso
Priority: major Milestone: 4.0.0
Component: Testing Version: 4.0.0-beta1
Keywords: Cc:
Known Issue description:
Hours estimate: 1 Deadline (dd.mm.yyyy):
Known Issue version (since): Known Issue title:
Hours done: Depends to: 422
Affects documentation: no
Known Issue workaround:
Affects release notes: Contract:

Description (last modified by Jani Laakso) (diff)

  • create environment
  • install test
  • simple functionality test (ad hoc: manual feature browser usage)

Note: may be tested before final product (Release Candidate), if time then this testing is repeated (should take less than hour).

Attachments

BEA WebLogic test - Error screen with Features.bmp (1.4 MB) - added by Jarno Kelanne 23 months ago.
BEA WebLogic test - Error screen with Hello.bmp (1.4 MB) - added by Jarno Kelanne 23 months ago.

Change History

Changed 2 years ago by Jani Laakso

  • description modified (diff)
  • milestone changed from Release 4.0.0-beta to Release Candidate 4.0.0-beta

Changed 2 years ago by Jani Laakso

  • status changed from new to assigned

Changed 2 years ago by Joonas Lehtinen

  • milestone changed from 4.0.0-beta-1 to 4.0.0

Changed 2 years ago by Jani Laakso

  • owner changed from Jani Laakso to Jarno Kelanne
  • status changed from assigned to new
  • version changed from 4.0.0-alpha to 4.0.0-beta1
  • affects_documentation unset

Changed 2 years ago by Jani Laakso

  • depends_to set to 422

Changed 2 years ago by Jani Laakso

  • summary changed from Test with Weblogic to Server certificate test: Weblogic

Changed 23 months ago by Jarno Kelanne

Changed 23 months ago by Jarno Kelanne

Changed 23 months ago by Jarno Kelanne

Index.html


Success.

Features demo


Failed with java exception (see. attachment Bea WebLogic? test - Error screen with Features.bmp)

Hello demo


Failed with java exception (see. attachment Bea WebLogic? test - Error screen with Hello.bmp)

Calculator demo


Success.

Test environment: - Windows Server 2003 - Java 1.5.0_11 - Bea WebLogic? 9.2

Changed 23 months ago by Jani Laakso

  • owner changed from Jarno Kelanne to Jani Laakso

I'll debug this.

Changed 23 months ago by Jani Laakso

FAILED:

  • index.html OK
  • Feature Browser FAIL
  • Calculator OK
  • HelloWorld? OK

Changed 23 months ago by Jani Laakso

beta2 used.

Changed 23 months ago by Jani Laakso

Found solution for weblogic (and possibly other AS's aswell).

Do NOT use

  • getServletContext().getRealPath()

Please use either

  • getServletContext().getResource()
  • getServletContext().getResourceAsStream()

Based on Servlet 2.3 specification getServletContext().getRealPath() : "This method returns null if the servlet container cannot translate the virtual path to a real path for any reason (such as when the content is being made available from a .war archive)."

So, basically this is an limitation on various application servers. Changing getServletContext().getRealPath() into getServletContext().getResource().getFile() should fix this issue.

Changed 23 months ago by Jani Laakso

  • hours_left changed from 7 to 1

Fixed in [783], may fix other Application Server issues too.

Changed 23 months ago by Jani Laakso

PASSED:

  • index.html OK
  • Feature Browser OK
  • Calculator OK
  • HelloWorld? OK

Changed 23 months ago by Jani Laakso

When running tests,

Ensure that logs are OK under

/bea/weblogic92/samples/domains/wl_server/servers/examplesServer/logs
access.log
examplesServer.log
wl_server.log

and the console that started Weblogic AS examplesServer

  • Toolkit warnings and exceptions are located here
  • Ensure that license tag is displayed here when starting any Toolkit application

Changed 22 months ago by Jani Laakso

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.