You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rave.apache.org by "Raminderjeet Singh (Created) (JIRA)" <ji...@apache.org> on 2011/11/17 03:19:51 UTC
[jira] [Created] (RAVE-361) Deploy Rave on Jetty
Deploy Rave on Jetty
--------------------
Key: RAVE-361
URL: https://issues.apache.org/jira/browse/RAVE-361
Project: Rave
Issue Type: Improvement
Reporter: Raminderjeet Singh
Ioan Kiss reported about Rave not working on Jetty and here are the steps he followed
Here are the steps followed in running Rave on Jetty server 7.5.4
1. Download Jetty 7.5.4
2.Download rave (apache-rave-0.5-incubating-bin.zip)
3. Copied portal.war, root.war and demogadgets.war in Jetty/webapps folder
4. start jetty - did not noticed any errors during jetty startup
5. open browser and type http://localhost:8080/portal/
6. The login page was displayed
7. Enter canonical/canonical and hit login button
8. Directory view displayed (Directory: /portal/);
in the jetty console I found the following message (32646
ravePersistenceUnit WARN [qtp31505416-12 -
/portal/j_spring_security_check] openjpa.Runtime - Query "select u from User
u where u.username = :username" is removed from cache excluded permanently.
Query "select u from User u where u.username = :username" is not cached
because it generates multiple SQL statements. A query can be cached only
when it corresponds to a single SQL statement.)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
RE: [jira] [Commented] (RAVE-361) Deploy Rave on Jetty
Posted by "Mahadevan, Venkat" <ve...@mitre.org>.
Here is the error from the admin command line.
asadmin> deploy "C:\Users\venkatm\Desktop\ROOT.war"
remote failure: Error occurred during deployment: Exception while deploying the app [ROOT] : Invalid URL Pattern: [*]. Please see server.log for more details.
Command deploy failed.
-----Original Message-----
From: Mahadevan, Venkat
Sent: Thursday, November 17, 2011 10:00 AM
To: rave-dev@incubator.apache.org
Subject: RE: [jira] [Commented] (RAVE-361) Deploy Rave on Jetty
Hi Jasha
I downloaded Glassfish 3.1.1 and tried it. It looks like there is some issue with the way JPA RESOURCE_LOCAL is handled in Glassfish. This was overcome with adding metadata-complete="true" to the web.xml files (one is shindig and one is rave-portal-resources).
I having some issues with running shindig though. Here is the error that I got. Looks like there is some issue with the URL mapping. Will take a look at it.
[#|2011-11-17T09:17:00.442-0500|SEVERE|glassfish3.1.1|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=18;_ThreadName=admin-thread-pool-48
);|Exception while deploying the app [ROOT] : Invalid URL Pattern: [*]|#]
[#|2011-11-17T09:19:57.397-0500|WARNING|glassfish3.1.1|null|_ThreadID=19;_ThreadName=admin-thread-pool-4848(3);|Error occurred
java.lang.IllegalArgumentException: Invalid URL Pattern: [*]
at com.sun.enterprise.deployment.node.web.FilterMappingNode.setElementValue(FilterMappingNode.java:137)
at com.sun.enterprise.deployment.node.SaxParserHandler.endElement(SaxParserHandler.java:451)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.endElement(XMLSchemaValidator.java:822)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2939)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:306)
at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:233)
at com.sun.enterprise.deployment.archivist.Archivist.readStandardDeploymentDescriptor(Archivist.java:639)
at com.sun.enterprise.deployment.archivist.ApplicationFactory.createApplicationFromStandardDD(ApplicationFactory.java:216)
at org.glassfish.javaee.core.deployment.DolProvider.getNameFor(DolProvider.java:234)
at org.glassfish.internal.deployment.GenericHandler.getDefaultApplicationName(GenericHandler.java:143)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:222)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:459)
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:209)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:238)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)
|#]
-Venkat
-----Original Message-----
From: Jasha Joachimsthal (Commented) (JIRA) [mailto:jira@apache.org]
Sent: Thursday, November 17, 2011 8:41 AM
To: rave-dev@incubator.apache.org
Subject: [jira] [Commented] (RAVE-361) Deploy Rave on Jetty
[ https://issues.apache.org/jira/browse/RAVE-361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152046#comment-13152046 ]
Jasha Joachimsthal commented on RAVE-361:
-----------------------------------------
Go ahead. Do you have time to check if Rave runs out of the box in Glassfish?
> Deploy Rave on Jetty
> --------------------
>
> Key: RAVE-361
> URL: https://issues.apache.org/jira/browse/RAVE-361
> Project: Rave
> Issue Type: Improvement
> Reporter: Raminderjeet Singh
> Fix For: 0.6-INCUBATING
>
> Attachments: pom.xml
>
>
> Ioan Kiss reported about Rave not working on Jetty and here are the steps he followed
> Here are the steps followed in running Rave on Jetty server 7.5.4
> 1. Download Jetty 7.5.4
> 2.Download rave (apache-rave-0.5-incubating-bin.zip)
> 3. Copied portal.war, root.war and demogadgets.war in Jetty/webapps folder
> 4. start jetty - did not noticed any errors during jetty startup
> 5. open browser and type http://localhost:8080/portal/
> 6. The login page was displayed
> 7. Enter canonical/canonical and hit login button
> 8. Directory view displayed (Directory: /portal/);
> in the jetty console I found the following message (32646
> ravePersistenceUnit WARN [qtp31505416-12 -
> /portal/j_spring_security_check] openjpa.Runtime - Query "select u from User
> u where u.username = :username" is removed from cache excluded permanently.
> Query "select u from User u where u.username = :username" is not cached
> because it generates multiple SQL statements. A query can be cached only
> when it corresponds to a single SQL statement.)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
RE: [jira] [Commented] (RAVE-361) Deploy Rave on Jetty
Posted by "Mahadevan, Venkat" <ve...@mitre.org>.
Hi Jasha
I downloaded Glassfish 3.1.1 and tried it. It looks like there is some issue with the way JPA RESOURCE_LOCAL is handled in Glassfish. This was overcome with adding metadata-complete="true" to the web.xml files (one is shindig and one is rave-portal-resources).
I having some issues with running shindig though. Here is the error that I got. Looks like there is some issue with the URL mapping. Will take a look at it.
[#|2011-11-17T09:17:00.442-0500|SEVERE|glassfish3.1.1|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=18;_ThreadName=admin-thread-pool-48
);|Exception while deploying the app [ROOT] : Invalid URL Pattern: [*]|#]
[#|2011-11-17T09:19:57.397-0500|WARNING|glassfish3.1.1|null|_ThreadID=19;_ThreadName=admin-thread-pool-4848(3);|Error occurred
java.lang.IllegalArgumentException: Invalid URL Pattern: [*]
at com.sun.enterprise.deployment.node.web.FilterMappingNode.setElementValue(FilterMappingNode.java:137)
at com.sun.enterprise.deployment.node.SaxParserHandler.endElement(SaxParserHandler.java:451)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.endElement(XMLSchemaValidator.java:822)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2939)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:306)
at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:233)
at com.sun.enterprise.deployment.archivist.Archivist.readStandardDeploymentDescriptor(Archivist.java:639)
at com.sun.enterprise.deployment.archivist.ApplicationFactory.createApplicationFromStandardDD(ApplicationFactory.java:216)
at org.glassfish.javaee.core.deployment.DolProvider.getNameFor(DolProvider.java:234)
at org.glassfish.internal.deployment.GenericHandler.getDefaultApplicationName(GenericHandler.java:143)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:222)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:459)
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:209)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:238)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)
|#]
-Venkat
-----Original Message-----
From: Jasha Joachimsthal (Commented) (JIRA) [mailto:jira@apache.org]
Sent: Thursday, November 17, 2011 8:41 AM
To: rave-dev@incubator.apache.org
Subject: [jira] [Commented] (RAVE-361) Deploy Rave on Jetty
[ https://issues.apache.org/jira/browse/RAVE-361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152046#comment-13152046 ]
Jasha Joachimsthal commented on RAVE-361:
-----------------------------------------
Go ahead. Do you have time to check if Rave runs out of the box in Glassfish?
> Deploy Rave on Jetty
> --------------------
>
> Key: RAVE-361
> URL: https://issues.apache.org/jira/browse/RAVE-361
> Project: Rave
> Issue Type: Improvement
> Reporter: Raminderjeet Singh
> Fix For: 0.6-INCUBATING
>
> Attachments: pom.xml
>
>
> Ioan Kiss reported about Rave not working on Jetty and here are the steps he followed
> Here are the steps followed in running Rave on Jetty server 7.5.4
> 1. Download Jetty 7.5.4
> 2.Download rave (apache-rave-0.5-incubating-bin.zip)
> 3. Copied portal.war, root.war and demogadgets.war in Jetty/webapps folder
> 4. start jetty - did not noticed any errors during jetty startup
> 5. open browser and type http://localhost:8080/portal/
> 6. The login page was displayed
> 7. Enter canonical/canonical and hit login button
> 8. Directory view displayed (Directory: /portal/);
> in the jetty console I found the following message (32646
> ravePersistenceUnit WARN [qtp31505416-12 -
> /portal/j_spring_security_check] openjpa.Runtime - Query "select u from User
> u where u.username = :username" is removed from cache excluded permanently.
> Query "select u from User u where u.username = :username" is not cached
> because it generates multiple SQL statements. A query can be cached only
> when it corresponds to a single SQL statement.)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
RE: [jira] [Commented] (RAVE-361) Deploy Rave on Jetty
Posted by "Mahadevan, Venkat" <ve...@mitre.org>.
Command to deploy shindig war:
asadmin> deploy --contextroot "/" "C:\Users\venkatm\Desktop\ROOT.war"
Application deployed with name ROOT.
Command deploy executed successfully.
From: Mahadevan, Venkat
Sent: Thursday, November 17, 2011 11:09 AM
To: rave-dev@incubator.apache.org
Subject: RE: [jira] [Commented] (RAVE-361) Deploy Rave on Jetty
I have Rave running on Glassfish now.
Figured out the issue. In shindig web.xml file, Glassfish expects a "/" before the url-pattern for etagFilter mapping.
<filter-mapping>
<filter-name>etagFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Steps to run Rave on Glassfish:
1. Add metadata-complete="true" to all the web.xml files which use JPA. (one is shindig and one is rave-portal-resources).
2. Prefix a / to the url-pattern for the filter mapping etagFilter in shindig web.xml
Let me know if you have have other issues….
-Venkat
-----Original Message-----
From: Mahadevan, Venkat [mailto:venkatm@mitre.org]<mailto:[mailto:venkatm@mitre.org]>
Sent: Thursday, November 17, 2011 10:02 AM
To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
Subject: RE: [jira] [Commented] (RAVE-361) Deploy Rave on Jetty
Here is the error from the admin command line.
asadmin> deploy "C:\Users\venkatm\Desktop\ROOT.war"
remote failure: Error occurred during deployment: Exception while deploying the app [ROOT] : Invalid URL Pattern: [*]. Please see server.log for more details.
Command deploy failed.
-----Original Message-----
From: Mahadevan, Venkat
Sent: Thursday, November 17, 2011 10:00 AM
To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
Subject: RE: [jira] [Commented] (RAVE-361) Deploy Rave on Jetty
Hi Jasha
I downloaded Glassfish 3.1.1 and tried it. It looks like there is some issue with the way JPA RESOURCE_LOCAL is handled in Glassfish. This was overcome with adding metadata-complete="true" to the web.xml files (one is shindig and one is rave-portal-resources).
I having some issues with running shindig though. Here is the error that I got. Looks like there is some issue with the URL mapping. Will take a look at it.
[#|2011-11-17T09:17:00.442-0500|SEVERE|glassfish3.1.1|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=18;_ThreadName=admin-thread-pool-48
);|Exception while deploying the app [ROOT] : Invalid URL Pattern: [*]|#]
[#|2011-11-17T09:19:57.397-0500|WARNING|glassfish3.1.1|null|_ThreadID=19;_ThreadName=admin-thread-pool-4848(3);|Error occurred
java.lang.IllegalArgumentException: Invalid URL Pattern: [*]
at com.sun.enterprise.deployment.node.web.FilterMappingNode.setElementValue(FilterMappingNode.java:137)
at com.sun.enterprise.deployment.node.SaxParserHandler.endElement(SaxParserHandler.java:451)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.endElement(XMLSchemaValidator.java:822)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2939)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:306)
at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:233)
at com.sun.enterprise.deployment.archivist.Archivist.readStandardDeploymentDescriptor(Archivist.java:639)
at com.sun.enterprise.deployment.archivist.ApplicationFactory.createApplicationFromStandardDD(ApplicationFactory.java:216)
at org.glassfish.javaee.core.deployment.DolProvider.getNameFor(DolProvider.java:234)
at org.glassfish.internal.deployment.GenericHandler.getDefaultApplicationName(GenericHandler.java:143)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:222)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:459)
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:209)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:238)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)
|#]
-Venkat
-----Original Message-----
From: Jasha Joachimsthal (Commented) (JIRA) [mailto:jira@apache.org]<mailto:[mailto:jira@apache.org]>
Sent: Thursday, November 17, 2011 8:41 AM
To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
Subject: [jira] [Commented] (RAVE-361) Deploy Rave on Jetty
[ https://issues.apache.org/jira/browse/RAVE-361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152046#comment-13152046 ]
Jasha Joachimsthal commented on RAVE-361:
-----------------------------------------
Go ahead. Do you have time to check if Rave runs out of the box in Glassfish?
> Deploy Rave on Jetty
> --------------------
>
> Key: RAVE-361
> URL: https://issues.apache.org/jira/browse/RAVE-361
> Project: Rave
> Issue Type: Improvement
> Reporter: Raminderjeet Singh
> Fix For: 0.6-INCUBATING
>
> Attachments: pom.xml
>
>
> Ioan Kiss reported about Rave not working on Jetty and here are the steps he followed
> Here are the steps followed in running Rave on Jetty server 7.5.4
> 1. Download Jetty 7.5.4
> 2.Download rave (apache-rave-0.5-incubating-bin.zip)
> 3. Copied portal.war, root.war and demogadgets.war in Jetty/webapps folder
> 4. start jetty - did not noticed any errors during jetty startup
> 5. open browser and type http://localhost:8080/portal/
> 6. The login page was displayed
> 7. Enter canonical/canonical and hit login button
> 8. Directory view displayed (Directory: /portal/);
> in the jetty console I found the following message (32646
> ravePersistenceUnit WARN [qtp31505416-12 -
> /portal/j_spring_security_check] openjpa.Runtime - Query "select u from User
> u where u.username = :username" is removed from cache excluded permanently.
> Query "select u from User u where u.username = :username" is not cached
> because it generates multiple SQL statements. A query can be cached only
> when it corresponds to a single SQL statement.)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
RE: [jira] [Commented] (RAVE-361) Deploy Rave on Jetty
Posted by "Mahadevan, Venkat" <ve...@mitre.org>.
I have Rave running on Glassfish now.
Figured out the issue. In shindig web.xml file, Glassfish expects a "/" before the url-pattern for etagFilter mapping.
<filter-mapping>
<filter-name>etagFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Steps to run Rave on Glassfish:
1. Add metadata-complete="true" to all the web.xml files which use JPA. (one is shindig and one is rave-portal-resources).
2. Prefix a / to the url-pattern for the filter mapping etagFilter in shindig web.xml
Let me know if you have have other issues….
-Venkat
-----Original Message-----
From: Mahadevan, Venkat [mailto:venkatm@mitre.org]
Sent: Thursday, November 17, 2011 10:02 AM
To: rave-dev@incubator.apache.org
Subject: RE: [jira] [Commented] (RAVE-361) Deploy Rave on Jetty
Here is the error from the admin command line.
asadmin> deploy "C:\Users\venkatm\Desktop\ROOT.war"
remote failure: Error occurred during deployment: Exception while deploying the app [ROOT] : Invalid URL Pattern: [*]. Please see server.log for more details.
Command deploy failed.
-----Original Message-----
From: Mahadevan, Venkat
Sent: Thursday, November 17, 2011 10:00 AM
To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
Subject: RE: [jira] [Commented] (RAVE-361) Deploy Rave on Jetty
Hi Jasha
I downloaded Glassfish 3.1.1 and tried it. It looks like there is some issue with the way JPA RESOURCE_LOCAL is handled in Glassfish. This was overcome with adding metadata-complete="true" to the web.xml files (one is shindig and one is rave-portal-resources).
I having some issues with running shindig though. Here is the error that I got. Looks like there is some issue with the URL mapping. Will take a look at it.
[#|2011-11-17T09:17:00.442-0500|SEVERE|glassfish3.1.1|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=18;_ThreadName=admin-thread-pool-48
);|Exception while deploying the app [ROOT] : Invalid URL Pattern: [*]|#]
[#|2011-11-17T09:19:57.397-0500|WARNING|glassfish3.1.1|null|_ThreadID=19;_ThreadName=admin-thread-pool-4848(3);|Error occurred
java.lang.IllegalArgumentException: Invalid URL Pattern: [*]
at com.sun.enterprise.deployment.node.web.FilterMappingNode.setElementValue(FilterMappingNode.java:137)
at com.sun.enterprise.deployment.node.SaxParserHandler.endElement(SaxParserHandler.java:451)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.endElement(XMLSchemaValidator.java:822)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2939)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:306)
at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:233)
at com.sun.enterprise.deployment.archivist.Archivist.readStandardDeploymentDescriptor(Archivist.java:639)
at com.sun.enterprise.deployment.archivist.ApplicationFactory.createApplicationFromStandardDD(ApplicationFactory.java:216)
at org.glassfish.javaee.core.deployment.DolProvider.getNameFor(DolProvider.java:234)
at org.glassfish.internal.deployment.GenericHandler.getDefaultApplicationName(GenericHandler.java:143)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:222)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:459)
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:209)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:238)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)
|#]
-Venkat
-----Original Message-----
From: Jasha Joachimsthal (Commented) (JIRA) [mailto:jira@apache.org]<mailto:[mailto:jira@apache.org]>
Sent: Thursday, November 17, 2011 8:41 AM
To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
Subject: [jira] [Commented] (RAVE-361) Deploy Rave on Jetty
[ https://issues.apache.org/jira/browse/RAVE-361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152046#comment-13152046 ]
Jasha Joachimsthal commented on RAVE-361:
-----------------------------------------
Go ahead. Do you have time to check if Rave runs out of the box in Glassfish?
> Deploy Rave on Jetty
> --------------------
>
> Key: RAVE-361
> URL: https://issues.apache.org/jira/browse/RAVE-361
> Project: Rave
> Issue Type: Improvement
> Reporter: Raminderjeet Singh
> Fix For: 0.6-INCUBATING
>
> Attachments: pom.xml
>
>
> Ioan Kiss reported about Rave not working on Jetty and here are the steps he followed
> Here are the steps followed in running Rave on Jetty server 7.5.4
> 1. Download Jetty 7.5.4
> 2.Download rave (apache-rave-0.5-incubating-bin.zip)
> 3. Copied portal.war, root.war and demogadgets.war in Jetty/webapps folder
> 4. start jetty - did not noticed any errors during jetty startup
> 5. open browser and type http://localhost:8080/portal/
> 6. The login page was displayed
> 7. Enter canonical/canonical and hit login button
> 8. Directory view displayed (Directory: /portal/);
> in the jetty console I found the following message (32646
> ravePersistenceUnit WARN [qtp31505416-12 -
> /portal/j_spring_security_check] openjpa.Runtime - Query "select u from User
> u where u.username = :username" is removed from cache excluded permanently.
> Query "select u from User u where u.username = :username" is not cached
> because it generates multiple SQL statements. A query can be cached only
> when it corresponds to a single SQL statement.)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (RAVE-361) Deploy Rave on Jetty
Posted by "Jasha Joachimsthal (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAVE-361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13151898#comment-13151898 ]
Jasha Joachimsthal commented on RAVE-361:
-----------------------------------------
If I follow these steps (and give Jetty some more memory) I see a document listing for http://localhost:8080/portal
If you go to http://localhost:8080/portal/index.html you do see the Rave portal so Jetty seems to miss that redirect
> Deploy Rave on Jetty
> --------------------
>
> Key: RAVE-361
> URL: https://issues.apache.org/jira/browse/RAVE-361
> Project: Rave
> Issue Type: Improvement
> Reporter: Raminderjeet Singh
> Attachments: pom.xml
>
>
> Ioan Kiss reported about Rave not working on Jetty and here are the steps he followed
> Here are the steps followed in running Rave on Jetty server 7.5.4
> 1. Download Jetty 7.5.4
> 2.Download rave (apache-rave-0.5-incubating-bin.zip)
> 3. Copied portal.war, root.war and demogadgets.war in Jetty/webapps folder
> 4. start jetty - did not noticed any errors during jetty startup
> 5. open browser and type http://localhost:8080/portal/
> 6. The login page was displayed
> 7. Enter canonical/canonical and hit login button
> 8. Directory view displayed (Directory: /portal/);
> in the jetty console I found the following message (32646
> ravePersistenceUnit WARN [qtp31505416-12 -
> /portal/j_spring_security_check] openjpa.Runtime - Query "select u from User
> u where u.username = :username" is removed from cache excluded permanently.
> Query "select u from User u where u.username = :username" is not cached
> because it generates multiple SQL statements. A query can be cached only
> when it corresponds to a single SQL statement.)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (RAVE-361) Deploy Rave on Jetty
Posted by "Jasha Joachimsthal (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAVE-361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152046#comment-13152046 ]
Jasha Joachimsthal commented on RAVE-361:
-----------------------------------------
Go ahead. Do you have time to check if Rave runs out of the box in Glassfish?
> Deploy Rave on Jetty
> --------------------
>
> Key: RAVE-361
> URL: https://issues.apache.org/jira/browse/RAVE-361
> Project: Rave
> Issue Type: Improvement
> Reporter: Raminderjeet Singh
> Fix For: 0.6-INCUBATING
>
> Attachments: pom.xml
>
>
> Ioan Kiss reported about Rave not working on Jetty and here are the steps he followed
> Here are the steps followed in running Rave on Jetty server 7.5.4
> 1. Download Jetty 7.5.4
> 2.Download rave (apache-rave-0.5-incubating-bin.zip)
> 3. Copied portal.war, root.war and demogadgets.war in Jetty/webapps folder
> 4. start jetty - did not noticed any errors during jetty startup
> 5. open browser and type http://localhost:8080/portal/
> 6. The login page was displayed
> 7. Enter canonical/canonical and hit login button
> 8. Directory view displayed (Directory: /portal/);
> in the jetty console I found the following message (32646
> ravePersistenceUnit WARN [qtp31505416-12 -
> /portal/j_spring_security_check] openjpa.Runtime - Query "select u from User
> u where u.username = :username" is removed from cache excluded permanently.
> Query "select u from User u where u.username = :username" is not cached
> because it generates multiple SQL statements. A query can be cached only
> when it corresponds to a single SQL statement.)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (RAVE-361) Deploy Rave on Jetty
Posted by "Matt Franklin (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAVE-361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152034#comment-13152034 ]
Matt Franklin commented on RAVE-361:
------------------------------------
We should document these steps on the website. I will do it later today unless someone picks it up first.
> Deploy Rave on Jetty
> --------------------
>
> Key: RAVE-361
> URL: https://issues.apache.org/jira/browse/RAVE-361
> Project: Rave
> Issue Type: Improvement
> Reporter: Raminderjeet Singh
> Fix For: 0.6-INCUBATING
>
> Attachments: pom.xml
>
>
> Ioan Kiss reported about Rave not working on Jetty and here are the steps he followed
> Here are the steps followed in running Rave on Jetty server 7.5.4
> 1. Download Jetty 7.5.4
> 2.Download rave (apache-rave-0.5-incubating-bin.zip)
> 3. Copied portal.war, root.war and demogadgets.war in Jetty/webapps folder
> 4. start jetty - did not noticed any errors during jetty startup
> 5. open browser and type http://localhost:8080/portal/
> 6. The login page was displayed
> 7. Enter canonical/canonical and hit login button
> 8. Directory view displayed (Directory: /portal/);
> in the jetty console I found the following message (32646
> ravePersistenceUnit WARN [qtp31505416-12 -
> /portal/j_spring_security_check] openjpa.Runtime - Query "select u from User
> u where u.username = :username" is removed from cache excluded permanently.
> Query "select u from User u where u.username = :username" is not cached
> because it generates multiple SQL statements. A query can be cached only
> when it corresponds to a single SQL statement.)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (RAVE-361) Deploy Rave on Jetty
Posted by "Raminderjeet Singh (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAVE-361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raminderjeet Singh updated RAVE-361:
------------------------------------
Attachment: pom.xml
Attached the pom with embedded Jetty. Login page comes fine but some error to invoke JPA
[WARNING] [talledLocalContainer] 2011-11-16 21:15:30.754:WARN::/portal/j_spring_security_check
[WARNING] [talledLocalContainer] <openjpa-2.1.1-r422266:1148538 fatal user error> org.apache.openjpa.persistence.ArgumentException: Errors encountered while resolving metadata. See nested exceptions for details.
[WARNING] [talledLocalContainer] at org.apache.openjpa.meta.MetaDataRepository.resolve(MetaDataRepository.java:668)
[WARNING] [talledLocalContainer] at org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:411)
[WARNING] [talledLocalContainer] at org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:384)
[WARNING] [talledLocalContainer] at org.apache.openjpa.meta.MetaDataRepository.resolveAll(MetaDataRepository.java:1954)
[WARNING] [talledLocalContainer] at org.apache.openjpa.meta.MetaDataRepository.getQueryMetaDataInternal(MetaDataRepository.java:1932)
[WARNING] [talledLocalContainer] at org.apache.openjpa.meta.MetaDataRepository.getQueryMetaData(MetaDataRepository.java:1919)
[WARNING] [talledLocalContainer] at org.apache.openjpa.persistence.EntityManagerImpl.createNamedQuery(EntityManagerImpl.java:1023)
[WARNING] [talledLocalContainer] at org.apache.openjpa.persistence.EntityManagerImpl.createNamedQuery(EntityManagerImpl.java:1016)
[WARNING] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[WARNING] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[WARNING] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[WARNING] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:597)
[WARNING] [talledLocalContainer] at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
[WARNING] [talledLocalContainer] at $Proxy52.createNamedQuery(Unknown Source)
[WARNING] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[WARNING] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[WARNING] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[WARNING] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:597)
[WARNING] [talledLocalContainer] at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:240)
[WARNING] [talledLocalContainer] at $Proxy52.createNamedQuery(Unknown Source)
[WARNING] [talledLocalContainer] at org.apache.rave.portal.repository.impl.JpaUserRepository.getByUsername(JpaUserRepository.java:48)
[WARNING] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[WARNING] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[WARNING] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[WARNING] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:597)
[WARNING] [talledLocalContainer] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
[WARNING] [talledLocalContainer] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
[WARNING] [talledLocalContainer] at $Proxy56.getByUsername(Unknown Source)
[WARNING] [talledLocalContainer] at org.apache.rave.portal.service.impl.DefaultUserService.loadUserByUsername(DefaultUserService.java:59)
[WARNING] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[WARNING] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[WARNING] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[WARNING] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:597)
[WARNING] [talledLocalContainer] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
[WARNING] [talledLocalContainer] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
[WARNING] [talledLocalContainer] at $Proxy58.loadUserByUsername(Unknown Source)
[WARNING] [talledLocalContainer] at org.springframework.security.authentication.dao.DaoAuthenticationProvider.retrieveUser(DaoAuthenticationProvider.java:86)
[WARNING] [talledLocalContainer] at org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:129)
[WARNING] [talledLocalContainer] at org.springframework.security.authentication.ProviderManager.doAuthentication(ProviderManager.java:130)
[WARNING] [talledLocalContainer] at org.springframework.security.authentication.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:48)
[WARNING] [talledLocalContainer] at org.springframework.security.authentication.ProviderManager.doAuthentication(ProviderManager.java:148)
[WARNING] [talledLocalContainer] at org.springframework.security.authentication.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:48)
[WARNING] [talledLocalContainer] at org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter.attemptAuthentication(UsernamePasswordAuthenticationFilter.java:97)
[WARNING] [talledLocalContainer] at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)
[WARNING] [talledLocalContainer] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
[WARNING] [talledLocalContainer] at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
[WARNING] [talledLocalContainer] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
[WARNING] [talledLocalContainer] at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
[WARNING] [talledLocalContainer] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
[WARNING] [talledLocalContainer] at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:169)
[WARNING] [talledLocalContainer] at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
[WARNING] [talledLocalContainer] at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
[WARNING] [talledLocalContainer] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
[WARNING] [talledLocalContainer] at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
[WARNING] [talledLocalContainer] at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
[WARNING] [talledLocalContainer] at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
[WARNING] [talledLocalContainer] at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
[WARNING] [talledLocalContainer] at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
[WARNING] [talledLocalContainer] at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
[WARNING] [talledLocalContainer] at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
[WARNING] [talledLocalContainer] at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
[WARNING] [talledLocalContainer] at org.mortbay.jetty.Server.handle(Server.java:326)
[WARNING] [talledLocalContainer] at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
[WARNING] [talledLocalContainer] at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945)
[WARNING] [talledLocalContainer] at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
[WARNING] [talledLocalContainer] at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
[WARNING] [talledLocalContainer] at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
[WARNING] [talledLocalContainer] at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
[WARNING] [talledLocalContainer] at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)
> Deploy Rave on Jetty
> --------------------
>
> Key: RAVE-361
> URL: https://issues.apache.org/jira/browse/RAVE-361
> Project: Rave
> Issue Type: Improvement
> Reporter: Raminderjeet Singh
> Attachments: pom.xml
>
>
> Ioan Kiss reported about Rave not working on Jetty and here are the steps he followed
> Here are the steps followed in running Rave on Jetty server 7.5.4
> 1. Download Jetty 7.5.4
> 2.Download rave (apache-rave-0.5-incubating-bin.zip)
> 3. Copied portal.war, root.war and demogadgets.war in Jetty/webapps folder
> 4. start jetty - did not noticed any errors during jetty startup
> 5. open browser and type http://localhost:8080/portal/
> 6. The login page was displayed
> 7. Enter canonical/canonical and hit login button
> 8. Directory view displayed (Directory: /portal/);
> in the jetty console I found the following message (32646
> ravePersistenceUnit WARN [qtp31505416-12 -
> /portal/j_spring_security_check] openjpa.Runtime - Query "select u from User
> u where u.username = :username" is removed from cache excluded permanently.
> Query "select u from User u where u.username = :username" is not cached
> because it generates multiple SQL statements. A query can be cached only
> when it corresponds to a single SQL statement.)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (RAVE-361) Deploy Rave on Jetty
Posted by "Jasha Joachimsthal (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAVE-361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jasha Joachimsthal resolved RAVE-361.
-------------------------------------
Resolution: Fixed
Fix Version/s: 0.6-INCUBATING
Rave works fine, it's Jetty that needs extra configuration to display the welcome page from a non default servlet.
> Deploy Rave on Jetty
> --------------------
>
> Key: RAVE-361
> URL: https://issues.apache.org/jira/browse/RAVE-361
> Project: Rave
> Issue Type: Improvement
> Reporter: Raminderjeet Singh
> Fix For: 0.6-INCUBATING
>
> Attachments: pom.xml
>
>
> Ioan Kiss reported about Rave not working on Jetty and here are the steps he followed
> Here are the steps followed in running Rave on Jetty server 7.5.4
> 1. Download Jetty 7.5.4
> 2.Download rave (apache-rave-0.5-incubating-bin.zip)
> 3. Copied portal.war, root.war and demogadgets.war in Jetty/webapps folder
> 4. start jetty - did not noticed any errors during jetty startup
> 5. open browser and type http://localhost:8080/portal/
> 6. The login page was displayed
> 7. Enter canonical/canonical and hit login button
> 8. Directory view displayed (Directory: /portal/);
> in the jetty console I found the following message (32646
> ravePersistenceUnit WARN [qtp31505416-12 -
> /portal/j_spring_security_check] openjpa.Runtime - Query "select u from User
> u where u.username = :username" is removed from cache excluded permanently.
> Query "select u from User u where u.username = :username" is not cached
> because it generates multiple SQL statements. A query can be cached only
> when it corresponds to a single SQL statement.)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (RAVE-361) Deploy Rave on Jetty
Posted by "Jasha Joachimsthal (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAVE-361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13151909#comment-13151909 ]
Jasha Joachimsthal commented on RAVE-361:
-----------------------------------------
By default Jetty uses the JspServlet for the welcome page: http://docs.codehaus.org/display/JETTY/Welcome+files+not+working We're using the Spring org.springframework.web.servlet.DispatcherServlet.
In order to let Jetty use this servlet, modify the webdefault.xml:
Go to the servlet org.eclipse.jetty.servlet.DefaultServlet
Go to the init parameter welcomeServlets and change its value to true. Now the Rave portal is shown if you go to http://localhost:8080 (or http://localhost:8080/portal)
> Deploy Rave on Jetty
> --------------------
>
> Key: RAVE-361
> URL: https://issues.apache.org/jira/browse/RAVE-361
> Project: Rave
> Issue Type: Improvement
> Reporter: Raminderjeet Singh
> Attachments: pom.xml
>
>
> Ioan Kiss reported about Rave not working on Jetty and here are the steps he followed
> Here are the steps followed in running Rave on Jetty server 7.5.4
> 1. Download Jetty 7.5.4
> 2.Download rave (apache-rave-0.5-incubating-bin.zip)
> 3. Copied portal.war, root.war and demogadgets.war in Jetty/webapps folder
> 4. start jetty - did not noticed any errors during jetty startup
> 5. open browser and type http://localhost:8080/portal/
> 6. The login page was displayed
> 7. Enter canonical/canonical and hit login button
> 8. Directory view displayed (Directory: /portal/);
> in the jetty console I found the following message (32646
> ravePersistenceUnit WARN [qtp31505416-12 -
> /portal/j_spring_security_check] openjpa.Runtime - Query "select u from User
> u where u.username = :username" is removed from cache excluded permanently.
> Query "select u from User u where u.username = :username" is not cached
> because it generates multiple SQL statements. A query can be cached only
> when it corresponds to a single SQL statement.)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira