Eclipse + GAE: Properties changes and therefor problems with deploy - java

I have had some problems with getting GAE and Maven to work with each other but that is finally solved!
I can now test my servlet locally but when I try to deploy to Google App Engine. It states that my project is not a GAE-project. When I enter the properties window and select Google -> App Engine I get a error message stating "The currently displayed page contains invalid values." I check "Use Google App Engine" and enters Application ID and Version.
When I try to deploy to GAE again I get the same message that its not a GAE-project and when I enter the properties window again I can see that the "Use Google App Engine" is unchecked.
Sometimes the checked state is saved but the Application ID is blank.
What is this error about invalid values and why are not my properties saved?

I ran into same problem. I solved by following steps:
1) Right click on project name, open Properties
2) Select Google-> Web Application
3) Specify the WAR directory (my application is a web application so I do have a war dir)
4) Click OK
With these, i can successfully open the Google App Engine settings page without that error. The changes I made on the App Engine page can also persist

I solved it!
As usual something really stupid...
I had a . in the version number in appengine-web.xml.

Related

Required services that are not installed "jboss.naming.context.java.jboss.mail.GmailSES",

"jboss.deployment.unit.\"EmployeeAttendenceAPI.war\component.CommonMailTemplateWebService.START",
"jboss.deployment.unit.\"EmployeeAttendenceAPI.war\component.ShiftAutomationNewMail.START", "jboss.deployment.unit.\"EmployeeAttendenceAPI.war\".component.ShiftAutomationNewMail.WeldInstantiator",etc
I tried to generate the war in my java application, unable to do, my wild fly server showing this error ,
checked mail server smtp-its configured well in my standalone.bat, also added java mail jar file,
the same mail configuration working fine in another project, why here it showing error
"GmailSES"-is the Resource(lookup) name like this "#Resource(lookup = "java:jboss/mail/GmailSES")*"" in my Backend java code,
this name missed in my Data Source list in a standalone.xml..after added it the error went. GmailSES is a custom name ,So whenever you face the Required services that are not installed try to check the name...and the line where it is showing ;);):(

Netbeans - "Cannot run /usr/bin/firefox" when running web project

I created a new web project on Netbeans. As usual, in order to be sure that everything is OK before coding, I tried to run my project directlywith Netbeans.
For what I can see, evrything is great, except that I have a popin with the followed message : "Cannot run /usr/bin/firefox". A fex months ago, running a project by this way was perfectly good. I don't know what has changed.
What I tired/checked :
The file /usr/bin/firefox exists ;
I give it all the rights (reading, writing, executing) ;
if I specify another browser in Netbeans, the result is the same (of course, the message changes but keeps the same format) ;
My firefox is pefectly running, excpet for that.
I'm currently on Debian and Firefox v45.9.0.
Do you have any idea of what could cause this problem ? Any help is welcome !
Marine
Go to Netbeans menu Tools > Options. In the General Tab, Web browser section tab click edit.
Select Web browser as firefox (I guess it is already like that for you).
On the right hand side, if the text in Arguments section is -remote "openURL({URL})" , bingo that could be the problem.
Change it to {URL}.
Save and try running the project. Hope it works..

How do I get rid of the below stated issue when I try to add tomcat to Spring Tool suite in Ubuntu?

I am trying to add Tomcat server in to STS but I do am not able to do it. Some times the server name doesn't appear when I try to add Tomcat by selecting it from the list, I can't type in the server name myself as well and If that step works properly (I mean when the serve name appears automatically which it should when server is selected form the list); the Finished button is grayed out in the resource page which is the last step in adding the Tomcat server to STS.
Close Eclipse
In {workspace-directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings delete the following two files:
org.eclipse.wst.server.core.prefs
org.eclipse.jst.server.tomcat.core.prefs
Restart Eclipse
this is actually a bug.
got this from this question actually Eclipse add Tomcat 7 blank server name

Eclipse Tomcat not Updating

I am developing an application with SpringMVC and Tomcat using Eclipse. The problem is: the server does not update the changes I am making.
One example:
#RequestMapping(value = "test", method = RequestMethod.GET)
public ModelAndView test(){
ModelAndView mv = new ModelAndView("test");
System.out.println("test");
return mv;
}
Every time I hit the mapped url, Eclipse prints test in my console. If I comment out the println, I get the same result.
Attempts to fix the problem:
clean Tomcat directory
restart the server
close Eclipse
add/remove the project in the Server tab
delete the JSP the method is using
different browsers
All to no effect. It just looks like Tomcat is not updating any changes I make in the code.
To make Eclipse Tomcat update automatically or hot deploy you have to make certain changes in server configuration:
Below are the steps:
Double clicks on the Tomcat Server, refer to "publishing" tab in the "Overview" view, make sure "Automatically publish when resources change" is selected. This should be the default option, to support “hot deploy” resources, for example : JSP, XML and properties files.
In the Tomcat Plugin page, click on the "Modules" view, Select the Module then click on Edit button and make sure "Auto Reload" is "Disabled". Default is enabled.
Start Project in DEBUG mode. Hot Deploy is supported in DEBUG mode only.
Two more things to check:
deploy directory: in the tomcat server UI and according to "deploy path" configuration, check that the output directory has read/write access (you could also remove it and try to publish again : check expected output resources/classes).
deployment assembly: in project properties menu; in the "deployment assembly" section, check that you are publishing all wanted resources. For example, in my case I download/generate some items from maven custom plugin phase and this resources are not published by default. I had to add some target subdirectories here...
I had roughly the same problem and after tried it all with no success I gave up, created another fresh workspace and the problem was gone. Not the ideal solution but hey, it's an option.

Google AppEngine Enhancer: Encountered a problam: Unexpected exception

Possible duplicate of Google App Engine JDO enhancement is failing.
This is my first app engine app which I'm implementing based on "appengine-java-sdk-1.8.8" and Intellij Idea 13.0. Following image shows my application.
I have designed my application based on tutorial on Intellij Idea page.
In web.xml file if I clear lines 8-18 and remove mobilesoft.asia package from src folder then application works fine and when I click on Run button then I can see my "Hello world" message that I have written on index.jsp file.
However, with having of my package and lines 8-18 in web.xml then exception happens when I click on Run button.
Any suggestion would be appreciated.
==============
Edit: I downloaded 'datanucleus-appengine-2.0.0-final-dist' via this page. Seems it is latest release. Then I compared with what items I found under appengine-java-sdk-1.8.8\lib\opt\tools\datanucleus\v2 and realized that seems appengine has newer version of datanucleus. Therefore, app engine shouldn't have problem with compile, I'm confused....
finally I found the solution. I set 'Persistence' to "JPA 2" during creation of project. By set it to "JPA 1" problem solved (I don't know why) and I am able to compile the project.
So, select your project from Project panel. Then hit F4. Project structure opens. Select Google App Enfine from middle panel (under name of your project). Set Persistence to "JPA 1".

Categories