Thaks to all i m connected with psql server but now i m facing following
error
HTTP Status 500 -
------------------------------
*type* Exception report
*message*
*description* *The server encountered an internal error () that prevented
it from fulfilling this request.*
*exception*
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 10 in the generated java file
Only a type can be imported. org.apache.log4j.Logger resolves to a package
An error occurred at line: 11 in the generated java file
Only a type can be imported. org.dspace.core.I18nUtil resolves to a package
An error occurred at line: 12 in the generated java file
Only a type can be imported. org.dspace.app.webui.util.JSPManager
resolves to a package
An error occurred at line: 13 in the generated java file
Only a type can be imported. org.dspace.app.webui.util.UIUtil resolves
to a package
An error occurred at line: 14 in the generated java file
Only a type can be imported. org.dspace.content.Community resolves to a package
An error occurred at line: 15 in the generated java file
Only a type can be imported. org.dspace.core.Context resolves to a package
An error occurred at line: 16 in the generated java file
Only a type can be imported. org.dspace.core.LogManager resolves to a package
An error occurred at line: 42 in the jsp file: /index.jsp
Context cannot be resolved to a type
39: <%@ page import="org.dspace.core.LogManager" %>
40:
41: <%
42: Context context = null;
43:
44: Locale sessionLocale = UIUtil.getSessionLocale(request);
45: Config.set(request.getSession(), Config.FMT_LOCALE, sessionLocale);
An error occurred at line: 44 in the jsp file: /index.jsp
UIUtil cannot be resolved
41: <%
42: Context context = null;
43:
44: Locale sessionLocale = UIUtil.getSessionLocale(request);
45: Config.set(request.getSession(), Config.FMT_LOCALE, sessionLocale);
46:
47: try
An error occurred at line: 45 in the jsp file: /index.jsp
Config cannot be resolved
42: Context context = null;
43:
44: Locale sessionLocale = UIUtil.getSessionLocale(request);
45: Config.set(request.getSession(), Config.FMT_LOCALE, sessionLocale);
46:
47: try
48: {
An error occurred at line: 45 in the jsp file: /index.jsp
Config.FMT_LOCALE cannot be resolved to a type
42: Context context = null;
43:
44: Locale sessionLocale = UIUtil.getSessionLocale(request);
45: Config.set(request.getSession(), Config.FMT_LOCALE, sessionLocale);
46:
47: try
48: {
An error occurred at line: 50 in the jsp file: /index.jsp
UIUtil cannot be resolved
47: try
48: {
49: // Obtain a context so that the location bar can display
log in status
50: context = UIUtil.obtainContext(request);
51:
52: // Home page shows community list
53: Community[] communities = Community.findAllTop(context);
An error occurred at line: 53 in the jsp file: /index.jsp
Community cannot be resolved to a type
50: context = UIUtil.obtainContext(request);
51:
52: // Home page shows community list
53: Community[] communities = Community.findAllTop(context);
54: request.setAttribute("communities", communities);
55:
56: // Show home page JSP
An error occurred at line: 53 in the jsp file: /index.jsp
Community cannot be resolved
50: context = UIUtil.obtainContext(request);
51:
52: // Home page shows community list
53: Community[] communities = Community.findAllTop(context);
54: request.setAttribute("communities", communities);
55:
56: // Show home page JSP
An error occurred at line: 57 in the jsp file: /index.jsp
JSPManager cannot be resolved
54: request.setAttribute("communities", communities);
55:
56: // Show home page JSP
57: JSPManager.showJSP(request, response, "/home.jsp");
58: }
59: catch (SQLException se)
60: {
An error occurred at line: 62 in the jsp file: /index.jsp
Logger cannot be resolved to a type
59: catch (SQLException se)
60: {
61: // Database error occurred.
62: Logger log = Logger.getLogger("org.dspace.jsp");
63: log.warn(LogManager.getHeader(context,
64: "database_error",
65: se.toString()), se);
An error occurred at line: 62 in the jsp file: /index.jsp
Logger cannot be resolved
59: catch (SQLException se)
60: {
61: // Database error occurred.
62: Logger log = Logger.getLogger("org.dspace.jsp");
63: log.warn(LogManager.getHeader(context,
64: "database_error",
65: se.toString()), se);
An error occurred at line: 63 in the jsp file: /index.jsp
LogManager cannot be resolved
60: {
61: // Database error occurred.
62: Logger log = Logger.getLogger("org.dspace.jsp");
63: log.warn(LogManager.getHeader(context,
64: "database_error",
65: se.toString()), se);
66:
An error occurred at line: 68 in the jsp file: /index.jsp
UIUtil cannot be resolved
65: se.toString()), se);
66:
67: // Also email an alert
68: UIUtil.sendAlert(request, se);
69:
70: JSPManager.showInternalError(request, response);
71: }
An error occurred at line: 70 in the jsp file: /index.jsp
JSPManager cannot be resolved
67: // Also email an alert
68: UIUtil.sendAlert(request, se);
69:
70: JSPManager.showInternalError(request, response);
71: }
72: finally
73: {
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:95)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:457)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:374)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:339)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:594)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:344)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:391)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
*note* *The full stack trace of the root cause is available in the Apache
Tomcat/7.0.12 logs.*
------------------------------
Apache Tomcat/7.0.12
On Tue, May 7, 2013 at 9:13 PM, Amandeep Kapila
<[email protected]>wrote:
> Hi,
>
> If your server was not so busy at the time you copied the /data
> folder the loss won't be great. Only some data writes that might be
> underway at that time won't be available. Try the way I explained in my
> earlier email with the exact environment and hope for the best.
>
> Best of Luck.
>
>
>
>
> On Tue, May 7, 2013 at 8:08 PM, Pradip Patel <[email protected]> wrote:
>
>> thanks for promt reply
>>
>> no we never shutdown the psqlserver while data backup process
>>
>> so now is there any way to recover that data loss ?
>>
>>
>> On Tue, May 7, 2013 at 5:08 AM, Amandeep Kapila <
>> [email protected]> wrote:
>>
>>> Hello,
>>>
>>> So, you simply copied the /data directory or I must say it was
>>> file level backup. Was it a cold backup (Did you shut down the database
>>> before coping the /data folder)? We used to do this kind of backup on
>>> oracle for a commercial software. The restoration in such a case depends on
>>> the environment you are providing on the new server. It should be the exact
>>> same version. The same RDBMS should be there, same users and permissions
>>> should be there. And if you still get errors in starting the database you
>>> should follow them and try to resolve them. And if it was not a cold backup
>>> you may lose something from your data.
>>>
>>>
>>>
>>>
>>> On Tue, May 7, 2013 at 5:11 PM, Pradip Patel <[email protected]> wrote:
>>>
>>>> no
>>>>
>>>>
>>>> On Tue, May 7, 2013 at 5:08 PM, Amandeep Kapila <
>>>> [email protected]> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> When we backup postgresql database we pg_dump command and
>>>>> when we need to import we import with psql command. Did you do something
>>>>> like pg_basebackup?
>>>>>
>>>>>
>>>>> On Tue, May 7, 2013 at 11:08 AM, Pradip Patel <[email protected]>wrote:
>>>>>
>>>>>> Sir,
>>>>>>
>>>>>> Hi we want some help for our dspace server.
>>>>>>
>>>>>> Our DSpace was running on windows server 2003 suddenly a hard disk
>>>>>> crashed and now we have backup of
>>>>>>
>>>>>> Dspace
>>>>>> Dspacesrc (with assetstore)
>>>>>> and Postgresql (9.0 folder with data folder)
>>>>>>
>>>>>> we reinstall all the ant maven apachae postgresql and DSpace and put
>>>>>> that backup folders in new installation, run command ant update
>>>>>>
>>>>>> we get the screen of dspace and structure we designed but we do not
>>>>>> find any data in that DSpace
>>>>>>
>>>>>>
>>>>>> even after putting the backup data folder in postgresql/9.0 we are
>>>>>> unable to start postgresserver 9.0
>>>>>>
>>>>>> even we deleted the file *.pid from data folder but server not starts.
>>>>>>
>>>>>> we think there is some lose in psql folder and we were try to recover
>>>>>> that but we do not recovered any thing.
>>>>>>
>>>>>> so please guide us what we can do for this is there any option or
>>>>>> solution?
>>>>>>
>>>>>> Wait for positive reply
>>>>>>
>>>>>> --
>>>>>>
>>>>>>
>>>>>> *P R A D I P P A T E L
>>>>>> *
>>>>>>
>>>>>> A S S T. L I B R A R I A N
>>>>>> I N S T I T U T E O F T E C H N O L O G Y
>>>>>> N I R M A U N I V E R S I T Y
>>>>>> A H M E D A B A D
>>>>>> G U J A R A T
>>>>>>
>>>>>> *** Time will not stop for anyone*
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>>> their applications. This 200-page book is written by three acclaimed
>>>>>> leaders in the field. The early access version is available now.
>>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>>> _______________________________________________
>>>>>> DSpace-tech mailing list
>>>>>> [email protected]
>>>>>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>>>>>> List Etiquette:
>>>>>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Cheers,
>>>>>
>>>>> ----
>>>>> aman,
>>>>> (Amandeep Kapila),
>>>>> New Delhi,
>>>>> INDIA.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>>
>>>> *P R A D I P P A T E L
>>>> *
>>>>
>>>> A S S T. L I B R A R I A N
>>>> I N S T I T U T E O F T E C H N O L O G Y
>>>> N I R M A U N I V E R S I T Y
>>>> A H M E D A B A D
>>>> G U J A R A T
>>>>
>>>> *** Time will not stop for anyone*
>>>>
>>>
>>>
>>>
>>> --
>>> Cheers,
>>>
>>> ----
>>> aman,
>>> (Amandeep Kapila),
>>> New Delhi,
>>> INDIA.
>>>
>>
>>
>>
>> --
>>
>>
>> *P R A D I P P A T E L
>> *
>>
>> A S S T. L I B R A R I A N
>> I N S T I T U T E O F T E C H N O L O G Y
>> N I R M A U N I V E R S I T Y
>> A H M E D A B A D
>> G U J A R A T
>>
>> *** Time will not stop for anyone*
>>
>
>
>
> --
> Cheers,
>
> ----
> aman,
> (Amandeep Kapila),
> New Delhi,
> INDIA.
>
--
*P R A D I P P A T E L
*
A S S T. L I B R A R I A N
I N S T I T U T E O F T E C H N O L O G Y
N I R M A U N I V E R S I T Y
A H M E D A B A D
G U J A R A T
*** Time will not stop for anyone*
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette