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.
Related
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!
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 am using spring framework in one of my application. It was working fine till now. But today in morning when I tried to run my application, it was throwing errors for not able to intialise spring framework. So I tried loading xsd files in the browser but in vain because it was showing forbidden page to me. And the page contains "You don't have permission to access /schema/beans/spring-beans-3.0.xsd on this server". I even tried loading 3.1 xsd, 2.5 xsd but not able to access any of them and showing same error page.
I know, I must download xsd and put them into my classpath but i haven't done and now i got this.
Can anyone please help me out of this? Or if any body has 3.0 xsd then can you please give it to me.
I want following xsds:
spring-beans-3.0.xsd
spring-context-3.0.xsd
spring-mvc-3.0.xsd
and xsds that are being called by the above one internally.
Thank you every one.
The XSD files are included in the Spring JAR files, so you already have them. For example, spring-context-3.0.xsd is inside spring-context.jar, in the org/springframework/context/config package. The spring-beans.xsd is in spring-beans.jar (org/springframework/beans/factory/xml package) and I'll leave finding the last one as an exercise to the reader.
I had the same problem, it appears that the public schemas on the internet are unavailable. I found those spring-beans-2.5.0.xsd and save it in a directory of my app.
I changed the schema location to use the xsd on the path I gave it e.g. (WEB-INF/xml/spring-beans-2.5.0.xsd)
http://www.springframework.org/schema/beans/spring-beans-2.5.0.xsd
to
WEB-INF/xml/spring-beans-2.5.0.xsd
and that fixed it.
Public Schema was unavailable. It has been restored. Don't know where to look for status, but it's working now.
I faced with the same issue today. The problem was that versions of XSD's and the Spring library in classpath were incompatible (3.0 vs 2.5.5 in my case). I fixed XSD versions in my spring XML's and it works fine now
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