weblogic portal 10.3.2 spring mvc 3.0.6 (annotation) - weblogic-10.x

I found spring pet portal example from the net from location http://springframework.cvs.sourceforge.net/springframework/spring/samples/petportal/
I deployed this example in weblogic but the "ACTION PHASE" never gets executed. "RENDER PHASE" seems to be working fine.
<portlet:action /> tag does not seem to work.
What am I missing?

Related

can you help me fix my STS? as it is not working

I am new to STS and trying to run my first project in it. But it is not showing me run on server option. I have tried "clean install" but still, it is not working. When I checked targeted runtimes it is not showing any server in it. Kindly help me to resolve this issue.
My recommendations for getting started with the Spring Tools 4 for Eclipse are:
start the IDE with an empty workspace
create a new Spring Boot project using the wizard "Import Spring Getting Started Content" to import some getting started guides, for example the Rest Service example
if you decide to create an empty new Spring project, use the wizard "Spring Starter Project" - it is the direct integration for https://start.spring.io - and go from there
All those options get you started with a Spring Boot project which doesn't need a separate server to run on. Spring Boot comes with am embedded server component, so you can just start the Spring Boot application as a regular Java app. No need to install a local server or use the "Run on Server" option in the IDE.

how to create spring template project in sts-3.6.3?

please suggest if is there any other solution to do scaffolding of an app in STS.
In many examples/tutorials about creating web services using Spring MVC framework are using Spring MVC project template. I can't find it in my project tempaltes list. Am i missing some plugin installed?
The best way to create a new Rest service Spring app in STS 3.6.3 and beyond is to select the "Import Spring Getting Started Content". This allows you to get the guides from http://spring.io/guides directly into your workspace. If you look for "Rest Service" in the list of available guides, the wizard will download the initial and the completed version of this guide, showing you how to write a Rest service using the latest Spring versions. The completed version of the project could also be used for just creating a new Spring project and continue to do development from there.

EAP application using Eclipse

I have created a sample EJB Project and a Dynamic project.
Now I have used the interface of EJBProject inside the client project so that it could use the proxy object and in turn interact with the bean to fetch the data.
However, I have created a blank EAP project and have added both the EJBProject and the DynamicWebproject. Now according to the concept I have bundled the EJB and Web inside EAp and have deployed on JBoss Server, so technically if I hit the jboss url then it should direct me to welcome page of client. However I am not getting as expected.
Am I doing any mistake in deploying it??
When you will deploy EAP then a target must be generated in that target you will have application.xml in that you will have context root now use this context root in your url foreg: localhost:yourport/yourprojectname/contextroot
this must take you to your page

Deploy spring app in Websphere get Error 404: SRVE0190E

I'm trying to deploy a spring + angularJS app (packaging as war) into websphere (7.0.0.25), but even for the sample app I cloned from spring, I always get Error 404: SRVE0190E: File not found. And even for the spring app, I have to explicitly specify index.html in the URL, otherwise I get the same error. But the angular side is tolerable, can anyone help me with the spring side?
The sample application is: https://github.com/spring-guides/gs-convert-jar-to-war-maven.git
After doing "mvn clean package" in "/gs-convert-jar-to-war-maven/complete" to get the war, I follow the steps here to upload and deploy the war in websphere:
http://www.packtpub.com/article/deploying-applications-on-websphere-application-server-7.0-part1
I also tried this post to set the custom properties but still didn't work: http://frightanic.com/software-development/solution-to-error-404-srve0190e-on-websphere-6-1/
Also, both my app and the sample spring app don't have a web.xml as spring will take care of it. Both apps work fine in jetty and Tomcat. Only websphere has the problem. Besides, I don't know how to manually configure a web.xml if that will be the solution (need to be pointed to more resources).
The URLs I tried but failed to access the app are:
localhost:9080
localhost:9080/gs-convert-jar-to-war-0_1_0_war
localhost:9080/someAppName
Thanks in advance!
It turns out that websphere 7 doesn't support some spring annotations/classes. My solution is to write a web.xml file and turn off spring auto-configuration.

Spring MVC portlet not deploying

I wrote a simple spring mvc portlet and I copied to "deploy" in liferay it is not automatically getting deployed to tomcat's webapp folder.
Further it is deploying only when the tomcat is restarted.
Also the portal having the spring mvc portlet is not automatically refreshed with the new content.
I had to remove it and add it again.
I tried with a simple portlet app and everything happens automatically by default.
Can you tell me what I am missing here in spring mvc portlet app.
Any suggestions would be helpful..
This link from liferay forum might help you.
Just check if the property auto.deploy.interval=0 or auto.deploy.enabled=false is not set.

Resources