At first, I placed the java class file together with the wsdl files inside the WEB-INF folder, they successfully connected. But when I moved the java class file and the wsdl files inside the scr folder because I need to call the java class inside the jsp file, something went wrong. The java class now is full of errors. Seems like they didn't connected. I already configured the wsdl file in web client service. I'm using eclipse as development tools.
Related
I have a little Java Web Application project using IntelliJ, Tomcat and jersey.
My project structure looks like this:
src
main
java
package
Main.java
resources
test
web
WEB-INF
web.xml
index.jsp
I want to add a resource xml file. It should be deployed with some initial values and it should be possible to read from the file and also to write to it - all from java code. It should not be accessible directly from, let's say, a browser.
Where should I put that file and how can I access it when I've put it there?
I have some GWT RPC Client files and I will compile them in Eclipse and want to replace these client class files in WebSphere. But When I compile in Eclipse, multiple class file will be generated for single source file like $file1.class, $file1.class for file1.java. And in deployment folder of WebSphere when I replace all these files changes are not refelcting even after restarting the server.
Thanks
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.
we have created Jsp Project, in that we had written Java class and use external jar file. Project is running fine in my local tomcat server, while when we deploy it in the main server we don't have access of web apps folder they gave me server access FTP and am sending that my project to that it deploying but only client side code run it show Error when server side code comes
http://www.incometaxindiapr.gov.in/incometaxindiacr/cbdt-cir-not/Home.jsp please check this
class file not compile
i think i am Unable to add class file please help how to add class file an all.
If it runs locally and not able to run while deploying to Server, then first thing what I think you should check is, when you transfer your war to server using FTP at that place only, WAR which is transferred is in correct format,
I mean whether .class files are all transferred and in classes folder only. if all this is correct check versions mismatch. rest can be checked by logs only.
I need to read a properties file in the server-side of a GWT application.
I've tried to put the file in the root of the application and into the src folder. However, in both tries, A FileNotFound exception is thrown.
I create the file using the following code:
File file = new File("errors.properties");
Is it wrong? Where should I put the file?
into your war folder. I suppose you use Eclipse and integrated Google plugin to generate the app and also to run it.
You have to read the properties in your server side code and then send it to your GWT code. See this page for server-client communication. The file itself should probably be in your war folder. Also you cannot use File in your GWT code as it is not a supported emulated JRE library class. See here for supported library classes available in GWT.