maven webservice projet error


I imported one sample project as 'existing maven project'

I am getting below error in cxf-servlet.xml file

Description      Resource      Path      Location      Type
cvc-elt.1: Cannot find the declaration of element 'beans'.      cxf-servlet.xml      /wsdlfirstws/src/main/webapp/WEB-INF      line 5      XML Problem

CAn you please advise how to fix it
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mccarlIT Business Systems Analyst / Software DeveloperCommented:
Can you post the full cxf-servlet.xml file?
gudii9Author Commented:
it looks like below
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=""
	xmlns:xsi="" xmlns:jaxws=""
	xmlns:cxf="" xmlns:soap=""

	<jaxws:endpoint xmlns:customer=""
		id="customerOrders" address="/customerOrders" wsdlLocation="WEB-INF/wsdl/CustomerOrders.wsdl"
		serviceName="customer:CustomerOrdersService" implementor="">

			<cxf:logging />

Open in new window

mccarlIT Business Systems Analyst / Software DeveloperCommented:
Do you have Internet access from the machine that you are getting the error on? It's seems that Eclipse can't get the XSD file that defines "beans" element.

Also, is it possible that this is just an Eclipse issue? Have you tried running the application anyway? Spring has alternative ways of getting the definitions that don't require Internet access.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

gudii9Author Commented:
i do have internet access.  Not sure if eclipse issue. I will try running and see if it runs later
mccarlIT Business Systems Analyst / Software DeveloperCommented:
Does your Internet access require you to connect through a proxy? If so, you would need to set that up explicitly in Eclipse.
gudii9Author Commented:
i have to clean build restart eclipse for few time which fixed the issue. I think I also added servlet jar in pom.xml
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.