• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unable to bind class path while execute the struts program

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi , Im very new to struts and trying to deploy my code but hitting the below error, Please kindy help.

Error(s) found in module 'StrutsExample'. Publish was cancelled. See "Problems" view for details.
The project cannot be built until build path errors are resolved at StrutsExample
Unbound classpath variable: 'M2_REPO/antlr/antlr/2.7.2/antlr-2.7.2.jar' in project 'StrutsExample' at StrutsExample
Unbound classpath variable: 'M2_REPO/commons-beanutils/commons-beanutils/1.8.0/commons-beanutils-1.8.0.jar' in project 'StrutsExample' at StrutsExample


Im using eclipse Indigo

weblogic server 12c.


My .classpath file

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry including="**/*.java" kind="src" path="src/main/java"/>
<classpathentry excluding="**/*.java" kind="src" path="src/main/resources"/>
<classpathentry kind="var" path="M2_REPO/antlr/antlr/2.7.2/antlr-2.7.2.jar" sourcepath="M2_REPO/antlr/antlr/2.7.2/antlr-2.7.2-sources.jar">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/commons-beanutils/commons-beanutils/1.8.0/commons-beanutils-1.8.0.jar" sourcepath="M2_REPO/commons-beanutils/commons-beanutils/1.8.0/commons-beanutils-1.8.0-sources.jar">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/commons-chain/commons-chain/1.2/commons-chain-1.2.jar" sourcepath="M2_REPO/commons-chain/commons-chain/1.2/commons-chain-1.2-sources.jar">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/commons-digester/commons-digester/1.8/commons-digester-1.8.jar" sourcepath="M2_REPO/commons-digester/commons-digester/1.8/commons-digester-1.8-sources.jar">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar" sourcepath="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4-sources.jar">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/commons-validator/commons-validator/1.3.1/commons-validator-1.3.1.jar" sourcepath="M2_REPO/commons-validator/commons-validator/1.3.1/commons-validator-1.3.1-sources.jar">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar" sourcepath="M2_REPO/junit/junit/3.8.1/junit-3.8.1-sources.jar">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/oro/oro/2.0.8/oro-2.0.8.jar" sourcepath="M2_REPO/oro/oro/2.0.8/oro-2.0.8-sources.jar">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/apache/struts/struts-core/1.3.10/struts-core-1.3.10.jar" sourcepath="M2_REPO/org/apache/struts/struts-core/1.3.10/struts-core-1.3.10-sources.jar">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/apache/struts/struts-taglib/1.3.10/struts-taglib-1.3.10.jar" sourcepath="M2_REPO/org/apache/struts/struts-taglib/1.3.10/struts-taglib-1.3.10-sources.jar">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="C:/Users/Vinoth/android-sdks/extras/google/gcm/samples/gcm-demo-appengine/lib/servlet-api-2.5.jar"/>
<classpathentry kind="lib" path="C:/Users/Vinoth/Desktop/struts-1.3.10-all.zip"/>
<classpathentry kind="lib" path="C:/Users/Vinoth/Desktop/struts-1.3.10-all/struts-1.3.10/lib/antlr-2.7.2.jar"/>
<classpathentry kind="lib" path="C:/Users/Vinoth/Desktop/struts-1.3.10-all/struts-1.3.10/lib/bsf-2.3.0.jar"/>
<classpathentry kind="lib" path="C:/Users/Vinoth/Desktop/struts-1.3.10-all/struts-1.3.10/lib/commons-beanutils-1.8.0.jar"/>
<classpathentry kind="lib" path="C:/Users/Vinoth/Desktop/struts-1.3.10-all/struts-1.3.10/lib/commons-chain-1.2.jar"/>
<classpathentry kind="lib" path="C:/Users/Vinoth/Desktop/struts-1.3.10-all/struts-1.3.10/lib/commons-digester-1.8.jar"/>
<classpathentry kind="lib" path="C:/Users/Vinoth/Desktop/struts-1.3.10-all/struts-1.3.10/lib/commons-fileupload-1.1.1.jar"/>
<classpathentry kind="lib" path="C:/Users/Vinoth/Desktop/struts-1.3.10-all/struts-1.3.10/lib/commons-io-1.1.jar"/>
<classpathentry kind="lib" path="C:/Users/Vinoth/Desktop/struts-1.3.10-all/struts-1.3.10/lib/commons-logging-1.0.4.jar"/>
<classpathentry kind="lib" path="C:/Users/Vinoth/Desktop/struts-1.3.10-all/struts-1.3.10/lib/commons-validator-1.3.1.jar"/>
<classpathentry kind="lib" path="C:/Users/Vinoth/Desktop/struts-1.3.10-all/struts-1.3.10/lib/jstl-1.0.2.jar"/>
<classpathentry kind="lib" path="C:/Users/Vinoth/Desktop/struts-1.3.10-all/struts-1.3.10/lib/oro-2.0.8.jar"/>
<classpathentry kind="lib" path="C:/Users/Vinoth/Desktop/struts-1.3.10-all/struts-1.3.10/lib/standard-1.0.6.jar"/>
<classpathentry kind="lib" path="C:/Users/Vinoth/Desktop/struts-1.3.10-all/struts-1.3.10/lib/struts-core-1.3.10.jar"/>
<classpathentry kind="lib" path="C:/Users/Vinoth/Desktop/struts-1.3.10-all/struts-1.3.10/lib/struts-el-1.3.10.jar"/>
<classpathentry kind="lib" path="C:/Users/Vinoth/Desktop/struts-1.3.10-all/struts-1.3.10/lib/struts-extras-1.3.10.jar"/>
<classpathentry kind="lib" path="C:/Users/Vinoth/Desktop/struts-1.3.10-all/struts-1.3.10/lib/struts-faces-1.3.10.jar"/>
<classpathentry kind="lib" path="C:/Users/Vinoth/Desktop/struts-1.3.10-all/struts-1.3.10/lib/struts-mailreader-dao-1.3.10.jar"/>
<classpathentry kind="lib" path="C:/Users/Vinoth/Desktop/struts-1.3.10-all/struts-1.3.10/lib/struts-scripting-1.3.10.jar"/>
<classpathentry kind="lib" path="C:/Users/Vinoth/Desktop/struts-1.3.10-all/struts-1.3.10/lib/struts-taglib-1.3.10.jar"/>
<classpathentry kind="lib" path="C:/Users/Vinoth/Desktop/struts-1.3.10-all/struts-1.3.10/lib/struts-tiles-1.3.10.jar"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
 
Bartender
Posts: 1104
10
Netbeans IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi vinoth,
We have a dedicated forum for Struts where you will get better responses. Am moving this post to the Struts forum.
 
author & internet detective
Posts: 41907
909
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is actually an Eclipse problem not a Struts problem so moving yet again to our IDEs forum.

 
Jeanne Boyarsky
author & internet detective
Posts: 41907
909
Eclipse IDE VI Editor Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to CodeRanch!

The relevant part of that error message is that M2_REPO isn't defined. You should define it in Eclipse (preferences > java > build path > classpath variables.) Also, consider using m2Eclipse for better integration between Maven and Eclipse.
 
reply
    Bookmark Topic Watch Topic
  • New Topic