Win a copy of Terraform in Action this week in the Cloud forum!

Nitesh Panchal

Ranch Hand
+ Follow
since Dec 23, 2008
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nitesh Panchal

Hello,
Just wanted to know how can we broadcast our video on website? i mean live streaming? I went through Sun's AvTransmit and AvReceive but they don't work on internet (they work on lan only). My video should be accessible by all in world. What should i do?

JMF is a lot confusing. Are there any 3rd party plugins available for free which can make my work easier?
11 years ago
I made a simple webapplication named MyFirstWebApp and i am trying to configure Virtual Server but it's not working. Here is a list of what i did :

Under Virtual Servers node i created a new Virtual server
id: jacc
Host : www.jacc.com
Default Web Module: MyFirstWebApp
Clicked Ok to create Virtual Server

Then went to Network Listener and added a new Network Listener

Name: MyListener
Protocol: MyListener-protocol
Port: 8888
Address: 0.0.0.0
Selected Default Web Server : jacc

Then again went to jacc Virtual server and selected Network Listener as MyListener

Then went under Applications node and for MyFirstWebApp selected Default Virtual Server as jacc

Lastly, restarted the server and went into hosts file and added entry
127.0.0.1 jacc.com

Then i went into browser and typed :

www.jacc.com
jacc.com
localhost:8888
localhost:8888/MyFirstWebApp

for all of the above i get webpage cannot be displayed. What can be wrong here?
Another thing is if removed Default web module (MyFirstWebApp) then i go in browser and type

localhost:8888
it shows one page "your server is up and running"

Please help me. It's now almost 2 days trying to solve this.

I've attached screenshot files also.
Waiting for replies.
11 years ago
Hi Deepak, No replies from you ??
11 years ago
Hello,
EntityManager is null, tried everything but still not able to detect problem. Please help me??

index.xhtml



Users.java My Entity bean



UsersFacade.java my Stateless session bean



here is stack trace :



this is my persistence.xml


Thanks in advance
Sorry, but the link to which you pointed, i am not getting anything out it. If i use wildchar *, the request will be caught but how can i then use that request and make it meaninful in my code so as to fetch correct information from database?

If i use url mapping like

nitesh.xyz.com

it should map to
xyz.com?uid=nitesh


I still didn't get how to do that after reading that link
11 years ago
And what do you mean by add DNS server? aren't DNS server global? which has mapping for each and every(most of) site's ip address? How can i add my DNS server privately on localhost? and can you name any DNS server that i can install on my machine?
11 years ago
Now you got my point friend! That i what i was asking. I don't want to create any subdomains. Wildcard char * should be sufficient. Now let me refer the link to which you pointed. And this is only conceptual help i required. I didn't know where to post this on this forum. So i posted it in this. You may now move it to any place you want. I will ask more doubts if needed after reading the link. Thanks
11 years ago
But i am trying to make project for my college and i am not working in production environment means my site is not hosted, so how to use DNS level api's and how to test it?
You mean to say, only alternative left is to skip this part? let the url show as it is? rather than falling into this complex DNS level api's?
11 years ago
Hey thanks friend but are you sure it's not possible with simple url rewriting?

Refer this link, It says it's possible in Asp.Net so it has to be possible even in Java

http://forums.asp.net/p/942045/1128533.aspx

Waiting for replies.
11 years ago
Hello,
I am trying to create a blogging application where when users registers different blog is created, so main application is say xyz.com and user T registers then he can browse by typing

T.xyz.com

How can this achieved? Any help would be appreciated
11 years ago
Hello,

I successfully configured Glassfish to work with JDBCrealm using Basic Auth. But it's not working for Jsp page. My jsp page is simple using j_security_check and j_username and j_password. It throws me to UnAuthorizedAccess page (login error page). It's strange that it's working for basic auth and not for form based. What can be potential problem can anybody tell?

Also the structure of JDBCrealm table requirement is so ugly, i mean why is it so unnormalized? what if i want to change the structure? like

Users(Userid int, Username varchar(50), Userpassword varchar(50))

Roles(Roleid int, Rolename varchar(20))

UsersXRoles(UsersXRolesId int, UserId int, RoleId int)

??How should i configure this now?

Thanks in advance
Means i did not understand by *clients*. Clients in this case will be my JSF managed bean located on different server (so different JVM). So, you mean i should mark them as @Remote?
Hello,
Say suppose i want to develop a multi tiered web application with presentation on 1 server, business logic on 1 server and database on 1 server, thus 3 servers altogether. But my all beans reside on single server ie 2nd server, so should i mark my beans as @Remote? or @Local? because my presentation is on 1st server and it will call bean on 2nd server. So, different JVM altogether.

Thanks in advance!
Hello,
I am very much new to JSF. But somehow i configured web.xml and now all components work but as soon as i added PrimeFaces framework, the page stopped working.

This is my web.xml



This is my page



And here is my index.xhtml



The code compiles nicely.

When i type
http://localhost:8080/FaceletMasterPage/faces/ContentPage.xhtml
in the address bar it works correctly.

But when i type-
http://localhost:8080/FaceletMasterPage/primefaces_resource/ContentPage.xhtml

It throws resource not found 404.
What can be wrong?

Thanks in advance
11 years ago
JSF
Hello,
I read few tutorials and saw that <ui:insert> is similar to <asp:contentplaceholder> but when i try to create it, the content of masterpage is not seen. Here is the code. Can anybody tell me what is wrong?

This is my index.xhtml (Masterpage)



This is my Child page which wants header and footer from masterpage



The page should display this is header.Here is some new content and this is footer, but it's only displaying here is some new content.

I read that we need to configure facelet-config file and put this in it.


But as soon as i put the above junk in facelet-config, the deployment fails and says there is no such class as FaceletViewHandler, so i removed it. I've spent now almost 3 hours trying to run this simple page. Please help me. I am using JSF 2.0

Thanks in advance
11 years ago
JSF