If you are using a Maven repo and and good IDE, it should help you find out what versions of the transitive dependencies are being loaded. You may need to look at the docs for the third party libraries and your own libraries to see what versions are required.

Likely 
/C:/Foundation/foundation/src/main/java/com/mycompany/app/web/taglib/struts/html/FormTagEl.java:
requires a later version of the class 
foundation.web.taglib.struts.html.FormTagEl that includes the methods that your 
code is trying to use.
Maven is finding the class OK but the methods you are calling are not in that 
class.

You need to read up on foundation.web.taglib.struts.html.FormTagEl to find out 
what versions include
getName()
getScope()
setScope(java.lang.String)

The version that you have specified in your POM does not.

If you don't want to do that, you can just try the latest Struts and see what happens,

The person who wrote /com/mycompany/app/web/taglib/struts/html/FormTagEl.java should be able to tell you what version he/she was reading about when they decided to use these methods.

Ron

Not sure why you are loading
On 27/07/2015 11:16 AM, Magnanao, Hector wrote:
Curtis,  can you elaborate on this ?  if the libraries I uploaded in my pom 
file are newer, how do I find out what version of those libraries are set of 
code compatible with ?  For instance, in my old ant lib folder,  I have a 
struts and struts-el.jar.  should I load those into my own local repository ?

Hector

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of 
Curtis Rueden
Sent: Friday, July 24, 2015 4:13 PM
To: Maven Users List
Subject: Re: build error on strutsel

Hi Hector,

Maybe you are depending on the wrong version of those libraries? API change
and evolve; you have to depend on a version compatible with what was
originally coded against.

-Curtis

On Fri, Jul 24, 2015 at 3:04 PM, Magnanao, Hector <[email protected]>
wrote:

Hi Curtis,

I have these remaining errors on my compilation.  I can't figure out if
this is code or package errors.  Can you help me out ?

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]
/C:/Foundation/foundation/src/main/java/com/mycompany/app/web/taglib/struts/html/FormTagEl.java:[351,53]
cannot find symbol
   symbol:   method getName()
   location: class foundation.web.taglib.struts.html.FormTagEl
[ERROR]
/C:/Foundation/foundation/src/main/java/com/mycompany/app/web/taglib/struts/html/FormTagEl.java:[352,18]
cannot find symbol
   symbol: method setName(java.lang.String)
[ERROR]
/C:/Foundation/foundation/src/main/java/com/mycompany/app/web/taglib/struts/html/FormTagEl.java:[360,54]
cannot find symbol
   symbol:   method getScope()
   location: class foundation.web.taglib.struts.html.FormTagEl
[ERROR]
/C:/Foundation/foundation/src/main/java/com/mycompany/app/web/taglib/struts/html/FormTagEl.java:[361,18]
cannot find symbol
   symbol: method setScope(java.lang.String)
[ERROR]
/C:/Foundation/foundation/src/main/java/com/mycompany/app/web/taglib/struts/html/FormTagEl.java:[375,53]
cannot find symbol
   symbol:   method getType()
   location: class foundation.web.taglib.struts.html.FormTagEl
[ERROR]
/C:/Foundation/foundation/src/main/java/com/mycompany/app/web/taglib/struts/html/FormTagEl.java:[376,18]
cannot find symbol
   symbol: method setType(java.lang.String)
[ERROR]
/C:/Foundation/foundation/src/main/java/com/mycompany/app/cache/LicenseService.java:[35,23]
cannot find symbol
   symbol:   class License
   location: package aspose.pdf
[ERROR]
/C:/Foundation/foundation/src/main/java/com/mycompany/app/cache/LicenseService.java:[35,59]
cannot find symbol
   symbol:   class License
   location: package aspose.pdf
[INFO] 8 errors

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Curtis Rueden
Sent: Friday, July 24, 2015 1:13 PM
To: Maven Users List
Subject: Re: build error on strutsel

Hi Hector,

package com.aspose.cells does not exist
Looks like Aspose.Cells is in its own Maven repo from that company:


http://www.aspose.com/blogs/aspose-products/aspose-total-product-family/archive/2014/08/12/aspose-for-maven-aspose-cloud-maven-repository.html

Found by searching Google for "com.aspose.cells maven"

Repeat these tricks for all packages you need to find.

-Curtis

On Fri, Jul 24, 2015 at 12:39 PM, Magnanao, Hector <
[email protected]>
wrote:

Hi Curtis,  that’s ok, I got past that error.  Now I get this one.

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
(default-compile) on project foundation: Compilation failure: Compilation
failure:
[ERROR]

/C:/Foundation/foundation/src/main/java/com/mycompany/app/cache/LicenseService.java:[3,24]
package com.aspose.cells does not exist

From: [email protected] [mailto:[email protected]] On Behalf
Of Curtis Rueden
Sent: Friday, July 24, 2015 12:35 PM
To: Maven Users List
Subject: Re: build error on strutsel

Hi Hector,

I clicked on the link and it returns nothing.
How do I search for it in the repository ?
That's baffling. I see this:

[Inline image 1]

I have no clue why it would be different for you...

Regards,
Curtis

On Fri, Jul 24, 2015 at 12:31 PM, Magnanao, Hector <
[email protected]<mailto:[email protected]>> wrote:
Hi Curtis,

I clicked on the link and it returns nothing.  How do I search for it in
the repository ?

-----Original Message-----
From: [email protected]<mailto:[email protected]> [mailto:
[email protected]<mailto:[email protected]>] On Behalf Of
Curtis Rueden
Sent: Friday, July 24, 2015 12:17 PM
To: Maven Users List
Subject: Re: build error on strutsel

Hi Hector,

I can't find it in the maven repository.


http://search.maven.org/#search%7Cga%7C1%7Cfc%3A%22org.apache.strutsel.taglib.utils%22
-Curtis

On Fri, Jul 24, 2015 at 12:11 PM, Magnanao, Hector <
[email protected]<mailto:[email protected]>>
wrote:

How do I resolve this package error ?  I can't find it in the maven
repository.

ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
(default-compile) on project foundation: Compilation failure:
Compilation
failure:
ERROR]

/C:/Foundation/foundation/src/main/java/com/mycompany/app/web/taglib/struts/html/FormTagEl.java:[64,40]
package org.apache.strutsel.taglib.utils does not exist
ERROR]

/C:/Foundation/foundation/src/main/java/com/mycompany/app/web/taglib/struts/bean/MessageTagEl.java:[72,40]
package org.apache.strutsel.taglib.utils does not exist

Hector Magnanao Jr.
SCM Analyst

Fieldglass, Inc.
O: (331) 702-6142<tel:%28331%29%20702-6142>
M: (773) 474-3051<tel:%28773%29%20474-3051>
[email protected]<mailto:[email protected]>
www.fieldglass.com<http://www.fieldglass.com>

Fieldglass is now part of SAP

This email contains confidential information.  If you are not the
intended
recipient, do not read, distribute or reproduce this transmission
(including any attachments). If you have received this email in error,
please notify the sender by email reply.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]<mailto:
[email protected]>
For additional commands, e-mail: [email protected]<mailto:
[email protected]>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


--
Ron Wheeler
President
Artifact Software Inc
email: [email protected]
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to