sciabarra / agilesites Goto Github PK
View Code? Open in Web Editor NEWAgile development framework for Oracle WebCenter Sites
License: Apache License 2.0
Agile development framework for Oracle WebCenter Sites
License: Apache License 2.0
before starting install JSK starts up fine - after wcs-setup-offline JSK not functional
wcs-setup-online
*** /Volumes/MacSSD512/Users/jscanlon/git/AgileSites/app/src/main/static
+++ /Volumes/MacSSD512/Users/jscanlon/git/AgileSites/app/target/scala-2.10/resource_managed/main/blueprint/template.html
+++ /Volumes/MacSSD512/Users/jscanlon/git/AgileSites/app/target/scala-2.10/resource_managed/main/demo/simple.html
[info] Oracle WebCenter Sites 11gR1 11.1.1.6.1
[info] Copyright (c) 2012 Oracle and/or its affiliates. All Rights Reserved.
[info] Copyright (c) 2011 FatWire Corporation All Rights Reserved.
[info]
[info] CatalogMover 11.1.1.6.1 Build Date: Oct 23 2012 at 20:48:36 Build Number: 2371 Revision:152889
[info]
[info] No Connections
[info] 2013-06-13 09:29:08,128 [main] DEBUG (DynamicInjector.java:119) - Accessing casInfo using http://localhost:8180/cs/Satellite?pagename=fatwire/wem/sso/casInfo
[info] 2013-06-13 09:29:08,149 [main] DEBUG (DynamicInjector.java:205) - Failed to access casInfo, Exception=java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8180/cs/Satellite?pagename=fatwire/wem/sso/casInfo
[error] log4j:WARN No appenders could be found for logger (com.fatwire.logging.cs.core.http.HttpAccess).
[error] log4j:WARN Please initialize the log4j system properly.
[error] log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
[info] Failed to connect to localhost Unknown Reason err: 0
[info] Connect failed
[info] CatalogMover exited.
from: page: http://localhost:8180/cs/Satellite?pagename=fatwire/wem/sso/casInfo
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an exception
com.fatwire.auth.RequestAuthenticationFilter.doFilter(RequestAuthenticationFilter.java:197)
com.fatwire.wem.sso.cas.filter.CASFilter.doFilter(CASFilter.java:695)
com.fatwire.wem.sso.SSOFilter.doFilter(SSOFilter.java:51)
root cause
javax.servlet.ServletException: Servlet execution threw an exception
com.fatwire.auth.RequestAuthenticationFilter.doFilter(RequestAuthenticationFilter.java:192)
com.fatwire.wem.sso.cas.filter.CASFilter.doFilter(CASFilter.java:695)
com.fatwire.wem.sso.SSOFilter.doFilter(SSOFilter.java:51)
root cause
java.lang.NoClassDefFoundError: Could not initialize class COM.FutureTense.Servlet.ServletRequest
com.openmarket.Satellite.servlet.BaseServlet.doGet(BaseServlet.java:111)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.fatwire.auth.RequestAuthenticationFilter.doFilter(RequestAuthenticationFilter.java:192)
com.fatwire.wem.sso.cas.filter.CASFilter.doFilter(CASFilter.java:695)
com.fatwire.wem.sso.SSOFilter.doFilter(SSOFilter.java:51)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.32 logs.
Implement the SitePlan class
With tutorial "Importing the project in eclipse" on http://www.agilesites.org/tutorial/NewSite.html
can't not import project
I followed the installation instructions on windows with a JSK on page http://www.agilesites.org/tutorial/NewSite.html
After I got to the step 'Generate the AgileSites site code', I successfully ran 'wcs-generate site'. However, when I subsequently ran 'wcs-deploy', I got the output below.
wcs-deploy
WebCenter Sites running with java 1.7.0_17
*** copied 38 static files
[info] No tests to run for all/test:test
[info] Packaging C:\java\software\AgileSites-1.8.1a\target\agilesites-all-assembly-11.1.1.8.0_1.8.1.jar ...
[info] Done packaging.
[info] +++ C:\JSK1\Sites\11.1.1.8.0\Shared\agilesites\agilesites-all-assembly-11.1.1.8.0_1.8.1.jar
[info] Oracle WebCenter Sites 11gR1 11.1.1.8.0
[info] Copyright (c) 2011,2013, Oracle and/or its affiliates. All Rights Reserved.
[info]
[info] CatalogMover 11.1.1.8.0 Build Date: Jul 11 2014 at 15:16:48 Build Number: 35 Revision:165274
[info]
[info] No Connections
[info] Attempting to load ESAPI.properties via file I/O.
[info] Attempting to load ESAPI.properties as resource file via file I/O.
[info] Not found in 'org.owasp.esapi.resources' directory or file not readable: C:\java\software\AgileSites-1.8.1a\ESAPI.properties
[info] Not found in SystemResource Directory/resourceDirectory: .esapi\ESAPI.properties
[info] Not found in 'user.home' (C:\Users\Administrator) directory: C:\Users\Administrator\esapi\ESAPI.properties
[info] Loading ESAPI.properties via file I/O failed. Exception was: java.io.FileNotFoundException
[info] Attempting to load ESAPI.properties via the classpath.
[info] SUCCESSFULLY LOADED ESAPI.properties via the CLASSPATH from '/ (root)' using current thread context class loader!
[info] Attempting to load validation.properties via file I/O.
[info] Attempting to load validation.properties as resource file via file I/O.
[info] Not found in 'org.owasp.esapi.resources' directory or file not readable: C:\java\software\AgileSites-1.8.1a\validation.properties
[info] Not found in SystemResource Directory/resourceDirectory: .esapi\validation.properties
[info] Not found in 'user.home' (C:\Users\Administrator) directory: C:\Users\Administrator\esapi\validation.properties
[info] Loading validation.properties via file I/O failed.
[info] Attempting to load validation.properties via the classpath.
[info] SUCCESSFULLY LOADED validation.properties via the CLASSPATH from '/ (root)' using current thread context class loader!
[info] Connected to localhost
[error] java.lang.ExceptionInInitializerError
[error] at COM.FutureTense.Common.ftDBTable.(ftDBTable.java:376)
[error] at COM.FutureTense.Util.TableData.setTableType(TableData.java:446)
[error] at COM.FutureTense.Util.TableParser.ParseHTML(TableParser.java:189)
[error] at COM.FutureTense.Util.TableParser.Parse(TableParser.java:71)
[error] at COM.FutureTense.Apps.CatalogMoverEngine.loadCatalogs(CatalogMoverEngine.java:3127)
[error] at COM.FutureTense.Apps.CatalogMoverEngine.LoadCatalogListAction(CatalogMoverEngine.java:2333)
[error] at COM.FutureTense.Apps.CatalogMoverEngine.processCommand(CatalogMoverEngine.java:1091)
[error] at COM.FutureTense.Apps.CatalogMoverEngine.run(CatalogMoverEngine.java:1171)
[error] at COM.FutureTense.Apps.CatalogMover.main(CatalogMover.java:39)
[error] Caused by: net.sf.ehcache.CacheException: Error configuring from null. Initial cause was null
[error] at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:103)
[error] at net.sf.ehcache.CacheManager.newInstance(CacheManager.java:884)
[error] at com.fatwire.cache.ehcache.EhCacheObjectCache._initCache(EhCacheObjectCache.java:761)
[error] at com.fatwire.cache.ehcache.EhCacheObjectCache.start(EhCacheObjectCache.java:564)
[error] at COM.FutureTense.Cache.LinkedCacheProvider.(LinkedCacheProvider.java:45)
[error] at COM.FutureTense.Cache.LinkedCacheProvider.(LinkedCacheProvider.java:30)
[error] ... 9 more
[error] Caused by: java.lang.NullPointerException
[error] at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:100)
[error] ... 14 morehttp://localhost:9080/cs/ContentServer?pagename=AAAgileSetup&username=fwadmin&password=xceladmin&sites=Catalog
[trace] Stack trace suppressed: run 'last all/:wcs-update-assets' for the full output.
error java.io.FileNotFoundException: http://localhost:9080/cs/ContentServer?pagename=AAAgileSetup&username=fwadmin&password=xceladmi
n&sites=Catalog
[error] Total time: 2 s, completed Aug 4, 2014 12:59:01 PM
last all/:wcs-update-assets
[info] Oracle WebCenter Sites 11gR1 11.1.1.8.0
[info] Copyright (c) 2011,2013, Oracle and/or its affiliates. All Rights Reserved.
[info]
[info] CatalogMover 11.1.1.8.0 Build Date: Jul 11 2014 at 15:16:48 Build Number: 35 Revision:165274
[info]
[info] No Connections
[info] Attempting to load ESAPI.properties via file I/O.
[info] Attempting to load ESAPI.properties as resource file via file I/O.
[info] Not found in 'org.owasp.esapi.resources' directory or file not readable: C:\java\software\AgileSites-1.8.1a\ESAPI.properties
[info] Not found in SystemResource Directory/resourceDirectory: .esapi\ESAPI.properties
[info] Not found in 'user.home' (C:\Users\Administrator) directory: C:\Users\Administrator\esapi\ESAPI.properties
[info] Loading ESAPI.properties via file I/O failed. Exception was: java.io.FileNotFoundException
[info] Attempting to load ESAPI.properties via the classpath.
[info] SUCCESSFULLY LOADED ESAPI.properties via the CLASSPATH from '/ (root)' using current thread context class loader!
[info] Attempting to load validation.properties via file I/O.
[info] Attempting to load validation.properties as resource file via file I/O.
[info] Not found in 'org.owasp.esapi.resources' directory or file not readable: C:\java\software\AgileSites-1.8.1a\validation.properties
[info] Not found in SystemResource Directory/resourceDirectory: .esapi\validation.properties
[info] Not found in 'user.home' (C:\Users\Administrator) directory: C:\Users\Administrator\esapi\validation.properties
[info] Loading validation.properties via file I/O failed.
[info] Attempting to load validation.properties via the classpath.
[info] SUCCESSFULLY LOADED validation.properties via the CLASSPATH from '/ (root)' using current thread context class loader!
[info] Connected to localhost
[error] java.lang.ExceptionInInitializerError
[error] at COM.FutureTense.Common.ftDBTable.(ftDBTable.java:376)
[error] at COM.FutureTense.Util.TableData.setTableType(TableData.java:446)
[error] at COM.FutureTense.Util.TableParser.ParseHTML(TableParser.java:189)
[error] at COM.FutureTense.Util.TableParser.Parse(TableParser.java:71)
[error] at COM.FutureTense.Apps.CatalogMoverEngine.loadCatalogs(CatalogMoverEngine.java:3127)
[error] at COM.FutureTense.Apps.CatalogMoverEngine.LoadCatalogListAction(CatalogMoverEngine.java:2333)
[error] at COM.FutureTense.Apps.CatalogMoverEngine.processCommand(CatalogMoverEngine.java:1091)
[error] at COM.FutureTense.Apps.CatalogMoverEngine.run(CatalogMoverEngine.java:1171)
[error] at COM.FutureTense.Apps.CatalogMover.main(CatalogMover.java:39)
[error] Caused by: net.sf.ehcache.CacheException: Error configuring from null. Initial cause was null
[error] at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:103)
[error] at net.sf.ehcache.CacheManager.newInstance(CacheManager.java:884)
[error] at com.fatwire.cache.ehcache.EhCacheObjectCache._initCache(EhCacheObjectCache.java:761)
[error] at com.fatwire.cache.ehcache.EhCacheObjectCache.start(EhCacheObjectCache.java:564)
[error] at COM.FutureTense.Cache.LinkedCacheProvider.(LinkedCacheProvider.java:45)
[error] at COM.FutureTense.Cache.LinkedCacheProvider.(LinkedCacheProvider.java:30)
[error] ... 9 more
[error] Caused by: java.lang.NullPointerException
[error] at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:100)
[error] ... 14 more
java.io.FileNotFoundException: http://localhost:9080/cs/ContentServer?pagename=AAAgileSetup&username=fwadmin&password=xceladmin&sites=Catalog
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1623)
at java.net.URL.openStream(URL.java:1037)
at wcs.build.AgileSitesUtil$class.httpCallRaw(AgileSitesUtil.scala:32)
at wcs.build.AgileSitesBuild$.httpCallRaw(AgileSitesBuild.scala:15)
at wcs.build.AgileSitesUtil$$anonfun$4.apply(AgileSitesUtil.scala:55)
at wcs.build.AgileSitesUtil$$anonfun$4.apply(AgileSitesUtil.scala:51)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:76)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:233)
at scala.collection.immutable.List.map(List.scala:76)
at wcs.build.AgileSitesUtil$class.httpCall(AgileSitesUtil.scala:51)
at wcs.build.AgileSitesBuild$.httpCall(AgileSitesBuild.scala:15)
at wcs.build.AgileSitesUtil$class.deploy(AgileSitesUtil.scala:248)
at wcs.build.AgileSitesBuild$.deploy(AgileSitesBuild.scala:15)
at wcs.build.AgileSitesSupport$$anonfun$35.apply(AgileSitesSupport.scala:332)
at wcs.build.AgileSitesSupport$$anonfun$35.apply(AgileSitesSupport.scala:321)
at sbt.Scoped$$anonfun$hf9$1.apply(Structure.scala:585)
at sbt.Scoped$$anonfun$hf9$1.apply(Structure.scala:585)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:49)
at sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311)
at sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:41)
at sbt.std.Transform$$anon$5.work(System.scala:71)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute.work(Execute.scala:238)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
error java.io.FileNotFoundException: http://localhost:9080/cs/ContentServer?pagename=AAAgileSetup&username=fwadmin&password=xceladmi
n&sites=Catalog
git clone https://github.com/sciabarra/AgileSites.git
git checkout 1.8
the clone pulls v1.8 - so the checkout errors out
jscanlon ~/git$ git checkout 1.8
error: pathspec '1.8' did not match any file(s) known to git.
jscanlon ~/git$
just did fresh install - setup NEW site called MySite (actually following instructions this time)
doc says tester is at
http://localhost:8080/cs/ContentServer?pagename=mysite-tester
actual url to the site entry is: (at least in my case)
http://localhost:8080/cs/ContentServer?pagename=MySite/MyTester
also - the link from the install page to the tutorial page has a bad href (pointing at tuttorial)
Hi Guys,
Facing this issue on login:-
HTTP Status 500 - Request processing failed; nested exception is org.springframework.webflow.engine.ActionExecutionException: Exception thrown executing [AnnotatedAction@59b55efc targetAction = org.jasig.cas.web.flow.AuthenticationViaFormAction@25c2cbee, attributes = map['method' -> 'submit']] in state 'submit' of flow 'login-webflow' -- action execution attributes were 'map['method' -> 'submit']'; nested exception is java.lang.RuntimeException: java.io.FileNotFoundException: http://DEV22-PC:10080/cs/ContentServer?pagename=fatwire/wem/sso/ssoLogin
Any help would be highly appreciated.
Mayur
I have an asset and can find it with searching, but the wcs.java.Asset object has no real information on the Asset, all attributes are null. Here is the result of running asset.dump()
name=null description=null cid=1406318913050 c=Catalog_ProductC subtype=Prod site=Catalog template=null startDate= endDate= path=null filename=null. This appears to be related to not following the conventions for Asset Model naming laid out in the tutorial. However, I have an existing site that I need to work with that does not follow those conventions, so I need to know how to work with it. I attempted updating the Config.java that is generated by the AgileSites shell to the following, this stopped an exception from being thrown, but did not fix the issue.
@Override
public String getAttributeType(String type) {
if (type == null)
return null;
// simple configuration for Pages
if (type.equals("Page"))
return "PageAttribute";
// sample configuration for flex family
// assuming it follows the convention that
// types in the flex family
// uses the sitename as a common prefix
// if(type.startsWith("Catalog_"))
// return "Catalog_A";
if(type.startsWith("Catalog_"))
return "Catalog_ProductA";
return null;
}
new site AgileSites
new family AgileSites_A _CD _PD etc
take snapshot and write in the book
More specifically, importing PageAttribute:1406156647333 (Demo_Title) fails.
installation updated futuretense.ini - should be in separate file for separation of application from platform
Below is the result of attempting to execute a wcs-deploy command. I am not sure why it thinks Sites is not online, the JSK is running. Also, it reports that I have a Java version mismatch, but the JAVA_HOME environment variable points to the 1.7.0_65 jvm, and that is the version I get back when executing java -version. I have no idea where AgileSites is picking up 1.7.0_17.
*** copied 34 static files
*** WebCenter Sites use java 1.7.0_65 and AgileSites uses java 1.7.0_17
*** They are different versions of Java.
*** Please set JAVA_HOME and use the same java version for both
[info] No tests to run for all/test:test
[info] Packaging C:\java\software\AgileSites-1.8.1a\target\agilesites-all-assemb
ly-11.1.1.8.0_1.8.1.jar ...
[info] Done packaging.
[info] +++ C:\JSK1\Sites\11.1.1.8.0\Shared\agilesites\agilesites-all-assembly-11
.1.1.8.0_1.8.1.jar
[trace] Stack trace suppressed: run 'last all/*:wcs-update-assets' for the full
output.
error java.lang.Exception: WebCenter Site must be on
line.
[error] Total time: 1 s, completed Aug 1, 2014 5:36:10 PM
Hi Guys,
I created a new Asset(MyAsset) using AssetMaker and have enabled it also. However, when I go to the Contributor Tab, and click on Content -> New -> MyAsset, a blank page opens up, and hence I cannot proceed. This is happening for the already present options like "New Page" and "Page(Simple)".
Please find attached the image below for my asset's blank page in Contributor's Tab.
Have I missed any step ?
Any help would be highly appreciated.
Thanks,
Mayur
Scala - Statics - Publishable
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.