Re: how solr4.0 and zookeeper run on weblogic

2014-11-24 Thread Ramzi Alqrainy
I hope this post helps you

http://lucene.472066.n3.nabble.com/how-solr4-0-and-zookeeper-run-on-weblogic-td4013882.html



--
View this message in context: 
http://lucene.472066.n3.nabble.com/how-solr4-0-and-zookeeper-run-on-weblogic-tp4170625p4170679.html
Sent from the Solr - User mailing list archive at Nabble.com.


how solr4.0 and zookeeper run on weblogic

2014-11-24 Thread Sharma, Kunal
Hi ,

Is there a way to deploy Zookeeper on weblogic cluster.

Thanks and Regards
Kunal Sharma
07917836122



Re: how solr4.0 and zookeeper run on weblogic

2012-10-18 Thread Mark Miller
You can also edit solr.xml so that the property is tomcat.port or
solr.port or whatever you want as well.

We ship a working, tested Jetty example though.

- Mark

On Wed, Oct 17, 2012 at 11:12 AM, Jan Høydahl  wrote:
> Did it work for you? You probably also have to set -Djetty.port=8080 in order 
> for local ZK not to be started on port 9983. It's confusing, but you can also 
> edit solr.xml to achieve the same.
>
> --
> Jan Høydahl, search solution architect
> Cominvent AS - www.cominvent.com
> Solr Training - www.solrtraining.com
>
> 17. okt. 2012 kl. 10:06 skrev rayvicky :
>
>> thanks
>>
>>
>>
>> --
>> View this message in context: 
>> http://lucene.472066.n3.nabble.com/how-solr4-0-and-zookeeper-run-on-weblogic-tp4013882p4014167.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
- Mark


Re: Re: how solr4.0 and zookeeper run on weblogic

2012-10-18 Thread rayvicky
public int addIndexDocuements(String hostUrl) throws IOException {
HttpSolrServer solrServer =
getServer("http://localhost:7001/solr/collection1/";);

int res=1;
  try {  
  Collection docs = new
ArrayList();  

  
SolrInputDocument doc = new SolrInputDocument();  
doc.addField("id", "");  
doc.addField("title", "test");  
docs.add(doc);
   
solrServer.add(docs);   

solrServer.commit();  
}catch(SolrServerException e) {  
System.out.println("Add docs Exception !!!");  
e.printStackTrace();  
}catch(IOException e){  
e.printStackTrace();  
}catch (Exception e) {  
System.out.println("Unknowned Exception!");  
e.printStackTrace();  
}
}


public HttpSolrServer getServer(String hostUrl) {
HttpSolrServer server = null;
server = new HttpSolrServer(hostUrl);
server.setConnectionTimeout(100);
server.setDefaultMaxConnectionsPerHost(100);
server.setMaxTotalConnections(100);
return server;
}




--
View this message in context: 
http://lucene.472066.n3.nabble.com/how-solr4-0-and-zookeeper-run-on-weblogic-tp4013882p4014439.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Re: how solr4.0 and zookeeper run on weblogic

2012-10-18 Thread Vadim Kisselmann
Hi,
how your update/add command looks like?
Regards
Vadim


2012/10/18 rayvicky :
> i make it work on weblogic.
> but when i add or update index  ,it error
>
>
> <2012-10-17 ?Χ03?47·?3? CST> unexpected error occurred while retrieving the session for Web application: 
> weblogic.servlet.internal.WebAppServletContext@425eab87 - appName: 'solr', 
> name: 'solr', context-path: '/solr', spec-version: '2.5'.
> weblogic.utils.NestedRuntimeException: Cannot parse POST parameters of 
> request: '/solr/collection1/update'
> at 
> weblogic.servlet.internal.ServletRequestImpl$RequestParameters.mergePostParams(ServletRequestImpl.java:2021)
> at 
> weblogic.servlet.internal.ServletRequestImpl$RequestParameters.parseQueryParams(ServletRequestImpl.java:1901)
> at 
> weblogic.servlet.internal.ServletRequestImpl$RequestParameters.peekParameter(ServletRequestImpl.java:2047)
> at 
> weblogic.servlet.internal.ServletRequestImpl$SessionHelper.initSessionInfoWithContext(ServletRequestImpl.java:2602)
> at 
> weblogic.servlet.internal.ServletRequestImpl$SessionHelper.initSessionInfo(ServletRequestImpl.java:2506)
> Truncated. see log file for complete stacktrace
> java.net.SocketTimeoutException: Read timed out
> at java.net.SocketInputStream.socketRead0(Native Method)
> at java.net.SocketInputStream.read(SocketInputStream.java:129)
> at 
> weblogic.servlet.internal.PostInputStream.read(PostInputStream.java:142)
> at 
> weblogic.utils.http.HttpChunkInputStream.readChunkSize(HttpChunkInputStream.java:109)
> at 
> weblogic.utils.http.HttpChunkInputStream.initChunk(HttpChunkInputStream.java:71)
> Truncated. see log file for complete stacktrace
>>
> <2012-10-17 ?Χ03?47·?3? CST>
> <[weblogic.servlet.internal.WebAppServletContext@425eab87 - appName: 'solr', 
> name: 'solr', context-path: '/solr', spec-version: '2.5'] Servlet failed with 
> Exception
> java.lang.IllegalStateException: Failed to retrieve session: Cannot parse 
> POST parameters of request: '/solr/collection1/update'
> at 
> weblogic.servlet.security.internal.SecurityModule.getUserSession(SecurityModule.java:486)
> at 
> weblogic.servlet.security.internal.ServletSecurityManager.checkAccess(ServletSecurityManager.java:81)
> at 
> weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2116)
> at 
> weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
> at 
> weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
> Truncated. see log file for complete stacktrace
>>
> <2012-10-17 ?Χ03?47·?3? CST> failed
>  weblogic.utils.NestedRuntimeException: Cannot parse POST parameters of 
> request: '/solr/collection1/update'.
> weblogic.utils.NestedRuntimeException: Cannot parse POST parameters of 
> request: '/solr/collection1/update'
> at 
> weblogic.servlet.internal.ServletRequestImpl$RequestParameters.mergePostParams(ServletRequestImpl.java:2021)
> at 
> weblogic.servlet.internal.ServletRequestImpl$RequestParameters.parseQueryParams(ServletRequestImpl.java:1901)
> at 
> weblogic.servlet.internal.ServletRequestImpl$RequestParameters.peekParameter(ServletRequestImpl.java:2047)
> at 
> weblogic.servlet.internal.ServletRequestImpl$SessionHelper.initSessionInfoWithContext(ServletRequestImpl.java:2602)
> at 
> weblogic.servlet.internal.ServletRequestImpl$SessionHelper.initSessionInfo(ServletRequestImpl.java:2506)
> Truncated. see log file for complete stacktrace
> java.io.IOException: Malformed chunk
> at 
> weblogic.utils.http.HttpChunkInputStream.initChunk(HttpChunkInputStream.java:67)
> at 
> weblogic.utils.http.HttpChunkInputStream.read(HttpChunkInputStream.java:142)
> at 
> weblogic.utils.http.HttpChunkInputStream.read(HttpChunkInputStream.java:182)
> at 
> weblogic.servlet.internal.ServletInputStreamImpl.read(ServletInputStreamImpl.java:222)
>         at 
> weblogic.servlet.internal.ServletRequestImpl$RequestParameters.mergePostParams(ServletRequestImpl.java:1995)
> Truncated. see log file for complete stacktrace
>>
>
> how to handle it ?
>
> thanks,
> ray.
>
>
> 2012-10-18
>
>
>
> zongweilei
>
>
>
> 发件人: Jan_Høydahl_/_Cominvent_[via_Lucene]
> 发送时间: 2012-10-17  23:13:10
> 收件人: rayvicky
> 抄送:
> 主题: Re: how solr4.0 and zookeeper run on weblogic
>
> Did it work for you? You probably also have to set -Djetty.po

