java.io.filenotfoundexception jboss project localhost - java

I've been working on web project written in jsp and running on jboss. I have problem after deployment of project. I'm getting an error after hitting localhost:8080/Myapp : java.io.filenotfoundexception Null/easyfile.properties <Can't find easyfile.properties>. I have this file in conf folder in my app directory. For sure I need to properly point to this file or place it somewhere in jboss installation folder but unfortunately I'm new to Java and 've been working with PHP but I've been assigned to client who has home site written as one jsp site with some xml. I need to change their frontend a little bit but I'm trying to set up my local environment without success.
Any help would be great.
Regards Adam

Related

Cant get tomcat to show webapp from deployed .war file

I followed a tutorial and am trying to learn to make my own web app. I am using Tomcat 8.0.47 and Spring MVC. Issue is I can go to localhost:8080 and see that the server is on but I cant see my basic webapp running when visiting localhost:8080/CrunchifySpringMVCTutorial page. I made a WAR file and dropped it into the /webapps/ folder inside tomcat folder and console shows that it deployed the war file. Any help is appreciated.
I am following this tutorial: http://crunchify.com/simplest-spring-mvc-hello-world-example-tutorial-spring-model-view-controller-tips/
rather than paste all the files I decided to link the guide. My set up is the same but cant figure out why it is not working. thanks.
Looks like the issue was that I needed to add the CATALINA_HOME system variable to properly setup my tomcat server

Run JSP from netbeans project in Tomcat Server

Hi I already develop my application using Netbeans IDE.
Now I want to run my application in Tomcat server for actual use. I already copy my project to tomcat/webapps.
But when I tried to run my application:
http://localhost:8081/myAppFolder/
it gives me an error message :The requested resource (/Opportunities-Registration/) is not available.
I should change the url to make it work:
http://localhost:8081/Opportunities-Registration/web/index.jsp
How can I open my application using http://localhost:8081/myAppFolder/ insteand of http://localhost:8081/Opportunities-Registration/web/index.jsp ?
Update:
All my servlet is also become 404 not found
Thank you
SOLVED
Solution:
1. copy .war file which is contained in dist folder of your netbeans project
2. Place your .war file to tomcat/webapps
3. Start your tomcat
4. You are good to go

Website directory structure different from eclipse

I am coding a website using java servlets and am using eclipse and tomcat. When I test it using localhost, it works fine. But when I am deploying it on my actual website, the directory structure is messed up and the files are not called properly.
My eclipse directory structure on localhost is
Project Name
.src/packageName/java files
.WebContent/HTML files.
When I make a call from the html files, I use the relative location and tomcat automatically knows to look in the src/packageName folder. For example, from the /WebContent/login.html page makes a onClick call as follows,
. This will automatically trigger the java file in /src/packageName/welcome
When I am deploying it in my actual website, the WebContent/login.html is throwing an error WebContent/welcome file is not found. How do I tell my website to search in /src/packageName folder?
Hmm...have you been sure to package the application as a war for deployment.

Tapestry File Upload via Tomcat

I have problems with file uploading on Tapestry 5.3.6.
I am using this as a reference http://tapestry.apache.org/uploading-files.html
With Jetty web server, everything is fine, file gets uploaded into project directory.
But, If I run app on Tomcat, file get uploaded into Tomcat directory.
Is there any way to point Tomcat to upload file to project directory?
Thanks in advance :)
As far as i know, you can contribute with a parameter in the contributeApplicationDefaults method in AppModule, like
configuration.add(UploadSymbols.REPOSITORY_LOCATION,);
Try that.

Tomcat and web services

Hello I have a set of web services made in JAVA that are made using a Dynamic Web Project in Eclipse.
When i run an instance of Tomcat 6 in Eclipse and deploy the project on the server it works just fine, I am able to find the wsdl File and access it from a php script.
But when I export the Dynamic Web Proyect as a WAR file and deploy it on the webapps file inside the real Tomcat server, and start the server, I have no idea how to find the wsdl file or how to access it from my php scripts, its just not working.
Is there any thing i have to do to get this to work?
You should try to re-download Tomcat.
If you generate dynamic wsdl then . you can find it at URL something like
http://example.com/context/demo.wsdl
It will be easy to answer your questing if you post web.xml and other related xml config file.

Categories

Resources