ADF Glassfish Autodeploy Error - glassfish-3

I am able to deploy an adf application to glassfish server from jDeveloper directly (and the application runs fine too), but when I deploy an EAR file and then put it into the autodeploy folder of my glassfish domain I see the following error in my log (FYI: I had undeployed and restarted glassfish before loading the ear file to autodeploy directory)
[#|2013-03-21T06:27:17.104-0400|SEVERE|glassfish3.1.2|org.apache.catalina.core.ContainerBase|_ThreadID=28;_ThreadName=Thread-2;|ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: oracle.adf.share.glassfish.listener.ADFGlassFishAppLifeCycleListener
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5332)
at com.sun.enterprise.web.WebModule.start(WebModule.java:498)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2019)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1669)
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)

According to error message you don't have ADF libraries installed either on your glassfish domain completly or at this server instance.
Check oracle documentation if you need to install full version of ADF to the weblogic server.
Or if you planning to use free version of ADF - ADF Essentials, try to follow this post.

Related

Running Angular 4 + Core 2.0 on IIS failing to start up

I have an application written in ASP.Net Core 2.0 using the Visual Studio Angular 2 template that I can run successfully on my local IIS installation and local commandline but fails on Windows Server 2012 R2 Standard.
From my local command line I can run:
dotnet myApp.dll
And the application runs successfully until ASP.Net core 2.0. When I copy the deployed application to my 2012 server (where the Core 2.0 runtime as been installed), I cannot call the same dotnet command (both calls are from within the root deployment folder for the app myApp).
On my desktop, the result is a web site that is listening at 5000 (ASP.Net core 2's default port I'm assuming) when running from the published site locations.
However, when I run this same command on the server, I get the error:
Unhandled Exception: System.AggregateException: One or more errors occurred. (We
bpack dev middleware failed because of an error while loading 'aspnet-webpack'.
Error was: Error: Cannot find module 'aspnet-webpack'....
....
....
) ---> Microsoft.AspNetCore.NodeServices.HostingModels.NodeInvocationException:
Webpack dev middleware failed because of an error while loading 'aspnet-webpack'
. Error was: Error: Cannot find module 'aspnet-webpack'
When I look up aspnet-webpack from npmjs.com, I note that this module is "This NPM package is an internal implementation detail of the Microsoft.AspNetCore.SpaServices NuGet package" according to NPM.
I'm assuming that somehow my Core 2.0 install in missing or not able to reference Microsoft.AspNetCore.SpaServices, but at this point I'm not sure where I should be looking for this.
Thanks for any input.
Look at your system variables (right click My PC > Properties > Environment Variables). ASPNETCORE_ENVIRONMENT has to be set to either Staging or Production if you do not have the dotnet sdk installed.
Once you change that value, change it in your project (Properties > Debug tab) as well. Redeploy your project and restart your server. You should see the site working now.
Good luck!

gcloud ubuntu 14.04 tomcat 8 can't deploy sqlitesync.war

I'm working on the backend for a university app development project and have run into a solid brick wall. I'm a bit of a noob with this stuff.
I've been given access to a gcloud vm instance running ubuntu server 14.04 and have been attempting to setup Sqlite-Sync on tomcat 8. My team is attempting to build Xamarin app with an sqlite DB that will sync with a MySQL remote DB.
Initially I installed LAMP, phpMyAdmin and tomcat on the instance. I spent way to long attempting to access tomcat via ipv4 port 8080 as it only seemed to be listening on ipv6. Once I managed to fix that and deployed the SqliteSync.war I ended up with missing dependency issues, specifically glassfish and it's maven dependencies.
So now, having installed the alleged dependencies and remove and reinstalled tomcat (due it refusing to listen to anything on any protocol). I now can't deploy sqlitesync.war (or the most recent version that the OG dev sent me). I've been told that tomcat can't overwrite old .war and the old versions need to be removed manually, yet they don't seem to exist on my instance. Error logs tell me:
java.io.IOException: java.io.FileNotFoundException: /opt/tomcat/webapps/SqliteSync_307.war (Permission denied)
Caused by: java.io.FileNotFoundException: /opt/tomcat/webapps/SqliteSync_307.war (Permission denied)
18-May-2017 10:05:54.295 SEVERE [http-nio-8080-exec-4] org.apache.catalina.core.ApplicationContext.log HTMLManager: FAIL - Deploy Upload Failed, Exception: java.io.FileNotFoundException: /opt/tomcat/webapps/SqliteSync.war (Permission denied)
I'm seriously stuck and would appreciate any assistance. Do I burn the whole thing down and start again? Is it just some sort of permissions issue?

