NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

New user needs help!!!!!!!!

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
CaseyInAL



Joined: 25 Jun 2010
Posts: 6

PostPosted: Mon Jun 28, 2010 2:21 am    Post subject: New user needs help!!!!!!!! Reply with quote

Posted: Fri Jun 25, 2010 5:43 pm Post subject: New NetBeans USer

--------------------------------------------------------------------------------

Created 'default' JSF application - no problems:

Code:
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html">
<h:head>
<title>Facelet Title</title>
</h:head>
<h:body>
Hello from Facelets
</h:body>
</html>


Cannot use port 8080 for the browser so reset it to 8090 in domain.xml and bounced the machine. When run the above (index.xhtml) Glassfish reflects (GlassFish Server 3 tab) shows the changed port:

Code:
Welcome to Felix
Jun 25, 2010 8:40:00 AM com.sun.enterprise.glassfish.bootstrap.ASMain main
================
INFO: Launching GlassFish on Felix platform
INFO: Perform lazy SSL initialization for the listener 'http-listener-2'
INFO: Starting Grizzly Framework 1.9.18-o - Fri Jun 25 08:40:05 EDT 2010
INFO: Starting Grizzly Framework 1.9.18-o - Fri Jun 25 08:40:05 EDT 2010
INFO: Grizzly Framework 1.9.18-o started in: 47ms listening on port 7676
INFO: Using com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as the delegate
INFO: Grizzly Framework 1.9.18-o started in: 172ms listening on port 8090
INFO: Grizzly Framework 1.9.18-o started in: 125ms listening on port 4848
INFO: Grizzly Framework 1.9.18-o started in: 94ms listening on port 3700
INFO: Grizzly Framework 1.9.18-o started in: 157ms listening on port 8181
INFO: SEC1002: Security Manager is OFF.
INFO: Security startup service called
INFO: SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
INFO: Realm admin-realm of classtype com.sun.enterprise.security.auth.realm.file.FileRealm successfully created.
INFO: Realm file of classtype com.sun.enterprise.security.auth.realm.file.FileRealm successfully created.
INFO: Realm certificate of classtype com.sun.enterprise.security.auth.realm.certificate.CertificateRealm successfully created.
INFO: Security service(s) started successfully....
INFO: Created HTTP listener http-listener-1 on port 8090
INFO: Created HTTP listener http-listener-2 on port 8181
INFO: Created HTTP listener admin-listener on port 4848
INFO: Created virtual server server
INFO: Created virtual server __asadmin
INFO: Virtual server server loaded system default web module
INFO: Initializing Mojarra 2.0.2 (FCS b10) for context '/WebApplication1'
INFO: Loading application WebApplication1 at /WebApplication1
INFO: Loading WebApplication1 Application done is 7047 ms
INFO: GlassFish Server Open Source Edition 3.0.1 (22) startup time : Felix(4687ms) startup services(8204ms) total(12891ms)
INFO: Binding RMI port to *:8686
INFO: JMXStartupService: Started JMXConnector, JMXService URL = service:jmx:rmi://KECOOPER-US:8686/jndi/rmi://KECOOPER-US:8686/jmxrmi
INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
INFO: Hibernate Validator bean-validator-3.0-JBoss-4.0.2
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = C:\Program Files\glassfish-3.0.1\glassfish\modules\autostart, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = C:\DOCUME~1\kecooper\LOCALS~1\Temp\fileinstall--3561582851608292364, felix.fileinstall.filter = null}
INFO: Created HTTP listener http-listener-1 on port 8090
INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = C:\Program Files\glassfish-3.0.1\glassfish\domains\domain1\autodeploy\bundles, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = C:\DOCUME~1\kecooper\LOCALS~1\Temp\fileinstall-1071629203224570169, felix.fileinstall.filter = null}
INFO: Perform lazy SSL initialization for the listener 'http-listener-2'
INFO: Grizzly Framework 1.9.18-o started in: 31ms listening on port 8090
INFO: Created HTTP listener http-listener-2 on port 8181
INFO: Grizzly Framework 1.9.18-o started in: 16ms listening on port 8181
INFO: Updating configuration from org.apache.felix.fileinstall-autodeploy-bundles.cfg
INFO: Installed C:\Program Files\glassfish-3.0.1\glassfish\modules\autostart\org.apache.felix.fileinstall-autodeploy-bundles.cfg
INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = C:\Program Files\glassfish-3.0.1\glassfish\domains\domain1\autodeploy\bundles, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = C:\DOCUME~1\kecooper\LOCALS~1\Temp\fileinstall-1379372575616028081, felix.fileinstall.filter = null}


and the WebApplication 1(run) tab shows:

Code:
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
Incrementally deploying WebApplication1
Completed incremental distribution of WebApplication1
run-deploy:
[b]Browsing: http://localhost:8080/WebApplication1/index.xhtml[/b]
run-display-browser:
run:
BUILD SUCCESSFUL (total time: 0 seconds)

When the browser comes up the URL for the default JSF is:

Code:
http://localhost:8080/WebApplication1/index.xhtml


I change the URL address to:

Code:
http://localhost:8090/WebApplication1/faces/index.xhtml


and all is well.

Question 1: Why did the port change from 8080 to 8090 not change the GlassFish server port and correspondingly URL port?

Question 2: Why was /faces not in the URL?

Thanks for any help - Ken
Back to top
CaseyInAL



Joined: 25 Jun 2010
Posts: 6

PostPosted: Tue Jun 29, 2010 2:48 am    Post subject: Reply with quote

Got question #1 (port issue) fixed.

As to question #2 - why will JSF not run in IE7 - more info:
Associated xhtml file types with FireFox as the browser. Then run the JSF (Shift-F6) and all works fine.
If I take the deployed URL (http://localhost:8090/WebApplication2/faces/newjsf.xhtml) and drop it in FireFox - works fine. When do exactly the same thing with IE7 dies and get a Navigation Cancelled message. Have looked up this message and applied appropriate fixes and IE7 still does not work. Then in digging more I see that IE7 does not support xhtml?

Any suggestions - Ken
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo