Unfriendly Weblogic

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Unfriendly Weblogic

Shaun.Perkinson
Hi guys,

I've tried deploying Solr on Weblogic and am gettting the following error
in my console trace:

13-Jun-2007 15:37:35 org.apache.solr.core.Config getInstanceDir
INFO: using system property solr.home: D:/apache-solr-1.2.0/example/solr/
13-Jun-2007 15:37:35 org.apache.solr.core.Config setInstanceDir
INFO: Solr home set to 'D:/apache-solr-1.2.0/example/solr/'
13-Jun-2007 15:37:35 org.apache.solr.core.SolrConfig initConfig
INFO: Loaded SolrConfig: solrconfig.xml
13-Jun-2007 15:37:35 org.apache.solr.servlet.SolrDispatchFilter init
INFO: user.dir=C:\bea\user_projects\domains\solr
<13-Jun-2007 15:37:35 o'clock BST> <Error> <HTTP> <BEA-101165> <Could not
load user defined filter in web.xml:
org.apache.solr.servlet.SolrDispatchFilter.
java.lang.NoClassDefFoundError
        at org.apache.solr.servlet.SolrDispatchFilter.init(
SolrDispatchFilter.java:75)
        at weblogic.servlet.internal.FilterManager$FilterInitAction.run(
FilterManager.java:309)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(
AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(
SecurityManager.java:121)
        at weblogic.servlet.internal.FilterManager.loadFilter(
FilterManager.java:88)
        Truncated. see log file for complete stacktrace
>

I've added "-Dsolr.solr.home=D:/apache-solr-1.2.0/example/solr" as a
Weblogic JVM argument and I deployed the solr.war that lives in the
example\webapps folder of your distribution. That is when I got the error
above.

Can anyone help?

Thanks
Shaun


Associated Northcliffe Digital Limited
Registered office: Northcliffe House, 2 Derry Street, London W8 5TT
Registered in England and Wales with Company no. 03363661

VAT no. GB 243 5711 74

This e-mail (and any attachments) is confidential and may be privileged. If you are not the intended recipient of this message, please notify the sender and do not read, copy, use or disclose this communication to others. Any opinions or views expressed which are of a personal nature are not necessarily those of the company. The company reserves the right to monitor all e-mail communications.
Reply | Threaded
Open this post in threaded view
|

Re: Unfriendly Weblogic

dma_bamboo
Which version of Weblogic are you trying?
Some old versions have a wrong javax.servlet.Filter interface definition...

Regards,
Daniel


On 13/6/07 15:59, "[hidden email]" <[hidden email]>
wrote:

> Hi guys,
>
> I've tried deploying Solr on Weblogic and am gettting the following error
> in my console trace:
>
> 13-Jun-2007 15:37:35 org.apache.solr.core.Config getInstanceDir
> INFO: using system property solr.home: D:/apache-solr-1.2.0/example/solr/
> 13-Jun-2007 15:37:35 org.apache.solr.core.Config setInstanceDir
> INFO: Solr home set to 'D:/apache-solr-1.2.0/example/solr/'
> 13-Jun-2007 15:37:35 org.apache.solr.core.SolrConfig initConfig
> INFO: Loaded SolrConfig: solrconfig.xml
> 13-Jun-2007 15:37:35 org.apache.solr.servlet.SolrDispatchFilter init
> INFO: user.dir=C:\bea\user_projects\domains\solr
> <13-Jun-2007 15:37:35 o'clock BST> <Error> <HTTP> <BEA-101165> <Could not
> load user defined filter in web.xml:
> org.apache.solr.servlet.SolrDispatchFilter.
> java.lang.NoClassDefFoundError
>         at org.apache.solr.servlet.SolrDispatchFilter.init(
> SolrDispatchFilter.java:75)
>         at weblogic.servlet.internal.FilterManager$FilterInitAction.run(
> FilterManager.java:309)
>         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(
> AuthenticatedSubject.java:321)
>         at weblogic.security.service.SecurityManager.runAs(
> SecurityManager.java:121)
>         at weblogic.servlet.internal.FilterManager.loadFilter(
> FilterManager.java:88)
>         Truncated. see log file for complete stacktrace
>>
>
> I've added "-Dsolr.solr.home=D:/apache-solr-1.2.0/example/solr" as a
> Weblogic JVM argument and I deployed the solr.war that lives in the
> example\webapps folder of your distribution. That is when I got the error
> above.
>
> Can anyone help?
>
> Thanks
> Shaun
>
>
> Associated Northcliffe Digital Limited
> Registered office: Northcliffe House, 2 Derry Street, London W8 5TT
> Registered in England and Wales with Company no. 03363661
>
> VAT no. GB 243 5711 74
>
> This e-mail (and any attachments) is confidential and may be privileged. If
> you are not the intended recipient of this message, please notify the sender
> and do not read, copy, use or disclose this communication to others. Any
> opinions or views expressed which are of a personal nature are not necessarily
> those of the company. The company reserves the right to monitor all e-mail
> communications.


http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
                                       
Reply | Threaded
Open this post in threaded view
|

Re: Unfriendly Weblogic

Shaun.Perkinson
sorry - I'm using weblogic 9.2










Daniel Alheiros <[hidden email]>
13/06/2007 16:05
Please respond to solr-user
 
        To:     <[hidden email]>
        cc:
        Subject:        Re: Unfriendly Weblogic



Which version of Weblogic are you trying?
Some old versions have a wrong javax.servlet.Filter interface
definition...

Regards,
Daniel


On 13/6/07 15:59, "[hidden email]" <[hidden email]>
wrote:

> Hi guys,
>
> I've tried deploying Solr on Weblogic and am gettting the following
error
> in my console trace:
>
> 13-Jun-2007 15:37:35 org.apache.solr.core.Config getInstanceDir
> INFO: using system property solr.home:
D:/apache-solr-1.2.0/example/solr/
> 13-Jun-2007 15:37:35 org.apache.solr.core.Config setInstanceDir
> INFO: Solr home set to 'D:/apache-solr-1.2.0/example/solr/'
> 13-Jun-2007 15:37:35 org.apache.solr.core.SolrConfig initConfig
> INFO: Loaded SolrConfig: solrconfig.xml
> 13-Jun-2007 15:37:35 org.apache.solr.servlet.SolrDispatchFilter init
> INFO: user.dir=C:\bea\user_projects\domains\solr
> <13-Jun-2007 15:37:35 o'clock BST> <Error> <HTTP> <BEA-101165> <Could
not

> load user defined filter in web.xml:
> org.apache.solr.servlet.SolrDispatchFilter.
> java.lang.NoClassDefFoundError
>         at org.apache.solr.servlet.SolrDispatchFilter.init(
> SolrDispatchFilter.java:75)
>         at weblogic.servlet.internal.FilterManager$FilterInitAction.run(
> FilterManager.java:309)
>         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(
> AuthenticatedSubject.java:321)
>         at weblogic.security.service.SecurityManager.runAs(
> SecurityManager.java:121)
>         at weblogic.servlet.internal.FilterManager.loadFilter(
> FilterManager.java:88)
>         Truncated. see log file for complete stacktrace
>>
>
> I've added "-Dsolr.solr.home=D:/apache-solr-1.2.0/example/solr" as a
> Weblogic JVM argument and I deployed the solr.war that lives in the
> example\webapps folder of your distribution. That is when I got the
error

> above.
>
> Can anyone help?
>
> Thanks
> Shaun
>
>
> Associated Northcliffe Digital Limited
> Registered office: Northcliffe House, 2 Derry Street, London W8 5TT
> Registered in England and Wales with Company no. 03363661
>
> VAT no. GB 243 5711 74
>
> This e-mail (and any attachments) is confidential and may be privileged.
If
> you are not the intended recipient of this message, please notify the
sender
> and do not read, copy, use or disclose this communication to others. Any
> opinions or views expressed which are of a personal nature are not
necessarily
> those of the company. The company reserves the right to monitor all
e-mail
> communications.


http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal
views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in
reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
 

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________




Associated Northcliffe Digital Limited
Registered office: Northcliffe House, 2 Derry Street, London W8 5TT
Registered in England and Wales with Company no. 03363661

VAT no. GB 243 5711 74

This e-mail (and any attachments) is confidential and may be privileged. If you are not the intended recipient of this message, please notify the sender and do not read, copy, use or disclose this communication to others. Any opinions or views expressed which are of a personal nature are not necessarily those of the company. The company reserves the right to monitor all e-mail communications.
Reply | Threaded
Open this post in threaded view
|

Re: Unfriendly Weblogic

dma_bamboo
Sorry, probably it's not the case then...


On 13/6/07 16:07, "[hidden email]" <[hidden email]>
wrote:

> sorry - I'm using weblogic 9.2
>
>
>
>
>
>
>
>
>
>
> Daniel Alheiros <[hidden email]>
> 13/06/2007 16:05
> Please respond to solr-user
>  
>         To:     <[hidden email]>
>         cc:
>         Subject:        Re: Unfriendly Weblogic
>
>
>
> Which version of Weblogic are you trying?
> Some old versions have a wrong javax.servlet.Filter interface
> definition...
>
> Regards,
> Daniel
>
>
> On 13/6/07 15:59, "[hidden email]" <[hidden email]>
> wrote:
>
>> Hi guys,
>>
>> I've tried deploying Solr on Weblogic and am gettting the following
> error
>> in my console trace:
>>
>> 13-Jun-2007 15:37:35 org.apache.solr.core.Config getInstanceDir
>> INFO: using system property solr.home:
> D:/apache-solr-1.2.0/example/solr/
>> 13-Jun-2007 15:37:35 org.apache.solr.core.Config setInstanceDir
>> INFO: Solr home set to 'D:/apache-solr-1.2.0/example/solr/'
>> 13-Jun-2007 15:37:35 org.apache.solr.core.SolrConfig initConfig
>> INFO: Loaded SolrConfig: solrconfig.xml
>> 13-Jun-2007 15:37:35 org.apache.solr.servlet.SolrDispatchFilter init
>> INFO: user.dir=C:\bea\user_projects\domains\solr
>> <13-Jun-2007 15:37:35 o'clock BST> <Error> <HTTP> <BEA-101165> <Could
> not
>> load user defined filter in web.xml:
>> org.apache.solr.servlet.SolrDispatchFilter.
>> java.lang.NoClassDefFoundError
>>         at org.apache.solr.servlet.SolrDispatchFilter.init(
>> SolrDispatchFilter.java:75)
>>         at weblogic.servlet.internal.FilterManager$FilterInitAction.run(
>> FilterManager.java:309)
>>         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(
>> AuthenticatedSubject.java:321)
>>         at weblogic.security.service.SecurityManager.runAs(
>> SecurityManager.java:121)
>>         at weblogic.servlet.internal.FilterManager.loadFilter(
>> FilterManager.java:88)
>>         Truncated. see log file for complete stacktrace
>>>
>>
>> I've added "-Dsolr.solr.home=D:/apache-solr-1.2.0/example/solr" as a
>> Weblogic JVM argument and I deployed the solr.war that lives in the
>> example\webapps folder of your distribution. That is when I got the
> error
>> above.
>>
>> Can anyone help?
>>
>> Thanks
>> Shaun
>>
>>
>> Associated Northcliffe Digital Limited
>> Registered office: Northcliffe House, 2 Derry Street, London W8 5TT
>> Registered in England and Wales with Company no. 03363661
>>
>> VAT no. GB 243 5711 74
>>
>> This e-mail (and any attachments) is confidential and may be privileged.
> If
>> you are not the intended recipient of this message, please notify the
> sender
>> and do not read, copy, use or disclose this communication to others. Any
>> opinions or views expressed which are of a personal nature are not
> necessarily
>> those of the company. The company reserves the right to monitor all
> e-mail
>> communications.
>
>
> http://www.bbc.co.uk/
> This e-mail (and any attachments) is confidential and may contain personal
> views which are not the views of the BBC unless specifically stated.
> If you have received it in error, please delete it from your system.
> Do not use, copy or disclose the information in any way nor act in
> reliance on it and notify the sender immediately.
> Please note that the BBC monitors e-mails sent or received.
> Further communication will signify your consent to this.
>  
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
>
>
>
> Associated Northcliffe Digital Limited
> Registered office: Northcliffe House, 2 Derry Street, London W8 5TT
> Registered in England and Wales with Company no. 03363661
>
> VAT no. GB 243 5711 74
>
> This e-mail (and any attachments) is confidential and may be privileged. If
> you are not the intended recipient of this message, please notify the sender
> and do not read, copy, use or disclose this communication to others. Any
> opinions or views expressed which are of a personal nature are not necessarily
> those of the company. The company reserves the right to monitor all e-mail
> communications.


http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
                                       
Reply | Threaded
Open this post in threaded view
|

Re: Unfriendly Weblogic

Chris Hostetter-3
In reply to this post by Shaun.Perkinson
:         at weblogic.servlet.internal.FilterManager.loadFilter(
: FilterManager.java:88)
:         Truncated. see log file for complete stacktrace
: >

did you check the log file to see the complete stack trace and if there
were any other interesting log messages from Solr?  The SolrDispatchFilter
is what initializes hte SolrCore (which reads in config files and such) so
if there is any sot of problem there and those classes cann't load those
errors may be going to the logs while weblgic only shows you the higher
level error that trickled up.


-Hoss

Reply | Threaded
Open this post in threaded view
|

Re: Unfriendly Weblogic

Shaun.Perkinson
hmmm... the INFO log suggests it has found my solr.solr.home argument ok.
I don't know how readable the whole stack is but I've included it below.
Have I missed a step in the setup? The only steps to deploy Solr I've
taken are:

1) Add "-Dsolr.solr.home=D:/apache-solr-1.2.0/example/solr" as a JVM
argument to my Weblogic server
2) Deploy solr.war from the example\webapps folder of your distribution

The installation seemed as straight forward as that from your
documentation. Is there something else I'm missing?

13-Jun-2007 16:33:16 org.apache.solr.servlet.SolrDispatchFilter init
INFO: SolrDispatchFilter.init()
13-Jun-2007 16:33:16 org.apache.solr.core.Config getInstanceDir
INFO: No /solr/home in JNDI
13-Jun-2007 16:33:16 org.apache.solr.core.Config getInstanceDir
INFO: using system property solr.home: D:/apache-solr-1.2.0/example/solr/
13-Jun-2007 16:33:16 org.apache.solr.core.Config setInstanceDir
INFO: Solr home set to 'D:/apache-solr-1.2.0/example/solr/'
13-Jun-2007 16:33:16 org.apache.solr.core.SolrConfig initConfig
INFO: Loaded SolrConfig: solrconfig.xml
13-Jun-2007 16:33:17 org.apache.solr.servlet.SolrDispatchFilter init
INFO: user.dir=C:\bea\user_projects\domains\solr
####<13-Jun-2007 16:33:17 o'clock BST> <Error> <HTTP> <and000957xp>
<AdminServer> <[ACTIVE] ExecuteThread: '0' for queue:
'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <>
<1181748797062> <BEA-101165> <Could not load user defined filter in
web.xml: org.apache.solr.servlet.SolrDispatchFilter.
java.lang.NoClassDefFoundError
        at
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:75)
        at
weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterManager.java:309)
        at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
        at
weblogic.servlet.internal.FilterManager.loadFilter(FilterManager.java:88)
        at
weblogic.servlet.internal.FilterManager.preloadFilters(FilterManager.java:56)
        at
weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1611)
        at
weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2764)
        at
weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:889)
        at
weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:333)
        at
weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
        at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at
weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
        at
weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
        at
weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
        at
weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
        at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at
weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
        at
weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26)
        at
weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
        at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at
weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
        at
weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
        at
weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
        at
weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:181)
        at
weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:358)
        at
weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:52)
        at
weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:186)
        at
weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
        at
weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
        at
weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
        at
weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
        at
weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
        at
weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
>
####<13-Jun-2007 16:33:17 o'clock BST> <Error> <HTTP> <and000957xp>
<AdminServer> <[ACTIVE] ExecuteThread: '0' for queue:
'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <>
<1181748797078> <BEA-101216> <Servlet: "SolrServer" failed to preload on
startup in Web application: "solr.war".
java.lang.NoClassDefFoundError
        at org.apache.solr.servlet.SolrServlet.init(SolrServlet.java:48)
        at javax.servlet.GenericServlet.init(GenericServlet.java:256)
        at
weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:274)
        at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
        at
weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
        at
weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
        at
weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
        at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:504)
        at
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1716)
        at
weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1693)
        at
weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1613)
        at
weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2764)
        at
weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:889)
        at
weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:333)
        at
weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
        at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at
weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
        at
weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
        at
weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
        at
weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
        at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at
weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
        at
weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26)
        at
weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
        at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at
weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
        at
weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
        at
weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
        at
weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:181)
        at
weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:358)
        at
weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:52)
        at
weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:186)
        at
weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
        at
weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
        at
weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
        at
weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
        at
weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
        at
weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
>
####<13-Jun-2007 16:33:17 o'clock BST> <Info> <Deployer> <and000957xp>
<AdminServer> <[ACTIVE] ExecuteThread: '0' for queue:
'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <>
<1181748797078> <BEA-149059> <Module solr.war of application solr
[LibSpecVersion=1.2.0,LibImplVersion=1.2.0 - Yonik] is transitioning from
STATE_ADMIN to STATE_PREPARED on server AdminServer.>
####<13-Jun-2007 16:33:17 o'clock BST> <Debug> <J2EE> <and000957xp>
<AdminServer> <[ACTIVE] ExecuteThread: '0' for queue:
'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <>
<1181748797093> <BEA-160058> <Warning :
BindingTransactionSynchronizationRegistry still exists for Context
:EventContext (app/webapp/solr.war/33053536/comp). Unbinding it.>
####<13-Jun-2007 16:33:17 o'clock BST> <Info> <Deployer> <and000957xp>
<AdminServer> <[ACTIVE] ExecuteThread: '0' for queue:
'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <>
<1181748797093> <BEA-149060> <Module solr.war of application solr
[LibSpecVersion=1.2.0,LibImplVersion=1.2.0 - Yonik] successfully
transitioned from STATE_ADMIN to STATE_PREPARED on server AdminServer.>
####<13-Jun-2007 16:33:17 o'clock BST> <Error> <Deployer> <and000957xp>
<AdminServer> <[ACTIVE] ExecuteThread: '0' for queue:
'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <>
<1181748797093> <BEA-149231> <Unable to set the activation state to true
for the application 'solr [LibSpecVersion=1.2.0,LibImplVersion=1.2.0 -
Yonik]'.
weblogic.application.ModuleException: [HTTP:101216]Servlet: "SolrServer"
failed to preload on startup in Web application: "solr.war".
java.lang.NoClassDefFoundError
        at org.apache.solr.servlet.SolrServlet.init(SolrServlet.java:48)
        at javax.servlet.GenericServlet.init(GenericServlet.java:256)
        at
weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:274)
        at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
        at
weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
        at
weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
        at
weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
        at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:504)
        at
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1716)
        at
weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1693)
        at
weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1613)
        at
weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2764)
        at
weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:889)
        at
weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:333)
        at
weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
        at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at
weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
        at
weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
        at
weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
        at
weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
        at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at
weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
        at
weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26)
        at
weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
        at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at
weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
        at
weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
        at
weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
        at
weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:181)
        at
weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:358)
        at
weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:52)
        at
weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:186)
        at
weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
        at
weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
        at
weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
        at
weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
        at
weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
        at
weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

        at
weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:891)
        at
weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:333)
        at
weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
        at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at
weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
        at
weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
        at
weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
        at
weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
        at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at
weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
        at
weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26)
        at
weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
        at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at
weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
        at
weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
        at
weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
        at
weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:181)
        at
weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:358)
        at
weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:52)
        at
weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:186)
        at
weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
        at
weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
        at
weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
        at
weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
        at
weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
        at
weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
java.lang.NoClassDefFoundError
        at org.apache.solr.servlet.SolrServlet.init(SolrServlet.java:48)
        at javax.servlet.GenericServlet.init(GenericServlet.java:256)
        at
weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:274)
        at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
        at
weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
        at
weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
        at
weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
        at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:504)
        at
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1716)
        at
weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1693)
        at
weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1613)
        at
weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2764)
        at
weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:889)
        at
weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:333)
        at
weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
        at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at
weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
        at
weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
        at
weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
        at
weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
        at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at
weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
        at
weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26)
        at
weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
        at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at
weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
        at
weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
        at
weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
        at
weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:181)
        at
weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:358)
        at
weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:52)
        at
weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:186)
        at
weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
        at
weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
        at
weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
        at
weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
        at
weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
        at
weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
>









Chris Hostetter <[hidden email]>
13/06/2007 17:31
Please respond to solr-user
 
        To:     [hidden email]
        cc:
        Subject:        Re: Unfriendly Weblogic



:         at weblogic.servlet.internal.FilterManager.loadFilter(
: FilterManager.java:88)
:         Truncated. see log file for complete stacktrace
: >

did you check the log file to see the complete stack trace and if there
were any other interesting log messages from Solr?  The SolrDispatchFilter
is what initializes hte SolrCore (which reads in config files and such) so
if there is any sot of problem there and those classes cann't load those
errors may be going to the logs while weblgic only shows you the higher
level error that trickled up.


-Hoss


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________




Associated Northcliffe Digital Limited
Registered office: Northcliffe House, 2 Derry Street, London W8 5TT
Registered in England and Wales with Company no. 03363661

VAT no. GB 243 5711 74

This e-mail (and any attachments) is confidential and may be privileged. If you are not the intended recipient of this message, please notify the sender and do not read, copy, use or disclose this communication to others. Any opinions or views expressed which are of a personal nature are not necessarily those of the company. The company reserves the right to monitor all e-mail communications.
Reply | Threaded
Open this post in threaded view
|

Re: Unfriendly Weblogic

Chris Hostetter-3

: hmmm... the INFO log suggests it has found my solr.solr.home argument ok.

it's more a question of wether or not there were any errors when trying to
load any classes needed to parse your configs (either because they are
staticly refered to, or because they are loaded by reflection based on
your config)

: I don't know how readable the whole stack is but I've included it below.

it's totally readable, but i'm wondering if there are any more log
messages of interest in whatever log you found those in?  possibly earlier
in the file?

: 13-Jun-2007 16:33:16 org.apache.solr.core.SolrConfig initConfig
: INFO: Loaded SolrConfig: solrconfig.xml

this is certainly promising.  It implies (to me anyway) that the
solrconfig.xml is being loaded fine.

: <1181748797062> <BEA-101165> <Could not load user defined filter in
: web.xml: org.apache.solr.servlet.SolrDispatchFilter.
: java.lang.NoClassDefFoundError
:         at
: org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:75)

this is interesting ... i clearly missread the earlier error mesasage you
had, i thought the problem was SolrDispatchFilter was the subject of the
NoClassDefFoundError, but it's clearly finding SolrDispatchFilter and
having some problem loading another class needed by it (pity weblogic's
classloader doesn't seem to put hte name of hte class it can't find in the
exception)

unless i'm misisng something Line 75 in Solr 1.2 is "SolrCore.log( t )" in
a catch blockfor Throwable, the problem may be that the SolrCore class
can't be loaded at line 69, triggering a NoClassDefFound, which is then
caught and SolrCore is refered to again triggering another NoClassDefFound
which cascades up to weblogic without a more helpful error.


: <1181748797078> <BEA-101216> <Servlet: "SolrServer" failed to preload on
: startup in Web application: "solr.war".
: java.lang.NoClassDefFoundError
:         at org.apache.solr.servlet.SolrServlet.init(SolrServlet.java:48)

this again points to a problem loading SolrCore ... SolrServlet L48 is an
attempt to fetch a SolrCore.

The real question is why can't the SolrCore class be loaded? ... the
static initialization of that class does a lot of stuff, but i would
expect to see more errors about whatever the problem was being logged.

Shaun: if there are no other error messages earlier in yorr logs, and you
are comfortable with java code, would you mid trying to change these lines
in SolrDispatchFilter.init(FilterConfig) ....

    catch( Throwable t ) {
      // catch this so our filter still works
      log.log(Level.SEVERE, "Could not start SOLR. Check solr/home property", t);
      SolrConfig.severeErrors.add( t );
      SolrCore.log( t );
    }

to...

    catch( Throwable t ) {
      // catch this so our filter still works
      log.log(Level.SEVERE, "Could not start SOLR. Check solr/home property", t);
      SolrConfig.severeErrors.add( t );
      SolrException.logOnce(log,null,e); // TESTING CHANGE IN ERROR HANDLING
    }

...and see if that gives you a better error message?


-Hoss

Reply | Threaded
Open this post in threaded view
|

Re: Unfriendly Weblogic

Shaun.Perkinson
Hi Hoss,

In a round-about way the changes you asked me to make to the catch block
led to the solution. It turned out to be an old version of solr in my
classpath that was being loaded first. I tracked it down after deploying
your changes and seeing no change to the logging.

A bit foolish of me - it appears to be working fine in Weblogic now.
Thanks for your help.

Shaun









Chris Hostetter <[hidden email]>
13/06/2007 19:21
Please respond to solr-user
 
        To:     [hidden email]
        cc:
        Subject:        Re: Unfriendly Weblogic




: hmmm... the INFO log suggests it has found my solr.solr.home argument
ok.

it's more a question of wether or not there were any errors when trying to
load any classes needed to parse your configs (either because they are
staticly refered to, or because they are loaded by reflection based on
your config)

: I don't know how readable the whole stack is but I've included it below.

it's totally readable, but i'm wondering if there are any more log
messages of interest in whatever log you found those in?  possibly earlier
in the file?

: 13-Jun-2007 16:33:16 org.apache.solr.core.SolrConfig initConfig
: INFO: Loaded SolrConfig: solrconfig.xml

this is certainly promising.  It implies (to me anyway) that the
solrconfig.xml is being loaded fine.

: <1181748797062> <BEA-101165> <Could not load user defined filter in
: web.xml: org.apache.solr.servlet.SolrDispatchFilter.
: java.lang.NoClassDefFoundError
:         at
:
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:75)

this is interesting ... i clearly missread the earlier error mesasage you
had, i thought the problem was SolrDispatchFilter was the subject of the
NoClassDefFoundError, but it's clearly finding SolrDispatchFilter and
having some problem loading another class needed by it (pity weblogic's
classloader doesn't seem to put hte name of hte class it can't find in the
exception)

unless i'm misisng something Line 75 in Solr 1.2 is "SolrCore.log( t )" in
a catch blockfor Throwable, the problem may be that the SolrCore class
can't be loaded at line 69, triggering a NoClassDefFound, which is then
caught and SolrCore is refered to again triggering another NoClassDefFound
which cascades up to weblogic without a more helpful error.


: <1181748797078> <BEA-101216> <Servlet: "SolrServer" failed to preload on
: startup in Web application: "solr.war".
: java.lang.NoClassDefFoundError
:         at org.apache.solr.servlet.SolrServlet.init(SolrServlet.java:48)

this again points to a problem loading SolrCore ... SolrServlet L48 is an
attempt to fetch a SolrCore.

The real question is why can't the SolrCore class be loaded? ... the
static initialization of that class does a lot of stuff, but i would
expect to see more errors about whatever the problem was being logged.

Shaun: if there are no other error messages earlier in yorr logs, and you
are comfortable with java code, would you mid trying to change these lines
in SolrDispatchFilter.init(FilterConfig) ....

    catch( Throwable t ) {
      // catch this so our filter still works
      log.log(Level.SEVERE, "Could not start SOLR. Check solr/home
property", t);
      SolrConfig.severeErrors.add( t );
      SolrCore.log( t );
    }

to...

    catch( Throwable t ) {
      // catch this so our filter still works
      log.log(Level.SEVERE, "Could not start SOLR. Check solr/home
property", t);
      SolrConfig.severeErrors.add( t );
      SolrException.logOnce(log,null,e); // TESTING CHANGE IN ERROR
HANDLING
    }

...and see if that gives you a better error message?


-Hoss


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________




Associated Northcliffe Digital Limited
Registered office: Northcliffe House, 2 Derry Street, London W8 5TT
Registered in England and Wales with Company no. 03363661

VAT no. GB 243 5711 74

This e-mail (and any attachments) is confidential and may be privileged. If you are not the intended recipient of this message, please notify the sender and do not read, copy, use or disclose this communication to others. Any opinions or views expressed which are of a personal nature are not necessarily those of the company. The company reserves the right to monitor all e-mail communications.