Saturday, 15 January 2011

java ee - Spring Example using STS 3.6.4 -


3.6.4 from the spring tool suite. I am trying to develop the Spring Project, I am STS

The new classpath XPLAP release seems to be missing the error in the main square on the Contex

When I'm trying to solve it, showing the STS Configurable BuildPath I see all the tutorials on YouTube Have added.

I have been using Java Junk version, OS Ubuntu, STS 3.6.4, listed Jar I have added the build pane

  / home / axxera / sts-bundle /pivotal-tc-server-developer-3.1.0.RELEASE/lib/aws-java-sdk-1.7 5.jar/HomexXtera/StussBundle/Private-TC-Services-Developer-1.1.0.RELEASE / lib / Com.springsource.org.apache.commons.beanutils-1.8.3.jar / home / axxera / STS-Bundle / Piran-TC-Server-Developer-3.1.0. RELEASE / lib / com.springsource.org.apache Commons.cli-1.2.0.jar / home / axxera / sts-bundle / decisive-tc-server-developer 3.1.0. Release / lib / com.springsource.org.apache.commons.codec-1.5.0.jar/home/axxera/sts-bundle/pivotal-tc-server-developer-3.1.0.RELEASE/lib/com.springsource Org .apache.commons.collections-3.2.1.jar/home/axxera/sts-bundle/pivotal-tc-server-developer-3.1.0.RELEASE/lib/com.springsource.org.apache.commons.configuration- 1.8 .0.jar /home/axxera/sts-bundle/pivotal-tc-server-developer-3.1.0.RELEASE/lib/com.springsource.org.apache.commons.digester-1.8.1.jar/home/Axxera / Sts-bundle / pivotal-tc-server-developer-3.1.0.RELEASE / lib / com.springsource.org.apache.commons.jxpath-1.3.0.jar / home / axxera / STS-bundle / decisive-TC -Server-Developer-3.1.0. RELEASE / lib / com.springsource.org.apache.commons.lang-2.6.0.jar/home/axxera/sts-bundle/pivotal-tc-server-developer-3.1. 0.RELEASE / lib / com.springsource.org.apache.commons.logging-1.1.1.jar /home/axxera/sts-bundle/pivotal-tc-server-developer-3.1.0.RELEASE/lib/com Springsource .org.bouncycastle.jce-1.46.0.jar/home/axxera/sts-bundle/pivotal-tc-server-developer-3.1.0.RELEASE/ Lib / com.springsource.org.bouncycastle.mail-1.46.0 .jar /home/axxera/sts-bundle/pivotal-tc-server-developer-3.1.0.RELEASE/lib/com.springsource.org.jdom- 1.0.0.jar / home / axxera / sts-bundle / pivotal -tc-server-developer-3.1.0.RELEASE / lib / commons-codec.1.6.jar / home / axxera / sts-bundle / decisive-TC-server-developer-3.1.0. RELEASE / lib / commons-logging -1.1.3.jar /home/axxera/sts-bundle/pivotal-tc-server-developer-3.1.0.RELEASE/lib/httpclient-4.3. 3.jar /home/axxera/sts-bundle/pivotal-tc-server-developer-3.1.0.RELEASE/lib/httpcore-4.3.2.jar/ home / axxera / sts-bundle / decisive-tc-server- Developer-3.1.0. RELEASE / lib / jackson-annotations-2.1.1.jar /home/axxera/sts-bundle/pivotal-tc-server-developer-3.1.0.RELEASE/lib/jackson-core-2.1. 1.jar / Home / Exxx / Stars- Bundle / Private- TC -Services-Developer-3.1.0.RELEASE / Lib / JACKSON-DISCANDIND-2.1.1.JEER / HOME / ANSENA / STS-Bundle / Pivotal-TC- Server-Developer-3.1.0. RELEASE / lib / joda-time-2.7.jar /home/axxera/sts-bundle/pivotal-tc-server-developer-3.1.0.RELEASE/lib/tc-runtime-instance- 3.1. 0.RELEASE.jar /home/axxera/Venkat/Libraries/org-apache-commons-logging.jar/home/axxera/Venkat/Libraries/org.springframework.context-3.0.4.RELEASE.jar/home/axxera/ Venkat / Library / Spring-Reference -4.1.5. RELEASE.jar / Homes / Xxara / Winkat / Libraries / Jäveve-Cypping -3.6.4.jar / Home / Xxra / Winkat / Library / Commons-Logging -1.2 / Commons- Logging -1.2.jar / home / xxara / winkat / libraries / commands- blogging1.2 / commons-logging1.2-javadoc.jar  

below is my code

Main Class

  Pack H com Kpring; Import org.springframework.context.ApplicationContext; Import org.springframework.context.support.ClassPathXmlApplicationContext; Public class main {public static zero main (string [] args) {classpathxml application contexct ap contex = new classpath xml application context ("beans. Xml"); }} Package com.spring; Public Spring SpringSmach {Zero Print Message () {System.out.println ("Hello World"); }}  

Beans. Xml:

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Bem xmlns = "http://www.springframework.org/schema/beans" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schema location = "http: // Www .springframework.org / schema / beans http://www.springframework.org/schema/beans/spring-beans.xsd"> & Lt; Bean id = "sample bin" category = "com.pring.pring sample" & gt; & Lt; / Bean & gt; & Lt; / Bean & gt;    

It looks like you spring-bean> . Download it and add it to your classpath.


No comments:

Post a Comment