Return to Jive Software

Skip navigation

This Question is Possibly Answered

1 "correct" answer available (4 pts)
2,502 Views 9 Replies Last post: Jan 8, 2010 3:48 PM by WayneCSP RSS
svoynow Novice 49 posts since
Oct 15, 2009
Currently Being Moderated

Nov 6, 2009 3:51 PM

Problem bootstrapping a new 4.0 project

I've found what I think is a little bug.

I create a new 4.0 project using maven, package it and start it up using cargo.

I run through set up just fine and restart.

During the ensuing startup I get a bunch of error messages like this:

 

[INFO] [talledLocalContainer] 13:56:31,774 [main] INFO com.jivesoftware.community.util.ClassPathUtils  - JAR copy for resource 'jar:file:/C:/dev/projects/vistage/vistage-sitecore-integration/web/target/tomcat6x/webapps/jive/WEB-INF/lib/jive-sbs-employee-4.0.0.jar!/resources/spelling'.
[INFO] [talledLocalContainer] 13:56:31,790 [main] ERROR com.jivesoftware.community.util.ClassPathUtils  - Unexpected resource scheme: 'jar:file:/C:/dev/projects/vistage/vistage-sitecore-integration/web/target/tomcat6x/webapps/jive/WEB-INF/lib/jive-sbs-employee-4.0.0.jar!/resources/spelling'. Resource 'resources/spelling' not copied.
[INFO] [talledLocalContainer] 13:56:31,790 [main] INFO com.jivesoftware.community.util.ClassPathUtils  - JAR copy for resource 'jar:file:/C:/dev/projects/vistage/vistage-sitecore-integration/web/target/tomcat6x/webapps/jive/WEB-INF/lib/jive-sbs-employee-4.0.0.jar!/resources/images/attachments'.
[INFO] [talledLocalContainer] 13:56:31,790 [main] ERROR com.jivesoftware.community.util.ClassPathUtils  - Unexpected resource scheme: 'jar:file:/C:/dev/projects/vistage/vistage-sitecore-integration/web/target/tomcat6x/webapps/jive/WEB-INF/lib/jive-sbs-employee-4.0.0.jar!/resources/images/attachments'. Resource 'resources/images/attachments' not copied.
Which then leads to this:
[INFO] [talledLocalContainer] 2009-11-06 13:56:54,774 [main] [:] ERROR com.jivesoftware.community.objecttype.impl.ObjectTypeManagerImpl - Error initializing content type com.jivesoftware.community.objecttype.impl.AnnouncementObjectType@84b2c2
[INFO] [talledLocalContainer] java.lang.StackOverflowError
[INFO] [talledLocalContainer]   at java.lang.ThreadLocal.get(ThreadLocal.java:125)
[INFO] [talledLocalContainer]   at org.springframework.transaction.interceptor.TransactionAspectSupport$TransactionInfo.bindToThread(TransactionAspectSupport.java:440)
[INFO] [talledLocalContainer]   at org.springframework.transaction.interceptor.TransactionAspectSupport$TransactionInfo.access$100(TransactionAspectSupport.java:394)
[INFO] [talledLocalContainer]   at org.springframework.transaction.interceptor.TransactionAspectSupport.prepareTransactionInfo(TransactionAspectSupport.java:307)
[INFO] [talledLocalContainer]   at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:272)
[INFO] [talledLocalContainer]   at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:220)
[INFO] [talledLocalContainer]   at org.springframework.transaction.aspectj.AbstractTransactionAspect.ajc$before$org_springframework_transaction_aspectj_AbstractTransactionAspect$1$2a73e96c(AbstractTransactionAspect.aj:63)
[INFO] [talledLocalContainer]   at com.jivesoftware.community.impl.DbJiveProperties.get(DbJiveProperties.java:192)
[INFO] [talledLocalContainer]   at com.jivesoftware.community.impl.DbJiveProperties.get(DbJiveProperties.java:34)
[INFO] [talledLocalContainer]   at com.jivesoftware.community.JiveGlobals.getJiveProperty(JiveGlobals.java:674)
[INFO] [talledLocalContainer]   at com.jivesoftware.util.spell.SpellChecker.init(SpellChecker.java:486)
[INFO] [talledLocalContainer]   at com.jivesoftware.util.spell.SpellChecker.getAvailableLanguages(SpellChecker.java:165)
[INFO] [talledLocalContainer]   at com.jivesoftware.community.web.JiveResourceResolver.resetLanguageString(JiveResourceResolver.java:53)
[INFO] [talledLocalContainer]   at com.jivesoftware.util.spell.SpellChecker.init(SpellChecker.java:611)
[INFO] [talledLocalContainer]   at com.jivesoftware.util.spell.SpellChecker.getAvailableLanguages(SpellChecker.java:165)
[INFO] [talledLocalContainer]   at com.jivesoftware.community.web.JiveResourceResolver.resetLanguageString(JiveResourceResolver.java:53)
[INFO] [talledLocalContainer]   at com.jivesoftware.util.spell.SpellChecker.init(SpellChecker.java:611)
[INFO] [talledLocalContainer]   at com.jivesoftware.util.spell.SpellChecker.getAvailableLanguages(SpellChecker.java:165)
i.e an infinite loop / stack overflow initializing the spellchecker
This only happens on windows. So I think what's happening is that your ClassPathUtils are having trouble with the silly windows paths C:/ etc, and are not able to copy the spelling files to JIVE_HOME, which in turn causes the infinite loop.
So there seem to be a couple of problems here. (As a very minor side issue, com/jivesoftware/util/spell isn't in the source jar)

 

Anybody else run into this?

ageorgousakis Novice 1 posts since
Jan 9, 2008
Currently Being Moderated
Nov 17, 2009 8:28 AM in response to: Sasha Voynow
Re: Problem bootstrapping a new 4.0 project

I have a similar problem when I installed SBS 4.0. It cannot start after the initial configuration

 

2009-11-17 18:24:24,963 [main] [:] ERROR com.jivesoftware.community.objecttype.impl.ObjectTypeManagerImpl - Error initializing content type com.jivesoftware.community.objecttype.impl.AnnouncementObjectType@9f26c7

java.lang.StackOverflowError

    at org.springframework.transaction.interceptor.TransactionAspectSupport$TransactionInfo.bindToThread(TransactionAspectSupport.java:440)

    at org.springframework.transaction.interceptor.TransactionAspectSupport$TransactionInfo.access$100(TransactionAspectSupport.java:394)

  ...

bram Novice 18 posts since
Jun 12, 2006
Currently Being Moderated
Dec 2, 2009 8:50 AM in response to: Sasha Voynow
Re: Problem bootstrapping a new 4.0 project

for those without a linux OS, you can copy the files from

 

jive-sbs-employee-4.0.0.war\WEB-INF\lib\jive-sbs-employee-4.0.0.jar\resources\spelling\

 

to the <jiveHome>\spelling directory and it works...

WayneCSP Novice 125 posts since
Oct 22, 2008
Currently Being Moderated
Nov 17, 2009 2:21 PM in response to: Sasha Voynow
Re: Problem bootstrapping a new 4.0 project

I'm running into this as well.  The problem is that ClassPathUtils seems designed for Linux:

 

String[] split = uriString.split(":");
 if(split.length != 3) {
    log.error(String.format("Unexpected resource scheme: '%s'. Resource '%s' not copied.", uriString, classPathSource));
    return;
 }

 

The Windows path to the JAR file will begin with "C:\..." which contains a semi-colon, so the split results in 4 Strings, rather than the 3 that are expected.

ananth.ant Novice 21 posts since
Aug 7, 2008
Currently Being Moderated
Nov 29, 2009 10:39 PM in response to: Sasha Voynow
Re: Problem bootstrapping a new 4.0 project

Hi All,

 

I have slightly modified the ClassPathUtil.java to make it work for Windows OS.

 

Please find below the code snippet.

 

Let me know if this works for you.

 

Code :

 

 

 

 

 

 

 

public static void copyClasspathJarPath(final ClassLoader loader,
  final String classPathSource, final URL asset, final File destination,
        final boolean overwrite) {

 

.....

 

log.info("JAR copy for resource '" + asset.toString() + "'.");

String[] split = uriString.split(":");

String[] jarname = null;

 

/** Start : Correction done for Windows */
            if(split.length == 3)
            jarname = split[2].split("!");
            else if(split.length == 4)
            jarname = (split[2]+ ":\\" + split[3]).split("!");
            else{
            log.error(String.format("Unexpected resource scheme: '%s'. Resource '%s' not copied.", uriString, classPathSource));
                return;
            }
/** End : Correction done for Windows */

 

if(jarname.length != 2) {
                log.error(String.format("Unexpected resource scheme: '%s'. Resource '%s' not copied.", uriString, classPathSource));
            }

  ...

 

}

 

 

 

 

 

WayneCSP Novice 125 posts since
Oct 22, 2008
Currently Being Moderated
Jan 8, 2010 3:48 PM in response to: Sasha Voynow
Re: Problem bootstrapping a new 4.0 project

This is fixed in 4.0.1.

More Like This

  • Retrieving data ...

Bookmarked By (0)