Sachin Pachari

Ranch Hand
+ Follow
since Jan 16, 2012
Sachin likes ...
Eclipse IDE Netbeans IDE Tomcat Server
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
4
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sachin Pachari

Try port number 5432, this is the default port number for postgresql
6 years ago
I think your connection url is wrong,

Please check the connection url, I think its missing the por number
6 years ago
hi guys,

i am new to this whole web service, i am stuck with this JAXRS(RestEasy) project where i have to integrate my EJB with the Service and i am not able to @Inject or @EJB, everytime i try to inject, i get a Null Pointer Exeption, i have been Searching in google to solve this issue,

i have tried all the possible solutions. like adding @Stateless, adding Beans.xml to my META-INF and also configuring RestEasy CDI Injector Factory in my Web.xml

But no use, i am using JBoss AS 7.0, i keep on getting null pointer, is it even possible to inject any object into my (JAX-RS) Web Services ?? Someone please help me, i have been stuck in this point for more than a week. Someone Please Explain me clearly about this.

Any Kind of help is welcome.

Thanks & Regards,
Sachin
6 years ago
hi guys,

i am new to this whole web service, i am stuck with this JAXRS project where i have to integrate my EJB with the Service and i am not able to @Inject or @EJB, everytime i try to inject, i get a Null Pointer Exeption, i have been Searching in google to solve this issue,

i have tried all the possible solutions. like adding @Stateless, adding Beans.xml to my META-INF and also configuring RestEasy CDI Injector Factory in my Web.xml

But no use, i am using JBoss AS 7.0, i keep on getting null pointer, is it even possible to inject any object into my (JAX-RS) Web Services ?? Someone please help me, i have been stuck in this point for more than a week. Someone Please Explain me clearly about this.

Any Kind of help is welcome.

Thanks & Regards,
Sachin
6 years ago
i am using the following tutorial to build a web service project,

http://edwin.baculsoft.com/2012/04/beginning-rest-using-jboss-resteasy/

the above project works fine with the hard coded values that i am passing to the list in the service level,

but when i try to inject my class which will fetch values from the database then it throws null pointer exception, i have already added beans.xml, but still the injected class object is null.

i am not sure where i have gone wrong, any help will be appreciated.

thanks & Regards.
Sachin
6 years ago
Thank you very much for your reply Mohamed Sanaulla,

Those links you gave were very useful for me. got much better idea from them thank you.
6 years ago
Hi i am New to this javaFX, actually i am new to standalone development. so could someone help me with this.

i hav a requirement to develop a standalone application, so i was wondering is it better to develop it using JavaFX, but still i dont hav a clear idea. because i am still in the planning stage so any idea will help me a lot.

i wanted to develop it with swings and SWT, but i really want some thing new.

Thanks in advance guys. i really hope i will get some solid ideas.
6 years ago
This will be part of Web.xml, this will refer to the Resource name which is defined in the server.xml, so the referrence must be added in the web.xml and there must be a definiton for the resource in the server.xml

I think you are also able to add this in the context.xml. so you might want to check the below link to know in detail about this.

http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html

In general the way to define your datasource will depend on the type of project and the type of frame-work, in your case i am guessing it is required in the web.xml

7 years ago
Ok My Bad ! i may Have put it wrongly, but what i ment was, for a War deployment, the contents inside the WebContent folder are important, if you delete the WebContent folder then the IDE Has nothing to Deploy.
7 years ago

Amol Dongre wrote:after deleting the WAR file while Tomcat is running, then Tomcat not deleting the complete web app directory on linux server.
for ex. if i delete amol.war then amol dirctory still remains



I really dont understand what you are expecting from tomcat ?

WebContent folder is a must for a web application (or) a web project.

If are trying to remove unwanted wars from your project then, go to WebContent/WEB-INF/lib and then delete the WAR ! then build your project again.


7 years ago
Thank you for your reply,

Is there any guide that can help in the development of the portlet for liferay ? is there any kind of tutorial ? i am really desperate !

Thanks and Regards
7 years ago
i have a requirement which involves in, creating a dynamic form using web service( the labels in the form will be decided by the web service and the form must be able to be filled in the portal by the normal user).

So is there any way to create this and add it in the my liferay protal, or is there a any predefined portal pulgin or any thing that can help me ?

Need some advice on this topic.

Thanks & Regards.
7 years ago
Jonas X. Yuan, your post was very useful, thank you very much for helping me get an idea about liferay.
7 years ago
posting the error stack strace might help a little bit.
7 years ago
ok so it is a War deployment ?

In that case, Extract the War and then check the xml files to get a better idea. i might suggest you to check(or)Search the xml files for the "myproduct" as in http://localhost:8081/myproduct.

So you might get to know where they have defined the "context", i believe that the context must be defined for all project,

These are the bright ideas i can come up with, hope this helps.
7 years ago