I am tyring to build dynamic web application using Eclipse Luna and facing one very strange problem. When I build using eclipse there is no "classes" folder generated and hence application is not able to find the classes ie. the servlets. However if I build war file for my project, classes folder is generated and works perfectly fine.
I have searched the web on this issue and tried the possible solutions. Here are the screenshots of my project settings and few solutions that people recommended. Looks like I am missing either some important property or else eclipse is playing weird.
Thanks,
Try giving this path in the output folder Testing123/build/classes instead of Testing123/WebContent/WEB-INF/classes
Related
I've implemented a DSL using the Xtext framework on the Eclipse IDE. Additionally, I've created several UI features (Import/Export handlers, for example) that are available when I run my Eclipse Application.
Now I'm trying to deploy my application as a standalone product. I created a ".product" file in the ".ide" package of my project and everything works when I run my application from that ".product" file.
However, when I DO deploy it, I run the generated ".exe" file and the editor fails when I create a ".mydsl" file (I don't even get the prompt to convert the project to an Xtext project). The error is:
Failed to create injector for org.xtext.myDsl.Mydsl ExtensionFactory: org.xtext.myDsl.Mydsl.MydslExecutableExtensionFactory
I'm totally clueless with this, as I don't believe I'm missing any plugin imports... what could I be missing?
Any help is greatly appreciated! Thanks!
These kind of issues is ususally caused by some inconsistencies in your eclipse metadata in build.properties. Make sure all source folders and resources like the manifest and the plugin.xml are listed there. You should get a warning in eclipse like
There is a quickfix for the issue as well.
I am desperately trying to build a little Vaadin project with login secured pages/views. I have found vaadin4spring and thought I could start based on the security sample. However, after importing the project and running it, I am receiving the message (without any changes at the project):
Failed to load the widgetset:
./VAADIN/widgetsets/org.vaadin.spring.samples.security.Widgetset/org.vaadin.spring.samples.security.Widgetset.nocache.js?1424243461387
I have also tried to compile the widgetset manually, which wasn’t possible at the beginning (missing WebContent folder). After converting the project to use WebFacets and adding Dynamic Web Module the compilation was possible. But the widgetset related error message was still the same.
Can anybody help me with this problem? I have the feeling that it is just a little thing I am missing.
I think you have imported the sample somehow wrong, because you are talking about WebContent folder. I bet you are using eclipse (because of WTP related WebContent folder).
Delete the old project from workspace and possible settings files eclipse created
Choose File->Import->Maven->Existing Maven Project
You probably want to make one fresh install before you start to play with the project: from the top level "parent-pom" project, choose with right click: Run as -> Maven install. Get a cup of coffee, the build will take a while.
Enjoy!
To start e.g. the Security sample you seem to have tried, just execute the main method from org.vaadin.spring.samples.security.ApplicationInitializer. In eclipse, right click on the class and choose Run as Java Application and the app will launch with embedded Tomcat at http://localhost:8080/
I am having trouble setting up the build path of my java project. I am currently in a Co-Op IT position so I am somewhat new to all this. My background is mostly in C++ and I am learning java on the fly. I am also somewhat new to Eclipse (Kepler service release 1).
I am working on a bug on an existing program and need to get the program to build so I can work on it. When I add all of the external .jar files that I know for a fact are the right ones, I am getting this error on two of them :
"Archive for required library: '(location of file)' cannot be read or is not a valid ZIP file"
Two of the other full time guys on my team have gotten the program to run with those exact same .jar files, one running Eclipse Indigo and the other running the same Kepler version as myself. I also was able to open the two .jar files manually and everything appears to be there. After every trial trying to fix this, I have refreshed, cleaned and restarted eclipse. The two other full time guys said they have never seen this error. I would like to get some insight on this from anyone who has any similar experiences so that I don't have to use up much more of their time.
I Had this issue, just fixed by deleting .jar files from Libs directory then copy->paste original Jars again. Then do a complete clean -> rebuild
I got this problem, took help from following link solution
which basically says to
1. delete the corresponding maven download folder
2. maven>update project in eclipse
In my case I deleted hibernate folder, since i was getting error related to hibernate-validator.jar
I had the same error here. What I did to resolve the problem was close and reopen the project.
I got the same problem and found out the root cause is the JDK in my linux shell is set to 1.6, but in the eclipse, the JRE is 1.7.
Using Eclipse without m2e features (Standard Edition) helped me.
Similar problem with Spring toolsuite
Just came across this link that shows a way to get unblocked.
In preferences dialog box go to
Java->Compiler->Building
and change Incomplete build path to "Warning" (from default "Error")
This can be done globally (for all projects), or on a project by project basis.
Check the jar's file permissions/ownership.
I had the same issue on eclipse installed on Linux and fixed it by setting the file permissions right.
In my case ..worked after removing this from spirngrest-servlet.xml file.
<prop key="net.sf.ehcache.configurationResourceName">/Sysehcache.xml</prop>
I think it had to do with default location of maven repository of jar files.
Been at it for 3 days. finally solved it.Hope it helps anyone.Just look for similar think in your spirngrest-servlet.xml file. Good luck.
I just tried the following and it worked:
Close eclipse as there might be some files eclipse is accessing and you won't be able to delete.
Delete all the libraries installed in the maven repositories folder: ".m2/repository"
Open eclipse and update your project(Alt+F5).
What did we just do? : This is possible that the existing libraries in the local repository are erroneous and maven tries to open which it fails in. We have now deleted the already existing library and with the project update, Maven will download the library again which should resolve the issue.
i fixed this by just deleting everything inside of the /Users/username/.m2/repository folder. not the repository folder itself. and then running a mvn clean package in the project folder
I'm not entirely sure why this happens.
Right now I'm able to build the project without running into any issues, and it deploys to the eclipse tomcat server that I have running
So with that kept in mind, the index here is hera.jsp, which I have set in my web.xml file:
to make matters worse it seems like no matter what I try I always get this same error message:
All I can think to include to make this more complete before posting is my build path and the server settings, so here's those as well.
I had similar problem. First of all:
Check if all the sources are copied to tomcat7 webapps, especially hera/WEB-INF/web.xml.
If its not there, try to create dummy folder in your project, e.g. "hera/fix", and in your
"project properties->deployment assembly" add this folder (as a result, "hera/fix -> /" mapping should be created). This worked for me when the eclipse plugin didn't want to copy web.xml.
Check in "project properties->deployment assembly" if all needed libraries are there, if not, add them.
Check why you have problems in src in your eclipse project, as that may interrupt or conflict the dynamic project deployment from eclipse.
Hope it helps.
I'm developing a Java JPA JAX-RS app using NetBeans 7.1.1 and GlassFish 3.1.2, and I'm stuck creating unit tests for my Web Application. I believe the problem is that the glassfish-embedded-static-shell.jar that NetBeans adds to the project's Test Libraries UI folder is conflicting with the one I want (glassfish-embedded-all-3.1.2.jar), which I added manually. I tried different ways of deleting it, but it is apparently special - there is no Remove or Delete option available in the UI. I see that it's mentioned in my project.properties file:
j2ee.platform.embeddableejb.classpath=${j2ee.server.home}/lib/embedded/glassfish-embedded-static-shell.jar
So I tried closing the project, editing out that line, and re-opening the project, but it always returns from the grave. I tried looking for it in the project's properties under Libraries > Compile Tests, but it doesn't show up there. Maybe you've found a way to remove similar special files from your NetBeans project? Thank you -- matt
My final solution was to dump NetBeans and switch (back) to IntelliJ IDEA, which has much more flexible project configuration options. I created separate run configurations for testing and deployment using their module feature:
This worked for me:
Close the project from within Neatbeans. Close Netbeans, then.
Locate from the file ../yourProject/nbproject/project.xml
Remove the following line (almost at the bottom):
<root id="test.src.dir"/>
Open the project again.