Hi Andrea,

I tested the email configuration and it is OK (I received the test email 
sent from dspace to my gmail account).

Then, I tried to log in to dspace using my admin account but it did not 
work as usual. Hence, following your advice I clicked on "forgot password" 
and I placed my gmail address which I previously tested successfully. I 
received nothing.
I examined the dspace log file (please see below); It seems that the 
problem comes from postgresql. It claims that eperson relation does not 
exist. 
Using pgAdmin I examined the database "dspace": I found 90 tables (the 
majority of them begin by cris). However, I did not found epersongroup and 
metadatafieldregistry tables (though I found cris_rp_pdef table which has 
20 columns but with no rows).

Thanks! 
Mohamad

Below is my dspace.log:


2016-01-08 11:02:36,601 INFO  
org.dspace.authenticate.PasswordAuthentication @ 
anonymous:session_id=9D7C3E48034CBFE34449B57211F17B82:ip_addr=127.0.0.1:*authenticate:attempting
 
password auth of user=xxxx*
2016-01-08 11:02:36,601 INFO  org.dspace.app.webui.servlet.PasswordServlet 
@ 
anonymous:session_id=9D7C3E48034CBFE34449B57211F17B82:ip_addr=127.0.0.1:*failed_login:email=xxxx,
 
result=4*
2016-01-08 11:04:00,101 WARN  org.dspace.app.webui.servlet.DSpaceServlet @ 
*anonymous:session_id=9D7C3E48034CBFE34449B57211F17B82:ip_addr=127.0.0.1:database_error:org.postgresql.util.PSQLException\colon;
 
ERROR\colon; relation "eperson" does not exist*
  Position\colon; 15
org.postgresql.util.PSQLException: ERROR: relation "eperson" does not exist
  Position: 15
    at 
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2103)
    at 
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1836)
    at 
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
    at 
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:512)
    at 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:388)
    at 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:273)
    at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
    at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
    at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
    at 
org.dspace.storage.rdbms.DatabaseManager.queryTable(DatabaseManager.java:223)
    at 
org.dspace.storage.rdbms.DatabaseManager.querySingleTable(DatabaseManager.java:364)
    at 
org.dspace.storage.rdbms.DatabaseManager.findByUnique(DatabaseManager.java:513)
    at org.dspace.eperson.EPerson.findByEmail(EPerson.java:193)
    at 
org.dspace.app.webui.servlet.RegisterServlet.processEnterEmail(RegisterServlet.java:222)
    at 
org.dspace.app.webui.servlet.RegisterServlet.doDSPost(RegisterServlet.java:172)
    at 
org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:115)
    at 
org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:73)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at 
org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78)
    at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
    at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
    at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    at 
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
    at 
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    at 
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
    at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)



