maven webservice projet error

Hi,

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
LVL 7
gudii9Asked:
Who is Participating?
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?
0
gudii9Author Commented:
it looks like below
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws"
	xmlns:cxf="http://cxf.apache.org/core" xmlns:soap="http://cxf.apache.org/bindings/soap"
	xsi:schemaLocation="http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://cxf.apache.org/bindings/soap http://cxf.apache.org/schemas/configuration/soap.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">


	<jaxws:endpoint xmlns:customer="http://trainings.ws.test.com/"
		id="customerOrders" address="/customerOrders" wsdlLocation="WEB-INF/wsdl/CustomerOrders.wsdl"
		serviceName="customer:CustomerOrdersService" implementor="com.test.ws.trainings.impl.CustomersOrdersWSImpl">
	</jaxws:endpoint>


	<cxf:bus>
		<cxf:features>
			<cxf:logging />
		</cxf:features>
	</cxf:bus>
</beans>

Open in new window

0
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.
0

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
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

gudii9Author Commented:
i do have internet access.  Not sure if eclipse issue. I will try running and see if it runs later
0
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.
0
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
0
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
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.