Return to Jive Software

Skip navigation
1,600 Views 19 Replies Last post: Nov 13, 2009 11:37 AM by JohnPavlecich RSS
JohnPavlecich Novice 51 posts since
Sep 29, 2009
Currently Being Moderated

Oct 13, 2009 11:29 AM

Access to subversion repository

Note: I am creating a case off of comments posted here: http://www.jivesoftware.com/jivespace/docs/DOC-7111

 

I don't seem to have access to the subversion repository is located at: https://svn.jivesoftware.com/svn/ext/customer/cerner-internal/trunk/ which needed for the above tutorial. Can you get us access? While waiting I have obtained the files from a co-worker and have been trying to get them to compile but I am having problems with the AttachmentHelper. It all seems to stem from the failed import of com.jivesoftware.community.attachments. It doesn't seem to exist in the

http://maven-secure.jivesoftware.com/archiva/repository/jive.internal/ or the http://maven-secure.jivesoftware.com/archiva/repository/jive.snapshots/

 

 

Here is my full error message:

 

[WARNING] bad version number found in C:\Users\jp018858\.m2\repository\com\jivesoftware\aspectjrt\1.6.3-3.0.0\aspectjrt-1.6.3-3.0.0.jar expected 1.6.2 found 1.6.3

[ERROR] The method isGlobalModerator() in the type BasePermHelper is not applicable for the arguments (User)

[ERROR] The import com.jivesoftware.community.attachments cannot be resolved

[ERROR] AttachmentHelper cannot be resolved to a type

[ERROR] AttachmentHelper cannot be resolved to a type

[ERROR] attachmentHelper cannot be resolved

[INFO] ------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO] ------------------------------------------------------------------------

[INFO] Compiler errors :

error at return user != null && (JiveContainerPermHelper.isGlobalAdmin(user.getID()) || JiveContainerPermHelper.isGlobalModerator(user));

^^^^^^^

C:\Jive\cerner-internal\web\src\main\java\com\jivesoftware\community\util\SocialGroupPermHelper.java:396:0::0 The method isGlobalModerator() in the type BasePermHelper is not applicable for the arguments (User)

error at import com.jivesoftware.community.attachments.AttachmentHelper;

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

C:\Jive\cerner-internal\web\src\main\java\com\jivesoftware\community\action\CreatePostAction.java:16:0::0 The import com.jivesoftware.community.attachments cannot be resolved

error at protected AttachmentHelper attachmentHelper;

^^^^^^^^^^^

C:\Jive\cerner-internal\web\src\main\java\com\jivesoftware\community\action\CreatePostAction.java:112:0::0 AttachmentHelper cannot be resolved to a type

error at public final void setAttachmentHelper(AttachmentHelper attachmentHelper) {

^^^^^^^^^^^

C:\Jive\cerner-internal\web\src\main\java\com\jivesoftware\community\action\CreatePostAction.java:162:0::0 AttachmentHelper cannot be resolved to a type

error at contentType = attachmentHelper.validateUserProvidedContentType(fileName, contentType, bis);

 

C:\Jive\cerner-internal\web\src\main\java\com\jivesoftware\community\action\CreatePostAction.java:1095:0::0 attachmentHelper cannot be resolved

kristina Jive Employee 3,489 posts since
Mar 17, 2008
Currently Being Moderated
Oct 13, 2009 1:15 PM in response to: JohnPavlecich
Re: Access to subversion repository

John, I requested R/W to https://svn.jivesoftware.com/svn/ext/customer/cerner-internal/trunk/.  We'll reply when it's been set up.

 

Thank you

duke.kim Jive Employee 19 posts since
May 22, 2008
Currently Being Moderated
Oct 13, 2009 1:34 PM in response to: JohnPavlecich
Re: Access to subversion repository

Hey John:

You have been granted rw access to the requested repository.

vsoares Jive Employee 801 posts since
Mar 12, 2008
Currently Being Moderated
Oct 13, 2009 1:19 PM in response to: JohnPavlecich
Re: Access to subversion repository

John,

I don't know why you're getting compilation errors.  Perhaps your version of the files are out of date.

It looks like you're using maven as the build tool.  Can you make sure your depending on 3.0.2 version of Jive SBS?  Can you try doing mvn clean package from the web module?

 

Let me know you still have issues after updating the code.

vsoares Jive Employee 801 posts since
Mar 12, 2008
Currently Being Moderated
Oct 13, 2009 2:14 PM in response to: JohnPavlecich
Re: Access to subversion repository
[INFO] Unable to find resource 'com.jivesoftware:jive-sbs-employee:pom:3.0.1.beta-SNAPSHOT' in repository jive (http://maven-secure.jivesoftware.com/archiva/repository/jive.internal)

I'm not sure why you're seeing a reference to Jive SBS 3.0.1 beta.  You should be building using Jive 3.0.2 as the dependency.  Did you check your root pom.xml to see what version is in there?  Is this happening with a clean checkout from subversion?

vsoares Jive Employee 801 posts since
Mar 12, 2008
Currently Being Moderated
Oct 13, 2009 2:30 PM in response to: JohnPavlecich
Re: Access to subversion repository

Can you try deleting this directory: <user home>/.m2/repository/com/jivesoftware?  Also, verify that your credentials for Jive's maven repository are correct in <user home>/.m2/settings.xml.

 

Try running mvn -X clean package.  The -X argument turns debug output on and will show if maven is able to successfully retrieve the Jive SBS dependencies.  Attach the relevant results from that output if you see errors.

vsoares Jive Employee 801 posts since
Mar 12, 2008
Currently Being Moderated
Oct 13, 2009 3:16 PM in response to: JohnPavlecich
Re: Access to subversion repository

See if you can access this URL:

http://maven-secure.jivesoftware.com/archiva/repository/jive.snapshots/com/jivesoftware/ext/profileUtils/3.1-SNAPSHOT/

 

If you can access that URL, please attach your entire settings.xml and I'll see if something is out of whack.

vsoares Jive Employee 801 posts since
Mar 12, 2008
Currently Being Moderated
Oct 13, 2009 3:29 PM in response to: JohnPavlecich
Re: Access to subversion repository

Your settings.xml is missing some stuff.  Check out: settings.xml - For Licensed Customers and Partners  and merge in your Cerner-specific settings with it.

vsoares Jive Employee 801 posts since
Mar 12, 2008
Currently Being Moderated
Oct 13, 2009 3:46 PM in response to: JohnPavlecich
Re: Access to subversion repository

Ah, I experimented using JavaRebel while working on this project. (It's quite awesome!)

You can remove the JavaRebel plugin by removing "-noverify -javaagent:/Users/victor/Downloads/javarebel-2.0.3/javarebel.jar" from the <cargo.jvmargs> property in web/pom.xml

kristina Jive Employee 3,489 posts since
Mar 17, 2008
Currently Being Moderated
Nov 13, 2009 10:10 AM in response to: JohnPavlecich
Re: Access to subversion repository

John, this case has been open for a while, so I wanted to check in.  Is there anything else we can help you with?

 

Thank you

More Like This

  • Retrieving data ...

Bookmarked By (0)

To better serve our customers we have included functionality to automatically follow up on a case after it has been idle for more than 5 days, and then auto close after an additional 3 days of inactivity. Choose No to acknowledge that this case will remain idle for longer than 5 days.
Making cases public allows other customers to learn from the solution of the case. It can also be used to gain feedback from others in the community. Ask our Support Engineers for more info, but we encourage you to make your cases public.