Application is not loading after upgrading to payara 4.1.1.171 - glassfish

Upgraded server from glassfish 3.1 to payara 4.1.1.171, took the glassfish config backup and restored to payara 4.1.1.171. After that my application is not loading and in console it throws this error net::ERR_INCOMPLETE_CHUNKED_ENCODING
If i change the compression attribute to 'off' then application is loading .
<http request-timeout-seconds="2700" chunking-enabled="false" compressable-mime-type="text/html,text/xml,text/plain,image/gif,image/jpeg,image/png,text/css,text/javascript,application/json,application/xml" max-connections="250" compression="on" default-virtual-server="server">
In the above configuration if i change the compression="on" to compression="off" then its working fine.
Don't why this is breaking in payara which was working in glassfish with same setting. I can't turn off the compression which will saves the bandwidth.
Note: Already some issues are reported similar to this Chrome net::ERR_INCOMPLETE_CHUNKED_ENCODING error
but this is not case for me

The issue should be fixed in Payara 4.1.2.172 according to this issue
Use that version instead of 4.1.1.171

Related

org.apache.catalina.LifecycleException: Failed to stop component [SingleSignOn[]]

I am using Apache Tomcat 8.5.12 with JOSSO single sign on .
After configuration I can not start the tomcat server and I get this error.
Everything is well configured.
Does anyone have an idea that can help me to start the server ?enter image description here
Apache Tomcat 8.5 doesn't play nice with the JOSSO Agent for Apache Tomcat 8 as the former has changed the approach for hooking into the event bus. Therefore, an ad-hoc SSO agent is needed, included in an early access release of JOSSO 1.8.12, available here for download : https://github.com/atricore/josso1/releases/tag/1.8.12-rc1-release
A binary distribution is included, hence there's no need to build from the source.
In order to install it, make sure to manually replace the "old" agent artifacts - namely the JOSSO Agent for Tomcat 8 JAR files - with the ones that ship with 1.8.12 RC1.
As far as configuration is concerned, the following changes in the $CATALINA_HOME/lib/josso-agent-config.xml descriptor need to be applied for the JOSSO Agent for Apache Tomcat 8.5 to be instantiated.
From:
<bean class="org.josso.tc80.agent.CatalinaSSOAgent" name="josso-tc80-agent">
To:
<bean class="org.josso.tc85.agent.CatalinaSSOAgent" name="josso-tc85-agent">
As of the JOSSO server component, there is no need to perform any upgrade nor configuration change.

Apache archiva returns http error 503

I am using apache Archiva v. 2.2.0 under Windows Server 2012 R2, Java version 1.8.0_60 inside VirtualBox. It used to work for quite a long time before Windows autoupdate.
After Windows autoupdate I am getting an error message when going to archiva url: HTTP ERROR: 503 . Problem accessing /. Reason: Service Unavailable, Powered by Jetty://.
The Apache Archiva service is running. No error logs are generated. Restarting or even reinstalling of the service has no impact.
After rolling back of Windows update I restore the normal operation of Archiva, but mysteriously, just once, i.e. stopping and restarting of Archiva will cause the same HTTP ERROR 503.
The log file do not indicate any problem or error cuase.
Thank you for any tips.
I faced a similar issue.
I restarted archiva using ./path/to/archiva/apache-archiva-2.2.0/bin/archiva console
for you, since you are using windows .\bin\archiva.bat console
In my case I've found out that the jetty configuration file jetty.xml in ARCHIVA_BASE\conf got corrupted.
Solution:
Stop archiva service
Replace jetty.xml with either a fresh one or from last known working
backup. A fresh copy of jetty.xml can be downloaded from archiva web
site as an apache-archiva-2.2.0-bin.zip. File location within the
zip file is apache-archiva-2.2.1\conf\jetty.xml
Start archiva service
For me it was complaining about ClassDefNotFound errors, this was because I didn't set my JAVA_HOME properly (on Mac OS). After fixing this, the program worked. Maybe that was your issue.

'Bad Gateway' error when loading aspnetcore RC2 default website project

I am attempting to run the default ASP.NET Core Web Application (Web Application Template in VS 2015) via IIS.
I have followed the instructions from the docs here eg setting up a 'No Managed Code' application pool and pointing the Physical Path at the location of the web.config file.
When I attempt to browse to the website root, http://localhost I am getting this error:
HTTP Error 502.3 - Bad Gateway There was a connection error while trying to route the request.
Most likely causes: The CGI application did not return a valid set of
HTTP errors. A server acting as a proxy or gateway was unable to
process the request due to an error in a parent gateway.
The event viewer states:
Failed to start process with commandline 'dotnet ./bin/Debug/netcoreapp1.0/WebApplication2.dll', Error Code = '0x80004005'.
This error shows I have replaced the placeholders
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%"
in web.config with the required values
<aspNetCore processPath="dotnet" arguments="./bin/Debug/netcoreapp1.0/WebApplication2.dll"
(update: these placeholders are replaced when you publish)
As per the troubleshooting instructions I have installed .NET Core Windows Server Hosting Bundle and restarted the server.
Running from the command line via dotnet works
Wondering what to try now.
Ok I figured my issue out. I am pointing the physical path in IIS to the unpublished Visual Studio project root directory. This works in previous versions of .net (ie non dotnet core aspnet projects) but doesnt now.
If you really want this to work then you have to publish your app to a temporary folder and copy the Microsoft.AspNetCore.* binaries back into the bin\Debug\ folder along with the refs and runtimes folders
This is a generic error for when IIS can't find the specified .NET Core components ,and doesn't know where to forward requests. In addition to following the official IIS publishing guide, make sure you have:
Installed the correct versions from the download page for latest .NET Core releases
Specified the correct library versions (explicitly or with wildcards) in your project.json
Included a web.config file (preferably using the publish-iis tool), and that the <aspNetCore> key values have been replaced with local values (source, with examples)
I ran into this while setting up a Core 1.0.0 (final) website on a new Windows 2008 Server. Turns out I had mixed up some of the installers from my dev machine with newer versions, and had mismatched library versions (RC2 vs final). Reinstalling the Server Hosting package fixed the problem.
The key to troubleshooting was to get into the console and use the dotnet commands (and resulting error messages) to iterate until I had my site running from the console, since the IIS error page in the browser was useless. I also found some benefit in a few entries in the system Error logs, but not much.

WildFly 8.1: Server is not connected. Deploy is not available

I'm running WildFly 8.1 in IntelliJ 14. The server starts and is accessible at localhost:8080. The artefact is deployed and the web site can be opened.
BUT
As soon as I redeploy, I get:
Server is not connected. Deploy is not available
Nothing is written to server.log
Ideas?
Make sure that your IP in stanalone.xml set to 127.0.0.1 :).
This one works:).
I fixed the problem:
You need to run exactly the same jdk on Wildfly and IntelliJ. Since I use MacOS and used the apple 1.6 jdk for IntelliJ and Oracle JDK 7 development and Wildfly, so it didn't work. I switched my IntelliJ to Oracle JDK 7 and now it's deploying and running.
The same problem is described here:
http://devnet.jetbrains.com/message/5502042#5502042
And here's a knowledge base entry on how to switch the JDK IntelliJ is runnung under:
https://intellij-support.jetbrains.com/entries/23455956-Selecting-the-JDK-version-the-IDE-will-run-under
Check if management interface of wildfly is bound to localhost/127.0.0.1 as well
I got this same error when trying to deploy to Wildfly (Idea 14.1, Wildfly 9.0.0 Final), but ensuring the same JDK didn't solve it. In my case, the issue was in Wildfly's standalone.xml configuration.
Under <management-interfaces>, I had to add the following:
<native-interface security-realm="ManagementRealm">
<socket-binding native="management-native"/>
</native-interface>
Also, in the <socket-binding-group> section, I had to add the following:
<socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9990}"/>
After making the above changes, deployment worked fine, even with mismatched Idea/Wildfly JDK versions.
Note too that in my case, initial deployment gave the same error ("Server not connected..."), which makes sense if that socket binding wasn't configured.
Same error is comming if (in IDEA) your wildfly user/password is wrong. To change the user/password in IDEA open the "Application Servers" view, edit the configuration of your WildFly server and check the username and password in the "Server" tab.
If you are running standalone-full.xml rather than the default standalone.xml, then pass this environment variable:
-Djboss.server.default.config=standalone-full.xml
instead of passing arguments at the startup script:
...\standalone.bat --server-config=standalone-full.xml
If you are running standalone-full.xml rather than the default standalone.xml, then just delete standalone.xml and rename standalone-full.xml to standalone.xml.This solved the following problem for me :)
Server is not connected. Deploy is not available

Deployment in WebLogic Issue

I am a newbie.I am using Weblogic 10.0.0.0..I am getting an validation error in first page(Login Page wit user name and pwd) as "logger is not initialized",while deploying. I do the same thing with tomcat, and the .war is imported and deployed is success. What is the reason? and also ,in weblogic 10.0.0.0 we have two jdk's(jdk 1.6 and Jrockit)...in my system i m having 1.6.0_17..so which one it takes.i forgot which i choose while installing..whether it takes from wblogic jdk or which one?..wher i m going wrong..its a small one i notice..but could not figure out..plz lemme kno??
This is either because you haven't configured your WLS installation correctly. When you first setup your console there is a parameter you have to change in your auth file that if not set with cause this issue.
Or you are selecting logging during deployment from the admin console and you haven't configured log4j in your application.