Re: [Dspace-tech] JAVA question
Private static Logger log = Logger.getLogger(SFXLinkTag.class); My question is this: How do I make these same changes in a .jsp, such as display-item.jsp? I was able to figure out the syntax for the 1st and last lines of code, but didn't know what to do with the parameter inside Logger getLogger( ), and of course got an error when I completely left this line out. Sue, Documentation for the Logger class is here: http://logging.apache.org/log4j/docs/api/org/apache/log4j/Logger.html As you can see, there are two variations of getLogger - one that takes a Class (as used above), and one that takes a String. Ultimately, the Class based method is retrieving the name of the class as a string, and in both cases the logger for that name / value is returned (or created). For JSPs, classes are generated automatically, and hence given obscure names. This makes configuration at best awkward, if not impossible. But as you can pass a String to getLogger(), simply pass a value you are comfortable with (ie. DisplayItemJSP). G This e-mail is confidential and should not be used by anyone who is not the original intended recipient. BioMed Central Limited does not accept liability for any statements made which are clearly the sender's own and not expressly made on behalf of BioMed Central Limited. No contracts may be concluded on behalf of BioMed Central Limited by means of e-mail communication. BioMed Central Limited Registered in England and Wales with registered number 3680030 Registered Office Middlesex House, 34-42 Cleveland Street, London W1T 4LB - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ DSpace-tech mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Internal error - User registration
Hi Jayan, Yes, I'm able to create a administrator account using create-administrator script. In fact, I've already created an administrator account in DSpace. I can login in DSpace using the administrator account, as well I can create communities and collections. Similar error occurs when I try to use Feedback Form. In this case, dspace.log shows: 2007-04-14 14:41:35,337 WARN org.dspace.app.webui.servlet.InternalErrorServlet @ :session_id=36364249D19D50DCD988423E60976E2C:internal_error:-- URL Was: http://nms1.senado.gov.br:8080/dspace/feedback -- Method: POST -- Parameters were: -- submit: Send -- email: [EMAIL PROTECTED] -- feedback: DSpace feedback test java.lang.ClassCastException: gnu.mail.handler.TextPlain at javax.activation.MailcapCommandMap.getDataContentHandler( MailcapCommandMap.java:596) at javax.activation.MailcapCommandMap.createDataContentHandler( MailcapCommandMap.java:550) at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:611) at javax.activation.DataHandler.writeTo(DataHandler.java:315) at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:248) at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1268) at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2012) at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1980) at javax.mail.Transport.send(Transport.java:97) at org.dspace.core.Email.send(Email.java:330) at org.dspace.app.webui.servlet.FeedbackServlet.doDSGet( FeedbackServlet.java:154) at org.dspace.app.webui.servlet.FeedbackServlet.doDSPost( FeedbackServlet.java:185) at org.dspace.app.webui.servlet.DSpaceServlet.processRequest( DSpaceServlet.java:147) at org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java :105) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke( StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :105) at org.apache.catalina.core.StandardEngineValve.invoke( StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java :148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection (Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket( PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) 2007/4/14, Jayan Chirayath Kurian [EMAIL PROTECTED]: hi! are u able to create administrator account from Dspace\bin -- *From:* [EMAIL PROTECTED] on behalf of Eduardo Santos *Sent:* Sat 4/14/2007 5:36 AM *To:* [EMAIL PROTECTED] *Subject:* [Dspace-tech] Internal error - User registration Hi all, I have some problems when I attempt to register a new user. It occurs Internal System Error. I have DSpace 1.4.1 on Fedora 6 + Tomcat 5.5.17 + JDK 1.5.0_11. Any ideas? Thanks Eduardo dspace.log: 2007-04-13 18:08:46,900 WARN org.dspace.app.webui.servlet.InternalErrorServlet @ :session_id=8D052190116945B0EB5912C404E61981:internal_error:-- URL Was: http://nms1.senado.gov.br:8080/dspace/register -- Method: POST -- Parameters were: -- submit: Register -- email: [EMAIL PROTECTED] -- step: 1 java.lang.ClassCastException: gnu.mail.handler.TextPlain at javax.activation.MailcapCommandMap.getDataContentHandler( MailcapCommandMap.java:596) at javax.activation.MailcapCommandMap.createDataContentHandler( MailcapCommandMap.java :550) at javax.activation.DataHandler.getDataContentHandler(DataHandler.java :611) at javax.activation.DataHandler.writeTo(DataHandler.java:315) at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:248) at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1268) at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2012) at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java :1980) at javax.mail.Transport.send(Transport.java:97) at org.dspace.core.Email.send(Email.java:330) at org.dspace.eperson.AccountManager.sendEmail(AccountManager.java:294) at org.dspace.eperson.AccountManager.sendInfo (AccountManager.java:254) at org.dspace.eperson.AccountManager.sendRegistrationInfo( AccountManager.java:99) at org.dspace.app.webui.servlet.RegisterServlet.processEnterEmail(