On Tue, Oct 27, 2015 at 4:06 PM, Lakmal Warusawithana <[email protected]>
wrote:

>
>
> On Tue, Oct 27, 2015 at 4:05 PM, Sagara Gunathunga <[email protected]>
> wrote:
>
>>
>>
>> On Tue, Oct 27, 2015 at 3:55 PM, Afkham Azeez <[email protected]> wrote:
>>
>>> Yes, image URL is still wrong. <img src="
>>> http://172.17.8.102:80/fs/cat.jpeg";>
>>>
>>
>> Have you set FE_FILE_SERVICE_NODE_PORT env variable ?
>>
>> Check following log -> "File Service Node Port : X "
>>
>>
> Its populated, see below
>
> Lakmals-MacBook-Pro:~ lakmal$ kubectl exec admin-fe-85mow env
>
>
> PATH=/usr/local/tomcat/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
>
> HOSTNAME=admin-fe-85mow
>
> GET_HOSTS_FROM=dns
>
> FE_FILE_SERVICE_HOST=fileserver
>
> FE_FILE_SERVICE_PORT=80
>
> FE_PET_SERVICE_HOST=pet
>
> FE_PET_SERVICE_PORT=80
>
> FE_USER_SERVICE_HOST=security
>
> FE_USER_SERVICE_PORT=80
>
> FE_FILESERVER_NODE_PORT=31111
>
> STORE_FE_SERVICE_HOST=10.100.8.44
>
> SECURITY_PORT_80_TCP_PORT=80
>
> PET_PORT_80_TCP_PORT=80
>
> REDIS_SENTINEL_PORT_26379_TCP_PROTO=tcp
>
>
But FE logs print

27-Oct-2015 10:16:56.144 INFO [http-nio-8080-exec-1]
org.wso2.carbon.mss.examples.petstore.util.fe.model.Configuration.<init>
File Service Node Port  : 80



