Hi Charitha,

Could you please check whether you have the relavant rxt file in the
HOME/repository/resources/rxts/ folder?

Thanks,
Tanya

On Fri, Jun 19, 2015 at 11:46 AM, Charitha Goonetilleke <charit...@wso2.com>
wrote:

> Hi Samera,
>
> I tried to add Asset Extension to ES given in sample[1] scenario 1 on
> fresh ES build. But once I tried to login in to publisher console, ES
> throws the following exception with HTTP status 500.
>
> [2015-06-19 11:36:13,806] ERROR {rxt.core} -  Unable to locate
> assetResources for tenant: -1234 and type: api
> [2015-06-19 11:36:13,807] ERROR
> {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
>  org.mozilla.javascript.JavaScriptException: Unable to locate
> assetResources for tenant: -1234 and type: api
> (<rxt>/scripts/core/core.js#972)
>
> Also same exception throwing when I tried to access document api or
> document page via link [2] and [3] respectively.
>
> This is the server startup log
>
> [charitha@charithag-wso2 bin]$ sh wso2server.sh
> JAVA_HOME environment variable is set to /usr/java/jdk1.7.0_79
> CARBON_HOME environment variable is set to
> /home/charitha/tools/wso2es-2.0.0-SNAPSHOT
> [2015-06-19 11:35:40,819]  INFO
> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Starting WSO2
> Carbon...
> [2015-06-19 11:35:40,820]  INFO
> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Operating System :
> Linux 4.0.4-303.fc22.x86_64, amd64
> [2015-06-19 11:35:40,820]  INFO
> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Home        :
> /usr/java/jdk1.7.0_79/jre
> [2015-06-19 11:35:40,820]  INFO
> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Version     :
> 1.7.0_79
> [2015-06-19 11:35:40,820]  INFO
> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java VM          :
> Java HotSpot(TM) 64-Bit Server VM 24.79-b02,Oracle Corporation
> [2015-06-19 11:35:40,820]  INFO
> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Carbon Home      :
> /home/charitha/tools/wso2es-2.0.0-SNAPSHOT
> [2015-06-19 11:35:40,820]  INFO
> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Temp Dir    :
> /home/charitha/tools/wso2es-2.0.0-SNAPSHOT/tmp
> [2015-06-19 11:35:40,820]  INFO
> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  User             :
> charitha, en-US, Asia/Colombo
> [2015-06-19 11:35:40,896]  WARN
> {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} -
>  Carbon is configured to use the default keystore (wso2carbon.jks). To
> maximize security when deploying to a production environment, configure a
> new keystore with a unique password in the production server profile.
> [2015-06-19 11:35:40,902]  INFO
> {org.wso2.carbon.databridge.agent.thrift.AgentHolder} -  Agent created !
> [2015-06-19 11:35:40,915]  INFO
> {org.wso2.carbon.databridge.agent.thrift.internal.AgentDS} -  Successfully
> deployed Agent Client
> [2015-06-19 11:35:41,232]  INFO {org.wso2.jaggery.scxml.Activator} -
>  Activating org.wso2.jaggery.scxml with RealmService enabled
> [2015-06-19 11:35:42,023]  INFO
> {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} -  Configured
> Registry in 37ms
> [2015-06-19 11:35:42,115]  INFO
> {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} -
>  Registry Mode    : READ-WRITE
> [2015-06-19 11:35:43,768]  INFO
> {org.wso2.carbon.registry.indexing.solr.SolrClient} -  Default Embedded
> Solr Server Initialized
> [2015-06-19 11:35:43,896]  INFO
> {org.wso2.carbon.social.sql.SocialDBInitilizer} -  Social database already
> exists. Not creating a new database.
> [2015-06-19 11:35:44,008]  INFO
> {org.wso2.carbon.user.core.internal.UserStoreMgtDSComponent} -  Carbon
> UserStoreMgtDSComponent activated successfully.
> [2015-06-19 11:35:45,977]  INFO
> {org.apache.catalina.startup.TaglibUriRule} -  TLD skipped. URI:
> http://tiles.apache.org/tags-tiles is already defined
> [2015-06-19 11:35:46,448]  INFO
> {org.wso2.carbon.identity.user.store.configuration.deployer.UserStoreConfigurationDeployer}
> -  User Store Configuration Deployer initiated.
> [2015-06-19 11:35:46,448]  INFO
> {org.wso2.carbon.identity.user.store.configuration.deployer.UserStoreConfigurationDeployer}
> -  User Store Configuration Deployer initiated.
> [2015-06-19 11:35:47,002]  INFO
> {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2
> service: AccountCredentialMgtConfigService {super-tenant}
> [2015-06-19 11:35:47,002]  INFO
> {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2
> service: UserInformationRecoveryService {super-tenant}
> [2015-06-19 11:35:47,002]  INFO
> {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2
> service: UserIdentityManagementAdminService {super-tenant}
> [2015-06-19 11:35:47,442]  INFO
> {org.wso2.carbon.core.init.CarbonServerManager} -  Repository       :
> /home/charitha/tools/wso2es-2.0.0-SNAPSHOT/repository/deployment/server/
> [2015-06-19 11:35:47,498]  INFO
> {org.wso2.carbon.core.multitenancy.eager.TenantLoadingConfig} -  Switching
> to default mode : Tenant lazy loading mechanism has been activated...
> [2015-06-19 11:35:47,531]  INFO
> {org.wso2.carbon.core.internal.permission.update.PermissionUpdater} -
>  Permission cache updated for tenant -1234
> [2015-06-19 11:35:48,033]  INFO
> {org.wso2.carbon.identity.application.mgt.internal.ApplicationManagementServiceComponent}
> -  Identity ApplicationManagementComponent bundle is activated
> [2015-06-19 11:35:48,034]  INFO
> {org.wso2.carbon.identity.application.mgt.ui.internal.ApplicationMgtUIServiceComponent}
> -  Application Management UI bundle acticated!
> [2015-06-19 11:35:48,053]  INFO
> {org.wso2.carbon.identity.sso.saml.admin.FileBasedConfigManager} -  A SSO
> Service Provider is registered for : store
> [2015-06-19 11:35:48,053]  INFO
> {org.wso2.carbon.identity.sso.saml.admin.FileBasedConfigManager} -  A SSO
> Service Provider is registered for : social
> [2015-06-19 11:35:48,053]  INFO
> {org.wso2.carbon.identity.sso.saml.admin.FileBasedConfigManager} -  A SSO
> Service Provider is registered for : publisher
> [2015-06-19 11:35:48,101]  INFO
> {org.wso2.carbon.identity.core.internal.IdentityCoreServiceComponent} -
>  Identity Database schema initialization check was skipped since 'setup'
> variable was not given during startup
> [2015-06-19 11:35:48,295]  INFO
> {org.wso2.carbon.core.transports.http.HttpsTransportListener} -  HTTPS port
>       : 9443
> [2015-06-19 11:35:48,295]  INFO
> {org.wso2.carbon.core.transports.http.HttpTransportListener} -  HTTP port
>      : 9763
> [2015-06-19 11:35:48,356]  INFO
> {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2
> service: echo {super-tenant}
> [2015-06-19 11:35:48,408]  INFO
> {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2
> service: Version {super-tenant}
> [2015-06-19 11:35:49,842]  INFO
> {net.sf.ehcache.pool.impl.DefaultSizeOfEngine} -  Using user supplied
> filter @
> jar:file:/home/charitha/tools/wso2es-2.0.0-SNAPSHOT/repository/deployment/server/webapps/SHINDIG/WEB-INF/lib/shindig-common-2.5.0-beta5.jar!/org/apache/shindig/common/cache/ehcache/SizeOfFilter.txt
> [2015-06-19 11:35:49,849]  INFO
> {net.sf.ehcache.pool.sizeof.JvmInformation} -  Detected JVM data model
> settings of: 64-Bit HotSpot JVM with Compressed OOPs
> [2015-06-19 11:35:50,084]  INFO {net.sf.ehcache.pool.sizeof.AgentLoader} -
>  Extracted agent jar to temporary file
> /home/charitha/tools/wso2es-2.0.0-SNAPSHOT/tmp/ehcache-sizeof-agent7743503959938886447.jar
> [2015-06-19 11:35:50,084]  INFO {net.sf.ehcache.pool.sizeof.AgentLoader} -
>  Trying to load agent @
> /home/charitha/tools/wso2es-2.0.0-SNAPSHOT/tmp/ehcache-sizeof-agent7743503959938886447.jar
> [2015-06-19 11:35:50,088]  INFO
> {net.sf.ehcache.pool.impl.DefaultSizeOfEngine} -  using Agent sizeof engine
> [2015-06-19 11:35:50,136]  INFO
> {net.sf.ehcache.pool.impl.DefaultSizeOfEngine} -  using Agent sizeof engine
> [2015-06-19 11:35:50,167]  INFO
> {org.apache.shindig.gadgets.features.FeatureRegistry} -  Resources from
> res:features/features.txt are loading.
> [2015-06-19 11:35:50,173]  INFO {org.apache.shindig.common.xml.XmlUtil} -
>  The XML processor being used does not support secure parsing.
> [2015-06-19 11:35:50,173]  INFO {org.apache.shindig.common.xml.XmlUtil} -
>  Document builders are being reused.
> [2015-06-19 11:35:50,321]  INFO
> {org.apache.shindig.gadgets.features.FeatureRegistry} -  Resources from
> res:features-extras/features.txt are loading.
> [2015-06-19 11:35:50,832]  INFO
> {org.apache.shindig.config.JsonContainerConfigLoader} -  Resources from
> containers/default/container.js are loading.
> [2015-06-19 11:35:50,832]  INFO
> {org.apache.shindig.config.JsonContainerConfigLoader} -  Container
> configuration containers/default/container.js is being read.
> [2015-06-19 11:35:50,888]  WARN
> {org.apache.shindig.auth.BasicSecurityTokenCodec} -  Token TTL for
> container "default" was 0 and will be ignored.
> [2015-06-19 11:35:50,888]  WARN
> {org.apache.shindig.auth.BasicSecurityTokenCodec} -  Token TTL for
> container "accel" was 0 and will be ignored.
> [2015-06-19 11:35:51,028]  INFO
> {org.apache.shindig.gadgets.oauth2.logger.FilteredLogger} -  Using random
> key for OAuth2 client-side state encryption
> [2015-06-19 11:35:51,028]  INFO
> {org.apache.shindig.gadgets.oauth2.logger.FilteredLogger} -
>  OAuth2CrypterProvider constructor
> [2015-06-19 11:35:51,033]  INFO
> {org.apache.shindig.gadgets.oauth.OAuthModule$OAuthCrypterProvider} -
>  Using random key for OAuth client-side state encryption
> [2015-06-19 11:35:51,033]  INFO
> {org.apache.shindig.gadgets.oauth.OAuthModule} -  A random key for OAuth
> client-side state encryption is being used.
> [2015-06-19 11:35:51,034]  WARN
> {org.apache.shindig.gadgets.oauth.OAuthModule} -  The OAuth signing key did
> not load correctly. To create a key:
>  1. Run the following command:
>  openssl req -newkey rsa:1024 -days 365 -nodes -x509 -keyout testkey.pem \
>  -out testkey.pem -subj /CN=mytestkey
>  openssl pkcs8 -in testkey.pem -out oauthkey.pem -topk8 -nocrypt -outform
> PEM
>
> . 2. Edit the shindig.properties file by adding these lines:
> shindig.signing.key-file =<path-to-oauthkey.pem>
>  shindig.signing.key-name =mykey
> .
> [2015-06-19 11:35:51,140]  INFO
> {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} -  Deployed
> webapp:
> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/SHINDIG].File[/home/charitha/tools/wso2es-2.0.0-SNAPSHOT/repository/deployment/server/webapps/SHINDIG]
> [2015-06-19 11:35:52,594]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
> -  loading default asset app extensions
> [2015-06-19 11:35:52,595]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
> -  checking extension: publisher-common
> [2015-06-19 11:35:52,599]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
> -  checking extension: apim-publisher-commons
> [2015-06-19 11:35:52,600]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
> -  checking extension: publisher-apis
> [2015-06-19 11:35:52,600]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
> -  finished loading default asset app extensions
> [2015-06-19 11:35:52,881]  INFO {app-core} -  Disabled assets: ["ebook",
> "api", "wsdl", "service", "policy", "proxy", "schema", "sequence",
> "servicex", "uri", "wadl", "endpoint"]
> [2015-06-19 11:35:52,882]  INFO {app-core} -  Loading dependencies:
> publisher-common,apim-publisher-commons
> [2015-06-19 11:35:52,882]  WARN {app-core} -  The extension
> publisher-commonhas already been loaded
> [2015-06-19 11:35:52,882]  INFO {app-core} -  Disabled assets: ["ebooks"]
> [2015-06-19 11:35:54,413]  INFO {rxt-permissions} -  [permissions] loading
> permissions for tenant -1234
> [2015-06-19 11:35:54,417]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
> -  ### Starting permission operations ###
> [2015-06-19 11:35:54,417]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
> -  ### registering default permissions ###
> [2015-06-19 11:35:54,417]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
> -  ### registering asset permissions not in the WSO2 permission tree ###
> [2015-06-19 11:35:54,423]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
> -  ### adding permissions to role: Internal/publisher ###
> [2015-06-19 11:35:54,426]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
> -  ### adding permissions to reviewer role ###
> [2015-06-19 11:35:54,427]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
> -  ### Permission operations have finished ###
> [2015-06-19 11:35:54,430]  INFO {rxt-permissions} -  [permissions]
> finished loading permissions for tenant -1234
> [2015-06-19 11:35:54,446]  INFO
> {org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} -  Deployed
> webapp:
> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/publisher].File[/home/charitha/tools/wso2es-2.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/publisher]
> [2015-06-19 11:35:54,539]  INFO
> {org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} -  Deployed
> webapp:
> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/social].File[/home/charitha/tools/wso2es-2.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/social]
> [2015-06-19 11:35:54,631]  INFO
> {org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} -  Deployed
> webapp:
> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/sso].File[/home/charitha/tools/wso2es-2.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/sso]
> [2015-06-19 11:35:54,918]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
> -  loading default asset app extensions
> [2015-06-19 11:35:54,918]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
> -  checking extension: store-common
> [2015-06-19 11:35:54,920]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
> -  checking extension: store-apis
> [2015-06-19 11:35:54,920]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
> -  finished loading default asset app extensions
> [2015-06-19 11:35:55,092]  INFO {app-core} -  Disabled assets: ["ebook",
> "api", "wsdl", "service", "policy", "proxy", "schema", "sequence",
> "servicex", "uri", "wadl", "endpoint"]
> [2015-06-19 11:35:55,144]  INFO {rxt-permissions} -  [permissions] loading
> permissions for tenant -1234
> [2015-06-19 11:35:55,149]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
> -  ### Starting permission operations ###
> [2015-06-19 11:35:55,149]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
> -  ### registering default permissions ###
> [2015-06-19 11:35:55,149]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
> -  ### registering permissions not in the WSO2 permission tree ###
> [2015-06-19 11:35:55,175]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
> -  ### adding permissions to role: Internal/store ###
> [2015-06-19 11:35:55,179]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
> -  ### registering store anonymous role : es.store.anon.user ###
> [2015-06-19 11:35:55,180]  WARN {rxt-permissions} -  [permissions] role
> es.store.anon.user was not created as it already exists
> [2015-06-19 11:35:55,180]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
> -  anonymous role registered successfully : true
> [2015-06-19 11:35:55,180]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
> -  ### assigning store permissions to anonymous role ###
> [2015-06-19 11:35:55,183]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
> -  ### Permission operations have finished ###
> [2015-06-19 11:35:55,190]  INFO {rxt-permissions} -  [permissions]
> finished loading permissions for tenant -1234
> [2015-06-19 11:35:55,194]  INFO
> {org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} -  Deployed
> webapp:
> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/store].File[/home/charitha/tools/wso2es-2.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/store]
> [2015-06-19 11:35:55,210]  INFO
> {org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} -  Deployed
> webapp:
> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/store-admin].File[/home/charitha/tools/wso2es-2.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/store-admin]
> [2015-06-19 11:35:55,219]  INFO
> {org.apache.tomcat.util.net.NioSelectorPool} -  Using a shared selector for
> servlet write/read
> [2015-06-19 11:35:55,518]  INFO
> {org.apache.tomcat.util.net.NioSelectorPool} -  Using a shared selector for
> servlet write/read
> [2015-06-19 11:35:55,527]  INFO
> {org.wso2.carbon.registry.eventing.internal.RegistryEventingServiceComponent}
> -  Successfully Initialized Eventing on Registry
> [2015-06-19 11:35:55,542]  INFO
> {org.wso2.carbon.store.notifications.management.ComponentManager} -  Store
> event types successfully registered
> [2015-06-19 11:35:55,542]  INFO
> {org.wso2.carbon.store.notifications.internal.StoreNotificationsComponent}
> -  Store Notification service is activated
> [2015-06-19 11:35:55,583]  INFO
> {org.wso2.carbon.core.init.JMXServerManager} -  JMX Service URL  :
> service:jmx:rmi://localhost:11111/jndi/rmi://localhost:9999/jmxrmi
> [2015-06-19 11:35:55,583]  INFO
> {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  Server
>           :  WSO2 Enterprise Store-2.0.0-SNAPSHOT
> [2015-06-19 11:35:55,584]  INFO
> {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  WSO2
> Carbon started in 19 sec
> [2015-06-19 11:35:55,706]  INFO
> {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} -  Mgt Console URL
>  : https://192.168.122.1:9443/carbon/
> [2015-06-19 11:36:01,446]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
> -  Publisher URL : http://192.168.122.1:9763/publisher
> [2015-06-19 11:36:02,194]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
> -  Store URL : http://192.168.122.1:9763/store
> [2015-06-19 11:36:06,095]  WARN {app-core} -  There are no pageHandlers
> defined for tenant undefined
> [2015-06-19 11:36:07,038]  INFO
> {org.wso2.carbon.identity.application.authentication.framework.store.SessionDataStore}
> -  Thread pool size for session persistent consumer : 100
> [2015-06-19 11:36:07,046]  INFO
> {org.wso2.carbon.identity.application.authentication.framework.store.SessionDataStore}
> -  Session Data Persistence of Authentication framework is not enabled.
> [2015-06-19 11:36:07,046]  INFO
> {org.wso2.carbon.identity.application.authentication.framework.store.SessionDataStore}
> -  Session Data CleanUp Task of Authentication framework is not enabled.
>
> [1] https://github.com/splinter/es-workshop-1-samples
> [2] https://localhost:9443/publisher/asts/api/apis/documents
> [3] https://localhost:9443/publisher/asts/api/tiers
>
> --
> *Charitha Goonetilleke*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 751 3669 <%2B94777513669>
> Twitter:@CharithaWs <https://twitter.com/CharithaWs>, fb: charithag
> <https://www.facebook.com/charithag>, linkedin: charithag
> <http://www.linkedin.com/in/charithag>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to