gudii9
asked on
JSF example issues
Hi,
I am trying below JSF example from link
http://www.vogella.com/articles/JavaServerFaces/article.html
I do not see managed bean tab when i double click on the faces config. Do i need to enable anything to see it. I only see 3 tabs
1.Diagram
2.Tree
3. Source
When i click the Diagram and go to outline there are options like
Application, Factory, lifeCycle, Components, Converters,Manageed Beans(with right click option), Navigation Rules, Referred Beans, Render Kits, Validators, Extenstons. Not sure what they are for .
When i run the first application getting below error
Caused by: java.lang.ClassNotFoundExc eption: javax.servlet.jsp.jstl.cor e.Config
do i need to have jstl-1.2.jar apart from jstl-api.1.2.jar, jstt-impl.1.2.jar and where i have to put them in
Build path?
or under
web-inf/lib
or both places
or some oher place and what is the difference in putting in these differenc palces.
I put three jars in java build path then user libraries and then copied to web-inf/lib folder still getting error as below
Sep 11, 2013 12:30:46 PM org.apache.catalina.core.A prLifecycl eListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin;C:\Win dows\Sun\J ava\bin;C: \Windows\s ystem32;C: \Windows;C :/Program Files/Java/jre7/bin/client ;C:/Progra m Files/Java/jre7/bin;C:/Pro gram Files/Java/jre7/lib/i386;C :\Windows\ system32;C :\Windows; C:\Windows \System32\ Wbem;C:\Wi ndows\Syst em32\Windo wsPowerShe ll\v1.0\;C :\Program Files\Java\jdk1.6.0_41\bin ;C:\softwa re\eclipse -jee-juno- SR1-win32\ eclipse;;.
Sep 11, 2013 12:30:47 PM org.apache.tomcat.util.dig ester.SetP ropertiesR ule begin
WARNING: [SetPropertiesRule]{Server /Service/E ngine/Host /Context} Setting property 'source' to 'org.eclipse.jst.jee.serve r:de.vogel la.jsf.fir st' did not find a matching property.
Sep 11, 2013 12:30:47 PM org.apache.coyote.http11.H ttp11Proto col init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Sep 11, 2013 12:30:47 PM org.apache.catalina.startu p.Catalina load
INFO: Initialization processed in 762 ms
Sep 11, 2013 12:30:47 PM org.apache.catalina.core.S tandardSer vice start
INFO: Starting service Catalina
Sep 11, 2013 12:30:47 PM org.apache.catalina.core.S tandardEng ine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.37
Sep 11, 2013 12:30:47 PM org.apache.catalina.core.S tandardCon text addApplicationListener
INFO: The listener "org.apache.myfaces.webapp .StartupSe rvletConte xtListener " is already configured for this context. The duplicate definition has been ignored.
Sep 11, 2013 12:30:47 PM org.apache.myfaces.webapp. StartupSer vletContex tListener dispatchInitializationEven t
INFO: Checking for plugins:org.apache.myfaces .FACES_INI T_PLUGINS
Sep 11, 2013 12:30:47 PM org.apache.myfaces.shared_ impl.confi g.MyfacesC onfig getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.RENDER _CLEAR_JAV ASCRIPT_FO R_BUTTON' found, using default value false
Sep 11, 2013 12:30:47 PM org.apache.myfaces.shared_ impl.confi g.MyfacesC onfig getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.RENDER _HIDDEN_FI ELDS_FOR_L INK_PARAMS ' found, using default value false
Sep 11, 2013 12:30:47 PM org.apache.myfaces.shared_ impl.confi g.MyfacesC onfig getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.SAVE_F ORM_SUBMIT _LINK_IE' found, using default value false
Sep 11, 2013 12:30:47 PM org.apache.myfaces.shared_ impl.confi g.MyfacesC onfig getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.READON LY_AS_DISA BLED_FOR_S ELECTS' found, using default value true
Sep 11, 2013 12:30:47 PM org.apache.myfaces.shared_ impl.confi g.MyfacesC onfig getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.RENDER _VIEWSTATE _ID' found, using default value true
Sep 11, 2013 12:30:47 PM org.apache.myfaces.shared_ impl.confi g.MyfacesC onfig getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.STRICT _XHTML_LIN KS' found, using default value true
Sep 11, 2013 12:30:47 PM org.apache.myfaces.shared_ impl.confi g.MyfacesC onfig getLongInitParameter
INFO: No context init parameter 'org.apache.myfaces.CONFIG _REFRESH_P ERIOD' found, using default value 2
Sep 11, 2013 12:30:47 PM org.apache.myfaces.shared_ impl.confi g.MyfacesC onfig getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.VIEWST ATE_JAVASC RIPT' found, using default value false
Sep 11, 2013 12:30:47 PM org.apache.myfaces.shared_ impl.confi g.MyfacesC onfig createAndInitializeMyFaces Config
INFO: Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now.
Sep 11, 2013 12:30:47 PM org.apache.myfaces.shared_ impl.confi g.MyfacesC onfig createAndInitializeMyFaces Config
INFO: Starting up Tomahawk on the MyFaces-JSF-Implementation
Sep 11, 2013 12:30:47 PM org.apache.myfaces.config. FacesConfi gurator feedStandardConfig
INFO: Reading standard config META-INF/standard-faces-co nfig.xml
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config. FacesConfi gurator feedWebAppConfig
INFO: Reading config /WEB-INF/faces-config.xml
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config. FacesConfi gurator startLib
INFO: Starting up MyFaces-package : myfaces-api in version : 1.2.9 from path : file:/C:/Users/ganesha/ecl ipseJuno_w orkspace/l jn_servlet sJsp/.meta data/.plug ins/org.ec lipse.wst. server.cor e/tmp0/wtp webapps/de .vogella.j sf.first/W EB-INF/lib /myfaces-a pi-1.2.9.j ar
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config. FacesConfi gurator startLib
INFO: Starting up MyFaces-package : myfaces-impl in version : 1.2.9 from path : file:/C:/Users/ganesha/ecl ipseJuno_w orkspace/l jn_servlet sJsp/.meta data/.plug ins/org.ec lipse.wst. server.cor e/tmp0/wtp webapps/de .vogella.j sf.first/W EB-INF/lib /myfaces-i mpl-1.2.9. jar
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config. FacesConfi gurator startLib
INFO: MyFaces-package : tomahawk not found.
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config. FacesConfi gurator startLib
INFO: MyFaces-package : tomahawk12 not found.
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config. FacesConfi gurator startLib
INFO: MyFaces-package : tomahawk-sandbox not found.
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config. FacesConfi gurator startLib
INFO: MyFaces-package : tomahawk-sandbox12 not found.
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config. FacesConfi gurator startLib
INFO: MyFaces-package : tomahawk-sandbox15 not found.
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config. FacesConfi gurator startLib
INFO: MyFaces-package : myfaces-orchestra-core not found.
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config. FacesConfi gurator startLib
INFO: MyFaces-package : myfaces-orchestra-core12 not found.
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config. FacesConfi gurator startLib
INFO: MyFaces-package : trinidad-api not found.
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config. FacesConfi gurator startLib
INFO: MyFaces-package : trinidad-impl not found.
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config. FacesConfi gurator startLib
INFO: MyFaces-package : tobago not found.
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config. FacesConfi gurator startLib
INFO: MyFaces-package : commons-el not found.
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config. FacesConfi gurator startLib
INFO: MyFaces-package : jsp-api not found.
Sep 11, 2013 12:30:48 PM org.apache.myfaces.shared_ impl.util. LocaleUtil s toLocale
WARNING: Locale name in faces-config.xml null or empty, setting locale to default locale : en_US
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config. FacesConfi gurator handleSerialFactory
INFO: Serialization provider : class org.apache.myfaces.shared_ impl.util. serial.Def aultSerial Factory
Sep 11, 2013 12:30:48 PM org.apache.myfaces.webapp. AbstractFa cesInitial izer initFaces
INFO: ServletContext 'C:\Users\ganesha\eclipseJ uno_worksp ace\ljn_se rvletsJsp\ .metadata\ .plugins\o rg.eclipse .wst.serve r.core\tmp 0\wtpwebap ps\de.voge lla.jsf.fi rst\' initialized.
Sep 11, 2013 12:30:48 PM org.apache.myfaces.webapp. StartupSer vletContex tListener dispatchInitializationEven t
INFO: Checking for plugins:org.apache.myfaces .FACES_INI T_PLUGINS
Sep 11, 2013 12:30:48 PM org.apache.coyote.http11.H ttp11Proto col start
INFO: Starting Coyote HTTP/1.1 on http-8080
Sep 11, 2013 12:30:48 PM org.apache.jk.common.Chann elSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Sep 11, 2013 12:30:48 PM org.apache.jk.server.JkMai n start
INFO: Jk running ID=0 time=0/42 config=null
Sep 11, 2013 12:30:48 PM org.apache.catalina.startu p.Catalina start
INFO: Server startup in 1388 ms
Sep 11, 2013 12:30:49 PM javax.faces.webapp._ErrorP ageWriter handleThrowable
SEVERE: An exception occurred
java.lang.NoClassDefFoundE rror: javax/servlet/jsp/jstl/cor e/Config
at org.apache.myfaces.applica tion.jsp.J spViewHand lerImpl.re nderView(J spViewHand lerImpl.ja va:335)
at org.apache.myfaces.lifecyc le.RenderR esponseExe cutor.exec ute(Render ResponseEx ecutor.jav a:41)
at org.apache.myfaces.lifecyc le.Lifecyc leImpl.ren der(Lifecy cleImpl.ja va:140)
at javax.faces.webapp.FacesSe rvlet.serv ice(FacesS ervlet.jav a:187)
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:290 )
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:2 06)
at org.apache.catalina.core.S tandardWra pperValve. invoke(Sta ndardWrapp erValve.ja va:233)
at org.apache.catalina.core.S tandardCon textValve. invoke(Sta ndardConte xtValve.ja va:191)
at org.apache.catalina.core.S tandardHos tValve.inv oke(Standa rdHostValv e.java:127 )
at org.apache.catalina.valves .ErrorRepo rtValve.in voke(Error ReportValv e.java:103 )
at org.apache.catalina.core.S tandardEng ineValve.i nvoke(Stan dardEngine Valve.java :109)
at org.apache.catalina.connec tor.Coyote Adapter.se rvice(Coyo teAdapter. java:293)
at org.apache.coyote.http11.H ttp11Proce ssor.proce ss(Http11P rocessor.j ava:861)
at org.apache.coyote.http11.H ttp11Proto col$Http11 Connection Handler.pr ocess(Http 11Protocol .java:606)
at org.apache.tomcat.util.net .JIoEndpoi nt$Worker. run(JIoEnd point.java :489)
at java.lang.Thread.run(Unkno wn Source)
Caused by: java.lang.ClassNotFoundExc eption: javax.servlet.jsp.jstl.cor e.Config
at org.apache.catalina.loader .WebappCla ssLoader.l oadClass(W ebappClass Loader.jav a:1680)
at org.apache.catalina.loader .WebappCla ssLoader.l oadClass(W ebappClass Loader.jav a:1526)
... 16 more
After more debugging getting errors like
javax.servlet.ServletExcep tion: javax.servlet.jsp.JspExcep tion: java.io.IOException: Illegal to flush within a custom tag
Document root element "faces-config", must match DOCTYPE root "null".
Please advise. Any ideas, sample code, resources highly appreciated. Thanks in advance.
I am trying below JSF example from link
http://www.vogella.com/articles/JavaServerFaces/article.html
I do not see managed bean tab when i double click on the faces config. Do i need to enable anything to see it. I only see 3 tabs
1.Diagram
2.Tree
3. Source
When i click the Diagram and go to outline there are options like
Application, Factory, lifeCycle, Components, Converters,Manageed Beans(with right click option), Navigation Rules, Referred Beans, Render Kits, Validators, Extenstons. Not sure what they are for .
When i run the first application getting below error
Caused by: java.lang.ClassNotFoundExc
do i need to have jstl-1.2.jar apart from jstl-api.1.2.jar, jstt-impl.1.2.jar and where i have to put them in
Build path?
or under
web-inf/lib
or both places
or some oher place and what is the difference in putting in these differenc palces.
I put three jars in java build path then user libraries and then copied to web-inf/lib folder still getting error as below
Sep 11, 2013 12:30:46 PM org.apache.catalina.core.A
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin;C:\Win
Sep 11, 2013 12:30:47 PM org.apache.tomcat.util.dig
WARNING: [SetPropertiesRule]{Server
Sep 11, 2013 12:30:47 PM org.apache.coyote.http11.H
INFO: Initializing Coyote HTTP/1.1 on http-8080
Sep 11, 2013 12:30:47 PM org.apache.catalina.startu
INFO: Initialization processed in 762 ms
Sep 11, 2013 12:30:47 PM org.apache.catalina.core.S
INFO: Starting service Catalina
Sep 11, 2013 12:30:47 PM org.apache.catalina.core.S
INFO: Starting Servlet Engine: Apache Tomcat/6.0.37
Sep 11, 2013 12:30:47 PM org.apache.catalina.core.S
INFO: The listener "org.apache.myfaces.webapp
Sep 11, 2013 12:30:47 PM org.apache.myfaces.webapp.
INFO: Checking for plugins:org.apache.myfaces
Sep 11, 2013 12:30:47 PM org.apache.myfaces.shared_
INFO: No context init parameter 'org.apache.myfaces.RENDER
Sep 11, 2013 12:30:47 PM org.apache.myfaces.shared_
INFO: No context init parameter 'org.apache.myfaces.RENDER
Sep 11, 2013 12:30:47 PM org.apache.myfaces.shared_
INFO: No context init parameter 'org.apache.myfaces.SAVE_F
Sep 11, 2013 12:30:47 PM org.apache.myfaces.shared_
INFO: No context init parameter 'org.apache.myfaces.READON
Sep 11, 2013 12:30:47 PM org.apache.myfaces.shared_
INFO: No context init parameter 'org.apache.myfaces.RENDER
Sep 11, 2013 12:30:47 PM org.apache.myfaces.shared_
INFO: No context init parameter 'org.apache.myfaces.STRICT
Sep 11, 2013 12:30:47 PM org.apache.myfaces.shared_
INFO: No context init parameter 'org.apache.myfaces.CONFIG
Sep 11, 2013 12:30:47 PM org.apache.myfaces.shared_
INFO: No context init parameter 'org.apache.myfaces.VIEWST
Sep 11, 2013 12:30:47 PM org.apache.myfaces.shared_
INFO: Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now.
Sep 11, 2013 12:30:47 PM org.apache.myfaces.shared_
INFO: Starting up Tomahawk on the MyFaces-JSF-Implementation
Sep 11, 2013 12:30:47 PM org.apache.myfaces.config.
INFO: Reading standard config META-INF/standard-faces-co
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config.
INFO: Reading config /WEB-INF/faces-config.xml
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config.
INFO: Starting up MyFaces-package : myfaces-api in version : 1.2.9 from path : file:/C:/Users/ganesha/ecl
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config.
INFO: Starting up MyFaces-package : myfaces-impl in version : 1.2.9 from path : file:/C:/Users/ganesha/ecl
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config.
INFO: MyFaces-package : tomahawk not found.
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config.
INFO: MyFaces-package : tomahawk12 not found.
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config.
INFO: MyFaces-package : tomahawk-sandbox not found.
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config.
INFO: MyFaces-package : tomahawk-sandbox12 not found.
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config.
INFO: MyFaces-package : tomahawk-sandbox15 not found.
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config.
INFO: MyFaces-package : myfaces-orchestra-core not found.
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config.
INFO: MyFaces-package : myfaces-orchestra-core12 not found.
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config.
INFO: MyFaces-package : trinidad-api not found.
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config.
INFO: MyFaces-package : trinidad-impl not found.
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config.
INFO: MyFaces-package : tobago not found.
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config.
INFO: MyFaces-package : commons-el not found.
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config.
INFO: MyFaces-package : jsp-api not found.
Sep 11, 2013 12:30:48 PM org.apache.myfaces.shared_
WARNING: Locale name in faces-config.xml null or empty, setting locale to default locale : en_US
Sep 11, 2013 12:30:48 PM org.apache.myfaces.config.
INFO: Serialization provider : class org.apache.myfaces.shared_
Sep 11, 2013 12:30:48 PM org.apache.myfaces.webapp.
INFO: ServletContext 'C:\Users\ganesha\eclipseJ
Sep 11, 2013 12:30:48 PM org.apache.myfaces.webapp.
INFO: Checking for plugins:org.apache.myfaces
Sep 11, 2013 12:30:48 PM org.apache.coyote.http11.H
INFO: Starting Coyote HTTP/1.1 on http-8080
Sep 11, 2013 12:30:48 PM org.apache.jk.common.Chann
INFO: JK: ajp13 listening on /0.0.0.0:8009
Sep 11, 2013 12:30:48 PM org.apache.jk.server.JkMai
INFO: Jk running ID=0 time=0/42 config=null
Sep 11, 2013 12:30:48 PM org.apache.catalina.startu
INFO: Server startup in 1388 ms
Sep 11, 2013 12:30:49 PM javax.faces.webapp._ErrorP
SEVERE: An exception occurred
java.lang.NoClassDefFoundE
at org.apache.myfaces.applica
at org.apache.myfaces.lifecyc
at org.apache.myfaces.lifecyc
at javax.faces.webapp.FacesSe
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.valves
at org.apache.catalina.core.S
at org.apache.catalina.connec
at org.apache.coyote.http11.H
at org.apache.coyote.http11.H
at org.apache.tomcat.util.net
at java.lang.Thread.run(Unkno
Caused by: java.lang.ClassNotFoundExc
at org.apache.catalina.loader
at org.apache.catalina.loader
... 16 more
After more debugging getting errors like
javax.servlet.ServletExcep
Document root element "faces-config", must match DOCTYPE root "null".
Please advise. Any ideas, sample code, resources highly appreciated. Thanks in advance.
ASKER
>>You have to put them in the WEB-INF/lib folder
just copy under WEB-INF/lib folder right.
After copying do you need to explicitly do below step???
go to
projects(tab at the top)--->properties--->java build path--->libraries--->Add Libraries(not Add Externnal Jars since within same project WEB-INF/lib )
If no when do we need to do that step??(only for when adding external jars??)
Please advise
just copy under WEB-INF/lib folder right.
After copying do you need to explicitly do below step???
go to
projects(tab at the top)--->properties--->java
If no when do we need to do that step??(only for when adding external jars??)
Please advise
You have to put it in the build path only if you want to include the libraries in the file you will build (usually the ear). But I think eclipse adds all the files in the WEB-INF/lib folder of the project to the .ear/.jar file automatically.
ASKER
>>.You have to put it in the build path only if you want to include the libraries in the file you will build (usually the ear).
If i want to run the same EAR on different laptop with diferent eclipse and different server like tomcat/jboss then that previous build path no longer valid right. How do i handle in that scenario. Please advise?
If i want to run the same EAR on different laptop with diferent eclipse and different server like tomcat/jboss then that previous build path no longer valid right. How do i handle in that scenario. Please advise?
It does not matter if it's valid since the ear should contain everything under the WEB-INF folder, so no need for anything else.
ASKER
>>>You have to put it in the build path only if you want to include the libraries in the file you will build (usually the ear). But I think eclipse adds all the files in the WEB-INF/lib folder of the project to the .ear/.jar file automatically.
step1.
>>>put to build path
means
go to
projects(tab at the top)--->properties--->java build path--->libraries--->Add Libraries(not Add Externnal Jars since within same project WEB-INF/lib )
right???
step2.
>>adds all the files in the WEB-INF/lib
MEans
just copy under WEB-INF/lib folder right by going to physical folder location like
C:\Users\ganesha\eclipseJu no_workspa ce\ljn_ser vletsJsp\d e.vogella. jsf.first\ WebContent \WEB-INF\l ib
right????
please advise
so once I do step1 and step2 and export code as EAR file from first laptop then i can go to second laptop with different eclipse, server i can export there same EAR. In the second laptop/machine i do not need to do step1, step2 since those jars already under the EAR ...WEB-INF/lib folder right.'
Please advise
step1.
>>>put to build path
means
go to
projects(tab at the top)--->properties--->java
right???
step2.
>>adds all the files in the WEB-INF/lib
MEans
just copy under WEB-INF/lib folder right by going to physical folder location like
C:\Users\ganesha\eclipseJu
right????
please advise
so once I do step1 and step2 and export code as EAR file from first laptop then i can go to second laptop with different eclipse, server i can export there same EAR. In the second laptop/machine i do not need to do step1, step2 since those jars already under the EAR ...WEB-INF/lib folder right.'
Please advise
For step 1, projects(tab at the top)--->properties--->java build path--->libraries--->Add Jars, although if you have the jar inside the WEB-INF/lib it should add it automatically.
For Step 2, no, it means that when you build your archive file eclipse automatically adds all the files under WEB-INF/ into the archive. You don't need to do anything else.
so once I do step1 and step2 and export code as EAR file from first laptop then i can go to second laptop with different eclipse, server i can export there same EAR.
No. It means that you can deploy the ear in the second laptop. If you want to build it you will have to do the same steps again.
For Step 2, no, it means that when you build your archive file eclipse automatically adds all the files under WEB-INF/ into the archive. You don't need to do anything else.
so once I do step1 and step2 and export code as EAR file from first laptop then i can go to second laptop with different eclipse, server i can export there same EAR.
No. It means that you can deploy the ear in the second laptop. If you want to build it you will have to do the same steps again.
ASKER
so JARs wont copied over,transported over in a EAR. So if i have to build in second laptop again i have to do same step( step 1, projects(tab at the top)--->properties--->java build path--->libraries--->Add Jars, although if you have the jar inside the WEB-INF/lib it should add it automatically.)
Is my understanding is correct? please advise
Is my understanding is correct? please advise
Jars will be copied into the EAR if you have them in WEB-INF/lib. You can copy the EAR to another laptop. But if you want to build the EAR in another laptop you will have to define the build path again (unless you export your preferences and everything).
ASKER
>>>unless you export your preferences and everything
How to export preferences and everything. Can you please laborate with suitable link.
How to export preferences and everything. Can you please laborate with suitable link.
http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Ftimpandexp.htm although by looking at it I am not sure if you can export your build path and everything. For this you will probably need the .project and .classpath files of your project.
ASKER
>>probably need the .project and .classpath files of your project.
How to import/get them as well. Please advise
How to import/get them as well. Please advise
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.