>
>
>> Thanks !
>>
>>>
>>>
>>> On Tue, Oct 27, 2015 at 3:50 PM, Lakmal Warusawithana <[email protected]>
>>> wrote:
>>>
>>>>
>>>>
>>>> On Tue, Oct 27, 2015 at 3:13 PM, Sagara Gunathunga <[email protected]>
>>>> wrote:
>>>>
>>>>>
>>>>>
>>>>> On Tue, Oct 27, 2015 at 3:00 PM, Lakmal Warusawithana <[email protected]
>>>>> > wrote:
>>>>>
>>>>>> Hi Sagara,
>>>>>>
>>>>>> On Tue, Oct 27, 2015 at 2:54 PM, Sagara Gunathunga <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Oct 27, 2015 at 12:11 PM, Afkham Azeez <[email protected]>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> There is an exception in the FE services
>>>>>>>>
>>>>>>>>
>>>>>>>> 27-Oct-2015 06:04:32.229 INFO [http-nio-8080-exec-10]
>>>>>>>> org.wso2.carbon.mss.examples.petstore.util.fe.view.PetListBean.modifyImage*URL
>>>>>>>> Current Image URL dog.jpeg*
>>>>>>>>
>>>>>>> @Lakmal,
>>>>>>>
>>>>>>> So far in your image upload service returned a URL something like 
>>>>>>> *"http://192.168.99.100/upload//2.jpg
>>>>>>> <http://192.168.99.100/upload//2.jpg>"* after a successful image
>>>>>>> upload, have you change the implantation just to return image name only
>>>>>>> like *"2.jpg"  *?   My logic in FE still assume you send a valid
>>>>>>> URL like *"http://192.168.99.100/upload//2.jpg
>>>>>>> <http://192.168.99.100/upload//2.jpg>"* ? If you want I can change
>>>>>>> to use file name only ?
>>>>>>>
>>>>>>>
>>>>>> Yes, since URL is contract by FE I'm only returning image name.
>>>>>> Sorry, I thought you already know the changed.
>>>>>>
>>>>>
>>>>> Changed the FE logic to use only image name, can you please take new
>>>>> changes and test ?
>>>>>
>>>>
>>>> Other than port, URL is correct now. Port should taken from env
>>>> FE_FILESERVER_NODE_PORT=31111
>>>>
>>>> http://172.17.8.103:80/fs/1410431805.jpg
>>>> <http://172.17.8.103/fs/1410431805-Me_Mai_Gaha_Yata.jpg>"
>>>>
>>>>
>>>>
>>>>>
>>>>> Thanks !
>>>>>
>>>>>>
>>>>>>
>>>>>>> Thanks !
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> 27-Oct-2015 06:04:32.229 SEVERE [http-nio-8080-exec-10]
>>>>>>>> org.wso2.carbon.mss.examples.petstore.util.fe.view.PetListBean.modifyImageURL
>>>>>>>> no protocol: dog.jpeg
>>>>>>>>
>>>>>>>>  java.net.MalformedURLException: no protocol: dog.jpeg
>>>>>>>>
>>>>>>>> at java.net.URL.<init>(URL.java:586)
>>>>>>>>
>>>>>>>> at java.net.URL.<init>(URL.java:483)
>>>>>>>>
>>>>>>>> at java.net.URL.<init>(URL.java:432)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.wso2.carbon.mss.examples.petstore.util.fe.view.PetListBean.modifyImageURL(PetListBean.java:153)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.wso2.carbon.mss.examples.petstore.util.fe.view.PetListBean.setSelectedValue(PetListBean.java:103)
>>>>>>>>
>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>
>>>>>>>> at
>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>
>>>>>>>> at
>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>
>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:497)
>>>>>>>>
>>>>>>>> at javax.el.BeanELResolver.setValue(BeanELResolver.java:127)
>>>>>>>>
>>>>>>>> at
>>>>>>>> com.sun.faces.el.DemuxCompositeELResolver._setValue(DemuxCompositeELResolver.java:255)
>>>>>>>>
>>>>>>>> at
>>>>>>>> com.sun.faces.el.DemuxCompositeELResolver.setValue(DemuxCompositeELResolver.java:281)
>>>>>>>>
>>>>>>>> at org.apache.el.parser.AstValue.setValue(AstValue.java:202)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:257)
>>>>>>>>
>>>>>>>> at
>>>>>>>> com.sun.faces.facelets.el.TagValueExpression.setValue(TagValueExpression.java:131)
>>>>>>>>
>>>>>>>> at
>>>>>>>> com.sun.faces.facelets.tag.jsf.core.SetPropertyActionListenerHandler$SetPropertyListener.processAction(SetPropertyActionListenerHandler.java:211)
>>>>>>>>
>>>>>>>> at
>>>>>>>> javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
>>>>>>>>
>>>>>>>> at
>>>>>>>> javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:813)
>>>>>>>>
>>>>>>>> at javax.faces.component.UICommand.broadcast(UICommand.java:300)
>>>>>>>>
>>>>>>>> at javax.faces.component.UIData.broadcast(UIData.java:1108)
>>>>>>>>
>>>>>>>> at
>>>>>>>> javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)
>>>>>>>>
>>>>>>>> at
>>>>>>>> javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)
>>>>>>>>
>>>>>>>> at
>>>>>>>> com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
>>>>>>>>
>>>>>>>> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
>>>>>>>>
>>>>>>>> at
>>>>>>>> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
>>>>>>>>
>>>>>>>> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.wso2.carbon.mss.examples.petstore.util.fe.security.LoginFilter.doFilter(LoginFilter.java:51)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:217)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:673)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
>>>>>>>>
>>>>>>>> at
>>>>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>>>>>>>
>>>>>>>> at
>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>>>>>>>>
>>>>>>>> at java.lang.Thread.run(Thread.java:745)
>>>>>>>>
>>>>>>>>
>>>>>>>> 27-Oct-2015 06:04:32.230 INFO [http-nio-8080-exec-10]
>>>>>>>> org.wso2.carbon.mss.examples.petstore.util.fe.view.PetListBean.modifyImageURL
>>>>>>>> New Image URL dog.jpeg
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Tue, Oct 27, 2015 at 11:39 AM, Afkham Azeez <[email protected]>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> When I inspected the image element, it is just <img
>>>>>>>>> src=imgname.jpg/> and not poiting to the fileserver's image URL.
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> *Afkham Azeez*
>>>>>>>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>>>>>>>> Member; Apache Software Foundation; http://www.apache.org/
>>>>>>>>> * <http://www.apache.org/>*
>>>>>>>>> *email: **[email protected]* <[email protected]>
>>>>>>>>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>>>>>>>>> *http://blog.afkham.org* <http://blog.afkham.org>
>>>>>>>>> *twitter: **http://twitter.com/afkham_azeez*
>>>>>>>>> <http://twitter.com/afkham_azeez>
>>>>>>>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>>>>>>>> <http://lk.linkedin.com/in/afkhamazeez>*
>>>>>>>>>
>>>>>>>>> *Lean . Enterprise . Middleware*
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> *Afkham Azeez*
>>>>>>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>>>>>>> Member; Apache Software Foundation; http://www.apache.org/
>>>>>>>> * <http://www.apache.org/>*
>>>>>>>> *email: **[email protected]* <[email protected]>
>>>>>>>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>>>>>>>> *http://blog.afkham.org* <http://blog.afkham.org>
>>>>>>>> *twitter: **http://twitter.com/afkham_azeez*
>>>>>>>> <http://twitter.com/afkham_azeez>
>>>>>>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>>>>>>> <http://lk.linkedin.com/in/afkhamazeez>*
>>>>>>>>
>>>>>>>> *Lean . Enterprise . Middleware*
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Sagara Gunathunga
>>>>>>>
>>>>>>> Architect; WSO2, Inc.;  http://wso2.com
>>>>>>> V.P Apache Web Services;    http://ws.apache.org/
>>>>>>> Linkedin; http://www.linkedin.com/in/ssagara
>>>>>>> Blog ;  http://ssagara.blogspot.com
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Lakmal Warusawithana
>>>>>> Director - Cloud Architecture; WSO2 Inc.
>>>>>> Vise President - Apache Stratos
>>>>>> Mobile : +94714289692
>>>>>> Blog : http://lakmalsview.blogspot.com/
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Sagara Gunathunga
>>>>>
>>>>> Architect; WSO2, Inc.;  http://wso2.com
>>>>> V.P Apache Web Services;    http://ws.apache.org/
>>>>> Linkedin; http://www.linkedin.com/in/ssagara
>>>>> Blog ;  http://ssagara.blogspot.com
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Lakmal Warusawithana
>>>> Director - Cloud Architecture; WSO2 Inc.
>>>> Vise President - Apache Stratos
>>>> Mobile : +94714289692
>>>> Blog : http://lakmalsview.blogspot.com/
>>>>
>>>>
>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * <http://www.apache.org/>*
>>> *email: **[email protected]* <[email protected]>
>>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>>> *http://blog.afkham.org* <http://blog.afkham.org>
>>> *twitter: **http://twitter.com/afkham_azeez*
>>> <http://twitter.com/afkham_azeez>
>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> <http://lk.linkedin.com/in/afkhamazeez>*
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Architect; WSO2, Inc.;  http://wso2.com
>> V.P Apache Web Services;    http://ws.apache.org/
>> Linkedin; http://www.linkedin.com/in/ssagara
>> Blog ;  http://ssagara.blogspot.com
>>
>>
>
>
> --
> Lakmal Warusawithana
> Director - Cloud Architecture; WSO2 Inc.
> Vise President - Apache Stratos
> Mobile : +94714289692
> Blog : http://lakmalsview.blogspot.com/
>
>


-- 
Lakmal Warusawithana
Director - Cloud Architecture; WSO2 Inc.
Vise President - Apache Stratos
Mobile : +94714289692
Blog : http://lakmalsview.blogspot.com/
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to