Re: Re: how solr4.0 and zookeeper run on weblogic

2012-10-17 Thread rayvicky
i make it work on weblogic.
but when i add or update index  ,it error

  
<2012-10-17 ?Χ03?47·?3? CST> 
<2012-10-17 ?Χ03?47·?3? CST>
<[weblogic.servlet.internal.WebAppServletContext@425eab87 - appName: 'solr', 
name: 'solr', context-path: '/solr', spec-version: '2.5'] Servlet failed with 
Exception
java.lang.IllegalStateException: Failed to retrieve session: Cannot parse POST 
parameters of request: '/solr/collection1/update'
at 
weblogic.servlet.security.internal.SecurityModule.getUserSession(SecurityModule.java:486)
at 
weblogic.servlet.security.internal.ServletSecurityManager.checkAccess(ServletSecurityManager.java:81)
at 
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2116)
at 
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at 
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
Truncated. see log file for complete stacktrace
> 
<2012-10-17 ?Χ03?47·?3? CST> 

how to handle it ?

thanks,
ray.


2012-10-18 



zongweilei 



发件人: Jan_Høydahl_/_Cominvent_[via_Lucene] 
发送时间: 2012-10-17  23:13:10 
收件人: rayvicky 
抄送: 
主题: Re: how solr4.0 and zookeeper run on weblogic 
 
Did it work for you? You probably also have to set -Djetty.port=8080 in order 
for local ZK not to be started on port 9983. It's confusing, but you can also 
edit solr.xml to achieve the same. 

-- 
Jan H酶ydahl, search solution architect 
Cominvent AS - www.cominvent.com 
Solr Training - www.solrtraining.com 

17. okt. 2012 kl. 10:06 skrev rayvicky <[hidden email]>: 

> thanks 
> 
> 
> 
> -- 
> View this message in context: 
> http://lucene.472066.n3.nabble.com/how-solr4-0-and-zookeeper-run-on-weblogic-tp4013882p4014167.html
> Sent from the Solr - User mailing list archive at Nabble.com. 






If you reply to this email, your message will be added to the discussion below:
http://lucene.472066.n3.nabble.com/how-solr4-0-and-zookeeper-run-on-weblogic-tp4013882p4014263.html
 
To unsubscribe from how solr4.0 and zookeeper run on weblogic, click here.
NAML 




--
View this message in context: 
http://lucene.472066.n3.nabble.com/how-solr4-0-and-zookeeper-run-on-weblogic-tp4013882p4014382.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: how solr4.0 and zookeeper run on weblogic

2012-10-17 Thread Jan Høydahl
Did it work for you? You probably also have to set -Djetty.port=8080 in order 
for local ZK not to be started on port 9983. It's confusing, but you can also 
edit solr.xml to achieve the same.

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com
Solr Training - www.solrtraining.com

17. okt. 2012 kl. 10:06 skrev rayvicky :

> thanks 
> 
> 
> 
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/how-solr4-0-and-zookeeper-run-on-weblogic-tp4013882p4014167.html
> Sent from the Solr - User mailing list archive at Nabble.com.



Re: how solr4.0 and zookeeper run on weblogic

2012-10-16 Thread Vadim Kisselmann
Hi,
these are JAVA_OPTS params, you can find and set this stuff in the
startManagedWeblogic script.
Best regards
Vadim



2012/10/16 rayvicky :
> who can help me ?
> where to settings   -DzkRun-Dbootstrap_conf=true
> -DzkHost=localhost:9080   -DnumShards=2
> in weblogic
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/how-solr4-0-and-zookeeper-run-on-weblogic-tp4013882.html
> Sent from the Solr - User mailing list archive at Nabble.com.