embedded jetty web app server - maven-2

I am trying to build a web app with built in web server and found a source doucumentation here.
this tutorial uses maven to build initial project structure with required setup.
the command used is
mvn archetype:generate -DarchetypeCatalog=http://maven.publicstaticvoidmain.net/archetype-catalog.xml -DarchetypeGroupId=net.publicstaticvoidmain -DarchetypeArtifactId=embedded-jetty-archetype
however running this command gives the error
[WARNING] Error reading archetype catalog http://maven.publicstaticvoidmain.net/archetype-catalog.xml
i am new to maven so unable to figure out the actual problem what i got is that the catalog is not found in the global repository.
what could be the proper fix for this?
any help is appreciated.

ya, the catalog is not present where you are pointing the url.
however, what you want to do can be found here

You are referring to a non-functional site http://maven.publicstaticvoidmain.net.
The example if ever it was working is not suitable now as the above site is defunct.
Are you looking for something related to standalone web app - http://pineapplesoftware.blogspot.in/2012/02/how-to-make-standalone-web-application.html

Related

VSF Unable to get integration template from git repository

I want to set up a new vue storefront project and I've got this error. I don't know why this is happening, can someone help out in this situation?
command: npx #vue-storefront/cli init
? What's your project name? smso
? Choose integration Commercetools
ERROR VSF Unable to get integration template from git repository
Did you connect your frontend application with a commercetools project yet?
You can register for a free trial here: https://commercetools.com/free-trial
And the following documentation describes how to create a project:
https://docs.commercetools.com/merchant-center/projects#create-a-project
So basically just register with your Merchant Center user and then click your initials in the upper right hand corner to create an organisation, a team as well as a project.
You might be running the command vsf init <project_name> in the wrong directory. It happened to me when I was following along this URL. Compare the below two print screens:
The error I got:
The right way to do it:
The commercetools integration is an enterprise solution, so the one in the CLI is a mockup just for knowledge sharing on how to build integrations.
You can check our integrations at https://docs.vuestorefront.io/v2/integrations/

I am not able to connect github using bamboo

Installed latest version of bamboo. I am not able to pull the repository from the github. I am getting below error..
Bamboo Server Edition
Version : 6.9.0
I am getting below error
[Git credentials storage exception.])
Look at agent logs. It should contain more details. Usually it means Bamboo was not able to create or access credentials file.
Bamboo documentation advises against installing Bamboo main directory into C:/Program Files
and also you may want to avoid installing "bamboo-home" into users directory.
I faced the same exception. What worked for me was creating a new folder "X" on desktop and redirecting the Bamboo installation to folder "X."
Similarly, I did the same thing for "bamboo-home."
(Sorry, I don't have the link for bamboo documentation on this. You may want to find it yourself.)

Worklight console app, update

We're using Worklight 6.1.0.0 / WebSphere 8.0.0.2 (ND/aix).
This seemed pretty close to my question too, but for version 6.0.
I've successfully done uninstall/install to our worklight console war package. However, there is some extra work on re-deploying adapters and such. I was looking for a way to just update the console. Among the ant tasks there is a target 'minimal-update', which sounds like what I'm looking for (is it?). However when all other pieces fell into place, I have an error for mapping the datasources:
ADMA0007E: A validation error occurred in task Mapping resource references to resources. The Java Naming and Directory Interface (JNDI) name is not specified for resource reference jdbc/WorklightDS in module Worklight with EJB name .
Contents of the 'minimal-update' task is pretty much the same as for 'install'.
I tried that as update from websphere admin console (but i should use the ant task - right?), that gave me a wizard screen to map jdbc/WorklightDS from package to jdbc/WorklightDS on server. This left me wondering how could I tell this using the ant task.
The ant target minimal-update of the sample configuration files documented at http://pic.dhe.ibm.com/infocenter/wrklight/v6r1m0/topic/com.ibm.worklight.deploy.doc/devref/c_ant_tasks_sample_config_files.html is meant to update a WAR file already deployed (and not uninstalled). In particular, on WAS, it assumes that the JNDI datasources are in place.
If you have uninstalled the WAR file, you should use the target install instead, provided that your databases were created for Worklight 6.1.
If they were created for a previous version of worklight you must upgrade their schema as well running the target 'databases' (and if it's a production installation, you might want to read all the steps in detail at http://pic.dhe.ibm.com/infocenter/wrklight/v6r1m0/topic/com.ibm.worklight.upgrade.doc/devenv/c_upgrade_to_srvr610_in_production_env.html )

IBM Worklight - unable to run some projects

Can you tell me why some of my projects don't run in Worklight? I've received a couple of projects from other people, some work, some don't. I've tried this on Worklight 6.0 as well as 5.0.6 but I'm seeing the same errors, see below (this happens when trying to deploy the app to the Worklight server, on my local console):
[ERROR ] SRVE0315E: An execption occurred: com.ibm.ws.webcontainer.webapp.WebAppErrorReport: java.lang.RuntimeException: BaseProjectLocal is null
at com.worklight.common.util.BaseProjectLocal.get(BaseProjectLocal.java:41)
at com.worklight.server.util.ProjectLocal.get(ProjectLocal.java:55)
at com.worklight.server.util.ProjectLocal.getCoreBeanFactoryS(ProjectLocal.java:95)
at com.worklight.core.util.RssBrokerUtils.getBeanFactory(RssBrokerUtils.java:60)
at com.worklight.core.auth.impl.AuthenticationContext.getOrCreateAuthenticationContext(AuthenticationContext.java:99)
at com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:119)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:194)
at [internal classes]
Caused by: java.lang.RuntimeException: BaseProjectLocal is null
... 9 more
I've also tried to create the project manually and paste the common folder over but that's no good either. Any help would be appreciated here.
Further Information: This is importing a project into Eclipse. This was previously a project that was built in Worklight 5.0.6 and is being imported to Worklight 6.0. I am simply right clicking on the common folder > run as > build all and deploy. I then see the following message 'Failed to deploy the application to Worklight server: Worklight module MobileWalletSencha was not successfully started. Full details of the error are available from the Worklight Development Server console' and then I see the error log shown above. If I add this content to a new project, yes it fails as well then.
It would be easier if you could share one of the projects that fail. With an error like "java.lang.RuntimeException: BaseProjectLocal is null" there is nothing much one can say.
BTW, what and how are you trying to deploy? is this a .war file? a .wlapp file? a project you import to eclipse and try to build? Add more details about the phenomena (anything you can, don't be shy on details). Please edit the question with this information.
Also, if you create a new project - it works, but if you add it the contents of a project that fails, it then fails as well? Edit the question with the contents that makes the project fail - it would be best to share this failing project.

How to run a Sencha Architect MVC application in Liferay

Does anyone have any information on how to properly run a Sencha Architect MVC app in LifeRay?
Designing, and running an app using architect(in a simple local apache server for mock up purposes) seems to work perfectly. My problem is trying to convert this over to use our LifeRay portal(ver 6)
I have tried to use Senchas build tools to create a jsb and build all into one JS script, but that seems to be missing required classes, and it says it is missing files,
"NetworkError: 404 Not Found - htp://localhost:8080/web/www/senchaTest/view/MainViewport.js?_dc=1350398599155".
I have been searching for good info on how to run a Sencha MVC app in liferay, with the proper setups, but have not found any information out there.
Can anyone point me in the correct direction?
All the application which follow the JSR-286 standard can be intergated with liferay,does your application follow the JSR-286 standards?