On Wednesday, January 6, 2016 at 6:22:19 PM UTC+2, Andrea Bollini wrote:
>
> Hi Mohamad,
> 1) are you sure that the dspace database has been setup sucessful? what do 
> you see if you try to access it using pgadmin or another GUI? how many 
> tables? do you have any rows in the epersongroup, metadatafieldregistry, 
> cris_rp_pdef tables?
>
>  2) you can test the email configuration using the command
> [dspace-installDir]/bin$
> ./dspace dsrun org.dspace.core.Email 
>
> if it doesn't work check your dspace.cfg configuration
>
> https://wiki.duraspace.org/display/DSDOC4x/Configuration+Reference#ConfigurationReference-DSpaceEmailSettings
>
> 3) there are no errors in the tomcat startup, you can now focus on the 
> dspace log files
>
> 4) to fast test a configuration change you can apply your changes directly 
> to the dspace.cfg and the other files in the configuration folder but it is 
> better to keep track of them in the build.properties file or in the 
> corresponding source file when the change is not possible trough the 
> build.properties so to preserve them in case of a rebuild of the system. 
> Don't forget to restart tomcat to make active a configuration changes. 
> Without restart changes to the dspace.cfg or other configuration files are 
> not visible
>
> 5) the administration link appears only after a successful login with an 
> administrator account
>
> Andrea
>
> Il 05/01/2016 20:22, Mohamad CHAITOU ha scritto:
>
> Hi Andrea,
>
> *1) First I tried to create a new admin account using create-administrator 
> . I got an exception:*
> Exception: null
> java.lang.NullPointerException
>     at java.util.regex.Matcher.getTextLength(Matcher.java:1234)
>     at java.util.regex.Matcher.reset(Matcher.java:308)
>     at java.util.regex.Matcher.<init>(Matcher.java:228)
>     at java.util.regex.Pattern.matcher(Pattern.java:1088)
>     at 
> org.dspace.storage.rdbms.DatabaseManager.findByUnique(DatabaseManager.java:507)
>     at 
> org.dspace.storage.rdbms.DatabaseManager.find(DatabaseManager.java:475)
>     at org.dspace.eperson.Group.find(Group.java:688)
>     at 
> org.dspace.administer.CreateAdministrator.createAdministrator(CreateAdministrator.java:239)
>     at 
> org.dspace.administer.CreateAdministrator.negotiateAdministratorDetails(CreateAdministrator.java:216)
>     at 
> org.dspace.administer.CreateAdministrator.main(CreateAdministrator.java:82)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:606)
>     at 
> org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225)
>     at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77)
>
>
> *2) I have a local SMTP (exim4) and IMAP (dovecot) servers running well on 
> my localhost (I can use them to send my local account without problems). 
> But Dspace does not send any email when I click on forgot password (It 
> gives internal error). *It seems that dspace cannot use the local SMTP 
> server.
>
>
>
> *3) Below my catalina.log *INFO: Starting Servlet Engine: Apache 
> Tomcat/7.0.42
> Jan 04, 2016 11:24:16 AM org.apache.catalina.startup.HostConfig 
> deployDirectory
> INFO: Deploying web application directory 
> /home/net/apache-tomcat-7.0.42/webapps/manager
> Jan 04, 2016 11:24:40 AM org.apache.catalina.util.SessionIdGenerator 
> createSecureRandom
> INFO: Creation of SecureRandom instance for session ID generation using 
> [SHA1PRNG] took [23,312] milliseconds.
> Jan 04, 2016 11:24:40 AM org.apache.catalina.startup.HostConfig 
> deployDirectory
> INFO: Deploying web application directory 
> /home/net/apache-tomcat-7.0.42/webapps/host-manager
> Jan 04, 2016 11:24:40 AM org.apache.catalina.startup.HostConfig 
> deployDirectory
> INFO: Deploying web application directory 
> /home/net/apache-tomcat-7.0.42/webapps/examples
> Jan 04, 2016 11:24:40 AM org.apache.catalina.startup.HostConfig 
> deployDirectory
> INFO: Deploying web application directory 
> /home/net/apache-tomcat-7.0.42/webapps/jspui
> Jan 04, 2016 11:24:41 AM org.apache.catalina.loader.WebappClassLoader 
> validateJarFile
> INFO: 
> validateJarFile(/home/net/apache-tomcat-7.0.42/webapps/jspui/WEB-INF/lib/jsp-api-2.1.jar)
>  
> - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: 
> javax/el/Expression.class
> Jan 04, 2016 11:24:53 AM org.apache.catalina.startup.TaglibUriRule body
> INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
> Jan 04, 2016 11:24:53 AM org.apache.catalina.startup.TaglibUriRule body
> INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already 
> defined
> Jan 04, 2016 11:24:53 AM org.apache.catalina.startup.TaglibUriRule body
> INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
> Jan 04, 2016 11:24:53 AM org.apache.catalina.startup.TaglibUriRule body
> INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already 
> defined
> Jan 04, 2016 11:24:53 AM org.apache.catalina.startup.TaglibUriRule body
> INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
> Jan 04, 2016 11:24:53 AM org.apache.catalina.startup.TaglibUriRule body
> INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
> Jan 04, 2016 11:24:53 AM org.apache.catalina.startup.TaglibUriRule body
> INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already 
> defined
> Jan 04, 2016 11:24:53 AM org.apache.catalina.startup.TaglibUriRule body
> INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already 
> defined
> Jan 04, 2016 11:24:53 AM org.apache.catalina.startup.TaglibUriRule body
> INFO: TLD skipped. URI: 
> http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already 
> defined
> Jan 04, 2016 11:24:53 AM org.apache.catalina.startup.TaglibUriRule body
> INFO: TLD skipped. URI: 
> http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
> Jan 04, 2016 11:24:53 AM org.apache.catalina.startup.TaglibUriRule body
> INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
> Jan 04, 2016 11:24:53 AM org.apache.catalina.startup.TaglibUriRule body
> INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
> Jan 04, 2016 11:24:53 AM org.apache.catalina.startup.TaglibUriRule body
> INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already 
> defined
> Jan 04, 2016 11:24:53 AM org.apache.catalina.startup.TaglibUriRule body
> INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
> Jan 04, 2016 11:24:53 AM org.apache.catalina.startup.TaglibUriRule body
> INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
> Jan 04, 2016 11:24:53 AM org.apache.catalina.startup.TaglibUriRule body
> INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already 
> defined
> Jan 04, 2016 11:25:11 AM org.apache.catalina.startup.HostConfig 
> deployDirectory
> INFO: Deploying web application directory 
> /home/net/apache-tomcat-7.0.42/webapps/docs
> Jan 04, 2016 11:25:11 AM org.apache.coyote.AbstractProtocol start
> INFO: Starting ProtocolHandler ["http-bio-8080"]
> Jan 04, 2016 11:25:11 AM org.apache.coyote.AbstractProtocol start
> INFO: Starting ProtocolHandler ["ajp-bio-8009"]
> Jan 04, 2016 11:25:11 AM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 54954 ms
> Jan 04, 2016 11:25:21 AM org.apache.jasper.compiler.TldLocationsCache 
> tldScanJar
> INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable 
> debug logging for this logger for a complete list of JARs that were scanned 
> but no TLDs were found in them. Skipping unneeded JARs during scanning can 
> improve startup time and JSP compilation time.
>
>
>
>
>
> *4) If I want to change something in the dspace.cfg (I want to try another 
> SMTP server). Should I modify build.properties and rebuild dspace from 
> scratch ? or can I edit dspace.cfg manually ? 5) The administration link is 
> absent on my home dspace page *Any advice will be surely helpful
> *, *Thanks!
> Mohamad
>
> On Saturday, January 2, 2016 at 8:49:00 PM UTC+2, Mohamad CHAITOU wrote: 
>>
>> Dear All,
>>
>> I have been struggling since a week to solve this problem without 
>> success. 
>> I installed Dspace CRIS (4.x.x) on ubuntu inside a vmware virtual 
>> machine. Everything has compiled successfully. However, when I try to 
>> invoke Dspace from tomact it gives me the following error (plz see below). 
>> It seems that the uri http://www.dspace.org/dspace-tags.tld is not 
>> active (I tried to open it from browser but i gives HTTP error 404).
>> Please find below the error details and the specifications of my 
>> installation.
>>
>>
>> HTTP Status 500 - The absolute uri: http://www.dspace.org/dspace-tags.tld 
>> cannot be resolved in either web.xml or the jar files deployed with this 
>> application
>>
>> type Exception report
>>
>> message The absolute uri: http://www.dspace.org/dspace-tags.tld cannot 
>> be resolved in either web.xml or the jar files deployed with this 
>> application
>>
>> description The server encountered an internal error that prevented it 
>> from fulfilling this request.
>>
>> exception
>>
>> org.apache.jasper.JasperException: The absolute uri: 
>> http://www.dspace.org/dspace-tags.tld cannot be resolved in either 
>> web.xml or the jar files deployed with this application
>>     
>> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:56)
>>     
>> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:445)
>>     
>> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:117)
>>     
>> org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:311)
>>     
>> org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:152)
>>     
>> org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:410)
>>     org.apache.jasper.compiler.Parser.parseDirective(Parser.java:475)
>>     org.apache.jasper.compiler.Parser.parseElements(Parser.java:1427)
>>     org.apache.jasper.compiler.Parser.parse(Parser.java:138)
>>     
>> org.apache.jasper.compiler.ParserController.doParse(ParserController.java:242)
>>     
>> org.apache.jasper.compiler.ParserController.parse(ParserController.java:102)
>>     org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:198)
>>     org.apache.jasper.compiler.Compiler.compile(Compiler.java:373)
>>     org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
>>     org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
>>     
>> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)
>>     
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
>>     
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
>>     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
>>     javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
>>
>> note The full stack trace of the root cause is available in the Apache 
>> Tomcat/7.0.42 logs.
>> Apache Tomcat/7.0.42
>>
>> Installation specification
>> apache-ant-1.8.4
>> apache-maven-3.0.4
>> apache-tomcat-7.0.42
>> psql (PostgreSQL) 9.4.5
>> Oracle JDK 7 (1.7.0_79)
>>
>> Thanks in advance,
>> Mohamad Chaitou
>>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To post to this group, send email to [email protected] 
> <javascript:>.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
> -- 
> Andrea Bollini
> International Business Development, Deputy Leader
> Open Source & Open Standards Strategy, Head
> Cineca
>
> Via dei Tizii, 6
> 00185 Roma, Italy
> tel. +39 06 44 486 087 - mob. +39 348 82 77 525http://www.cineca.it 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to