You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ax...@ws.apache.org on 2004/10/08 07:55:51 UTC

[jira] Commented: (AXIS-1504) java package problem - a class could not be referenced via the packagename

The following comment has been added to this issue:

     Author: Jayachandra Sekhara Rao Sunkara
    Created: Thu, 7 Oct 2004 10:54 PM
       Body:
You only imported weather.*;
This I think will not import files with package prefix weather.Calendar

Thats the reason CalendarFunctions is not getting recognised.

Thanks
Jayachandra
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1504?page=comments#action_53827

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1504

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1504
    Summary: java package problem - a class could not be referenced via the packagename
       Type: Bug

     Status: Unassigned
   Priority: Trivial

    Project: Axis
   Versions:
             1.2 Beta

   Assignee: 
   Reporter: Alexander Sowatsch

    Created: Wed, 11 Aug 2004 5:01 AM
    Updated: Thu, 7 Oct 2004 10:54 PM
Environment: netbeans 3.6, tomcat 5.0.19, j2sdk1.4.2_04

Description:

an axis webservice returns a complex type for example WeatherReport;

the problem was that a "Helper" - Class for example

de.myFirmName.webservice.axis.weather.myCalendar.CalendarFunctions;

couldnt be referenced via the package name.
if i used it like this way, to generate an object of WeatherReport:

import de.myFirmName.webservice.axis.weather.*;
...
myCalendar.CalendarFunctions.getActualDate();

the axis webservice throws an "Invocation target Exception"

i had to import the class like this:
import de.myFirmName.webservice.axis.weather.myCalendar.CalendarFunctions;

....

CalendarFunctions.getActualDate();

then it worked ...


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira