I am trying to deploy a couple of servlets in glassfish . Both work but I just get one of them printing logs in its own file. The other I don't know to to do it.
I followed this tutorial to make it works for one log:
http://hwellmann.blogspot.com.es/2010/12/glassfish-logging-with-slf4j-part-2.html
I tried to add logback.xml content from one servlet to the other one so I just have one file, but it doesn't work. I also tried to add a second logback, logback2.xml and add it to jvm options. Also failed...
Any idea? I haven't found anything about this on the internet
Ok, I solved it.
I comment my answer because I lost lot of time fixing this. So if anyone can solve it in minutes, good for him.
In logback.xml you have to add the FILE section and the classes which use it for each servlet. After that, upload the servlets to glassfish and restart it. Then it will work. Pretty easy!
Related
Hi I'va the next doubt and I want to know if it's possible to implement. I have some wars deployed in a wildfly/jboss server. For some reason, that server doesn't log anything and the administrator of it seems that doesn't want to do his job. So I was wondering if there's a way to see the log of each war in a browser by a frontend design by me.
I think that I can add in each war a log file, but, there's possible to access each file from a browser and see each one? Also there's no need to be in real time.
Help would be appreciated.
Thanks.
I've been trying to follow this and linked within answers to try and setup a CORS access as apparently localhost and localhost:8080 are two different domains. sigh
Either way, the issue I'm having is that when starting the server a javax.servlet.UnavailableException: org.eclipse.jetty.servlets.CrossOriginFilter exception is thrown. I've no clue what's causing it.
When trying to use the services in it I get a 503 error.
Steps taken:
Copied the jetty-servlet-9.2.13.v20150730.jar from the Geoserver lib folder to the webapps WEB-INF's lib folder.
Pasted the following into my web.xml: Pastebin because editor didn't cooperate
If I remove those lines it works fine, apart from the CORS issues I have. (I'm trying to access colour values of specific pixels.
Other than that and an added WMS, the Geoserver instance is pretty much a fresh install.
UPDATE:
So, following #sideshowbarker's advice, I have inserted a servlets file. Now I'm getting a 404 error, seemingly caused by the GeoServer setup not being able to find the definition of org/eclipse/jetty/util/StringUtil. Errr, what?
Please find the pastebin of this: http://pastebin.com/4R8hZNcM
UPDATE 2:
So, I've inserted the required jar into the WEB-INF folder, and now it's throwing a NoSuchMethodError in regards to the csvSplit method... what? o.O
The jetty-util had a faulty StringUtil class, with a faulty csvSplit method. Replacing this with the most recent (9.4.*) jar solved the issue.
I am encountering a problem in which upon selecting an xhtml file from my project and selecting run on server (apache tomcat) I get the following error 'The file "http://localhost:8080/projectname/faces/index.xhtml" could not be found.
I tried following an example, to make sure I was doing things correctly (setup, creating files correctly), example site:
http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.jst.jsf.doc.user%2Fhtml%2Fgettingstarted%2Ftutorial%2FJSFTools_tutorial_JSF20.html
However it returns similar error only with instead of index as above it is login.
Hope this is enough information, I can supply more info such configuration details as well as images if they are needed. I hope someone has had this exact same problem!
Thanks!
I was able to fix this problem by deleting my eclipse files, and other associated files. Then re-installing them. This fixed the error. I am sure there is a better way of doing this (I hope so anyway) but this will work.
I'm running a paid GAE app written in Java and it's id is clip-share, so the url is http://clip-share.appspot.com/.
I've run it for more than 10 months, and since 2 days ago, it starts not working with 404 not found error on all static and dynamic URL.
When I connect to my app's URL, it just throws this message that there is no index.html file which really does exist.
Error: Not Found
The requested URL /index.html was not found on this server.
I tried re-deploy this app for a few times, but it works with no problem just only for a few minutes right after the deploy, but doesn't work after that.
And also searched for the 404 not found problem, I found this thread but there is no specific information about the cause and some way to solve it.
https://groups.google.com/d/topic/google-appengine/8liP4T-wbSo/discussion
So, what's happening? and how can I handle it?
EDIT:
I found a workaround for this problem, that is making another version, say version 2, and set it as default. But you can still see the problem in this URL for version 1, just put 1. just before the URL. (I want to show you the full URL to the version 1, but I'm rather new to stackoverflow.com, and not permitted to post more than 2 URLs in one question.)
So, the same code and configuration in two different versions, but only version 2, the newer one works.
in web.xml should be welcome file tag. Perhaps you have there /index.html. Find in web.xml "/index.html" and change it to "index.html".
index.html file should be in war folder: /war/index.html
It turns out to be that there was a configuration problem in Google App Engine plugin of Eclipse. That I have several GAE projects in one Eclipse workspace, and other GAE project accidentally deployed to the clip-share. So it looks like that there was 404 not found problems happening, suddenly. Anyway, thank you guys.
i keep getting this error ive been looking at it for a day now and im just beat. i was wondering if anyone can help me.
this is the error
Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://localhost:8080/Learn/messagebroker/amf'
when i do this locally on tomcat server on local development machine it works fine when i brought it over to linux im getting this error.
i dont know what to do anymore it should be straight forward but i'm having no luck.
i do have a web.xml and i see a broker for my remote access so i just dont know what it could possibly be. i would appreciate any help anyone can offer.
Miguel
ok i figuered it out. when i brougth my project over to linux tomcat expects to see all the java classes, flex config files and web.xml file under the root/web-inf. I wish i can change that but thats just the way it works. I was hoping with blazeds i can just put my files on a server and it would all work but thats not the case so if your like me and are new to the whole blazeds scene. Be careful you will nee to change the server web.xml file along with adding additional files under the ROOT/WEB-INF directory. One thing that helped me alot was the LOG files under tomcat_instal/LOG/logfilename.
Good luck to you