Deploying Grails WAR file from Tomcat 7 to Tomcat 8 gives Ehcache error

I have Grails web project developed in 2.5.1 version. It works fine in Tomcat 7.0.63. When I deploy same running WAR file in Tomcat 8.0.33, it gives ehcache error:
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cache.ehcache.EhCacheFactoryBean]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.springframework.cache.ehcache.EhCacheFactoryBean.setMaxEntriesLocalHeap(J)V
I know it's due to ehcache old version, but the same war was working fine in Tomcat 7, so, what's wrong in Tomcat 8 ?
Any help would be great.
Thanks.
Update: If I replace all jar files of Tomcat 8 by Tomcat 7, then it works. But it seems like stupid thing to do this.
There was multiple ehcache jar files in project. Hibernate cache and spring cache, seems like spring cache was pointing to old jar in Tomcat8. We forced excluding ehcache-core and it worked.
For more info: Exclude plugin

Steps to deploy Guvnor in Glassfish

When I had tried deploying Guvnor onto Glassfish, I hit the same problem as here.
If anyone has performed a successful deployment, what are the steps to deploy a recent version of Guvnor (e.g. 5.4) to a recent version of Glassfish (e.g. 3.1)?
The steps for deploying Guvnor 5.4 are:
Take the guvnor-5.4.0.Final-jboss-as-7.0.war binary war file
Remove WEB-INF/lib/javassist-3.14.0-GA.jar from the binary war file
Add the a glassfish-web.xml file to WEB-INF see here
Replace WEB-INF/web.xml with this
Repackage the binary war file and deploy to glassfish
I have a project on git hub that automates creating a glassfish specific version of guvnor. See here for more information: link

Web Deploy script error - msdeploy.exe is not found on this machine

I'm trying to execute a web deploy script on a clean build Windows Server 2008 R2 machine and getting the following error:
ERROR: The system was unable to find the specified registry key or
value. msdeploy.exe is not found on
this machine. Please install Web
Deploy before execute the script.
The package was created in VS2010 and executes fine on my development box (as always!). If I import the package on the server through IIS everything works fine.
Web Deploy has been installed on the server through the Web Deployment Tool 2.1 via the Web P.I and I've verified the inclusion of msdeploy.exe. I'm running the script through the "IIS Extensions/Web Deploy Command Line" start menu item so I'm guessing that the correct paths should be set. I've also tried it as Administrator with the same error.
Any help greatly appreciated.
Copied from here:
There is an error with the way Microsoft’s Web Deploy 2.1 application creates command line packages from Visual Studio 2010.
If you create a package to publish and then try to run the msdeploy.exe command line publishing tool it on a production server running IIS then you may receive the following error:
ERROR: The system was unable to find the specified registry key or
value. msdeploy.exe is not found on this machine. Please install Web
Deploy before execute the script.
Assuming that you actually have installed Web Deploy from http://www.iis.net/download/WebDeploy then the error may be caused by an incorrect registry path variable in the .cmd file that Visual Studio creates.
Open up the .deploy.cmd file that is part of your deployment package in a text editor and look for the following code block:
if "%MSDeployPath%" == "" (
for /F "usebackq tokens=2*" %%i in
(`reg query "HKLM\SOFTWARE\Microsoft\IIS Extensions\MSDeploy\1" /v InstallPath`)
do (if "%%~dpj" == "%%j" (
set MSDeployPath=%%j
If you have installed Web Deploy 2.0 or higher, then the error is caused by the registry query to HKLM\SOFTWARE\Microsoft\IIS Extensions\MSDeploy\1. If you open up regedit on your production server you’ll find that the appropriate key is actually HKLM\SOFTWARE\Microsoft\IIS Extensions\MSDeploy\2.
Change the reference in the.deploy.cmd file and you’ll be able to successfully run the deployment package.
I have the same problem. Installed WebDeploy_2_10_amd64_en-US. Running the Deploy Command Line I get the same erorr. However, in IIS (version 7) I could use an option import application. With this option (right side of the window in the actions toolbar) I was able to import the application deployment package zip file. All settings were imported correctly except for the application pool. I only had to adjust that and everything was running fine.

Resources