473,433 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,433 software developers and data experts.

JAXB @xmlSchema and package-info.java error

I have a java object such as:

Expand|Select|Wrap|Line Numbers
  1. @XmlSchema(namespace="http://www.testws.com")
  2. package org.test;
  3.  
  4. public class XmlObj{
  5. ............
  6. }
  7.  
But from Eclipse, I am getting error:
Package annotations must be in file package-info.java

I created a file named "package-info.java" and put
the following lines in the package-info.java file:

@XmlSchema(namespace="http://www.testws.com")
package org.test;

Note: My package-info.java file is in the org.test package.

I would be glad, if someone kindly help me in the issue
Jul 20 '10 #1
0 2248

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: GiiO | last post by:
i am having this error when trying to run: Problem reading Threatalerts.txt what could be my problem ? where the file Threatalerts.txt should be stored? this is my code
3
by: John E. | last post by:
Recently I've been getting the following message when I visit different sites: "Internet Explorer can not open this helper application for...
1
by: C.O.Jones | last post by:
Using Oracle 8.1.7 Personal edition on Windows XP. I was experimenting with the DBA tools. I first of all tried to adjust the memory used by my database. Then I attempted to shutdown and...
1
by: Maansi Sanghi | last post by:
Hello, I am trying to write an xsd file using .NET System.Xml.Sxhema Class Library. (1) I get an error while writitng if the XSD has a taregetnamespace. (II) for any xsd with no...
5
by: Mark D Smith | last post by:
Hi anyone know what the java error is on this page? http://www.s-nta.org.uk/index.html Mark
5
by: SamirM | last post by:
i am new to java. i am having trouble running some of my codes. Can someone tell me why i am getting "I/O Exception while Reading, Connection refused", message.?
8
by: AnnetteB | last post by:
I have a main java class named MainFrame in a project with another class named Buttons, which is called from MainFrame. The project is called pol2 but I keep getting this error message when I...
10
by: Kid Programmer | last post by:
Hello. I have been having problems using pico to develop java programs. I used all the commands in a tutorial I read saying open up terminal and type: cd mkdir java cd java pico and I type...
3
by: bballpitcher65 | last post by:
ok...i have a very large program, but i keep getting this error.Exception in thread "main" java.lang.NullPointerException at flightlog.Totals.importFiles(Totals.java:29) at...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.