jasimcse / fsnet

Automatically exported from code.google.com/p/fsnet
0 stars 0 forks source link

Run the application fron Netbeans #317

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello.

I import the project in Netbeans and clean and  build Firm Social Network 
without problem, but How I run the application from Netbeans, what project I 
run??

Another question, What's the user password default for admin??

Sorry for my English

Thank you

Original issue reported on code.google.com by jluc...@gmail.com on 26 Sep 2012 at 9:49

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/fsnet/wiki/HowToInstall

Original comment by kevin.pogorzelski@gmail.com on 26 Sep 2012 at 11:53

GoogleCodeExporter commented 9 years ago
Hello.

I modify the two files tomcat-users.xml an server.xml with the instructions, 
but the application admin fault with user: admin and password: admin and the 
application fsNetWeb throws this errors:

javax.persistence.PersistenceException: Exception [EclipseLink-7060] (Eclipse 
Persistence Services - 2.1.2.v20101206-r8635): 
org.eclipse.persistence.exceptions.ValidationException
Exception Description: Cannot acquire data source [java:/comp/env/ds/fsnetDS].
Internal Exception: javax.naming.NameNotFoundException: El nombre ds no este 
asociado a este contexto
    org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:417)
    org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:164)
    org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:221)
    org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:209)
    fr.univartois.ili.fsnet.commons.utils.PersistenceProvider.createEntityManager(PersistenceProvider.java:23)
    fr.univartois.ili.fsnet.auth.Authenticate.doGet(Authenticate.java:107)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)

causa ra�z

Exception [EclipseLink-7060] (Eclipse Persistence Services - 
2.1.2.v20101206-r8635): org.eclipse.persistence.exceptions.ValidationException
Exception Description: Cannot acquire data source [java:/comp/env/ds/fsnetDS].
Internal Exception: javax.naming.NameNotFoundException: El nombre ds no este 
asociado a este contexto
    org.eclipse.persistence.exceptions.ValidationException.cannotAcquireDataSource(ValidationException.java:466)
    org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:116)
    org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:94)
    org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:162)
    org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:579)
    org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:228)
    org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:389)
    org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:164)
    org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:221)
    org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:209)
    fr.univartois.ili.fsnet.commons.utils.PersistenceProvider.createEntityManager(PersistenceProvider.java:23)
    fr.univartois.ili.fsnet.auth.Authenticate.doGet(Authenticate.java:107)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)

causa ra�z

javax.naming.NameNotFoundException: El nombre ds no este asociado a este 
contexto
    org.apache.naming.NamingContext.lookup(NamingContext.java:770)
    org.apache.naming.NamingContext.lookup(NamingContext.java:153)
    org.apache.naming.factory.ResourceLinkFactory.getObjectInstance(ResourceLinkFactory.java:97)
    javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
    org.apache.naming.NamingContext.lookup(NamingContext.java:793)
    org.apache.naming.NamingContext.lookup(NamingContext.java:140)
    org.apache.naming.NamingContext.lookup(NamingContext.java:781)
    org.apache.naming.NamingContext.lookup(NamingContext.java:140)
    org.apache.naming.NamingContext.lookup(NamingContext.java:781)
    org.apache.naming.NamingContext.lookup(NamingContext.java:140)
    org.apache.naming.NamingContext.lookup(NamingContext.java:781)
    org.apache.naming.NamingContext.lookup(NamingContext.java:140)
    org.apache.naming.SelectorContext.lookup(SelectorContext.java:121)
    javax.naming.InitialContext.lookup(InitialContext.java:396)
    org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:110)
    org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:94)
    org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:162)
    org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:579)
    org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:228)
    org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:389)
    org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:164)
    org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:221)
    org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:209)
    fr.univartois.ili.fsnet.commons.utils.PersistenceProvider.createEntityManager(PersistenceProvider.java:23)
    fr.univartois.ili.fsnet.auth.Authenticate.doGet(Authenticate.java:107)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)

I use Netbeans and the Tomcat preinstalled with Netbeans.

I observe Tomcat run in the port 8084 and not in 8080,  

Any idea??????

Original comment by jluc...@gmail.com on 26 Sep 2012 at 3:50

GoogleCodeExporter commented 9 years ago
Have you copy libs/derby-*.jar dependency in the tomcat/lib/ directory ?

Original comment by kevin.pogorzelski@gmail.com on 26 Sep 2012 at 4:24

GoogleCodeExporter commented 9 years ago
Thanks 

I copy libs/derby in the TOMCAT directory and then i modifiy de server.xml and 
tomcat-users.xml in this PATH:

C:\Users\Jantonio\.netbeans\6.7\apache-tomcat-6.0.18_base\conf

and now RUN

Thank you

Original comment by jluc...@gmail.com on 27 Sep 2012 at 4:02

GoogleCodeExporter commented 9 years ago

Original comment by sergent....@gmail.com on 23 Jan 2013 at 4:56