GithubHelp home page GithubHelp logo

sciabarra / agilesites Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 8.0 77.67 MB

Agile development framework for Oracle WebCenter Sites

License: Apache License 2.0

Shell 0.28% Java 87.28% CSS 2.72% JavaScript 1.24% Scala 5.89% Batchfile 0.29% HTML 2.29%

agilesites's People

Contributors

jelerak avatar michele-sciabarra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

agilesites's Issues

Login page breaking on webcenter

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

Problem importing "Demo"

Following the installation tutorial, after importing the site "Demo", the "wcsites" loses information.
See,
img
img2

execute wcs-deploy fails on Windows with JSK

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

Fresh install on JSK 11.1.1.6.1 on OSX (linux) (port 8180)

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.

Running the configurator fails

Please see the attached image. The configurator is throwing a null pointer exception. I forked the repository and was attempting to troubleshoot it, but I am having trouble getting the source to build.
cannot_configure_and_agilesites_configurator_and_sitesclass__vagrant_sites__vagrant_resources_agilesites__ssh__23669

Assets come back empty

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;
}

0.9

Scala - Statics - Publishable

Asset Page coming up blank in Contributor Tab on clicking Content -> New -> Assetname

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

image

wcs-deploy fails

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 more

http://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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.