Page 1 of 1

No response when uploading a picture

Posted: Mon Jan 21, 2013 4:37 am
by Jerry
Hi Guys,
I successfully create a new product in the admin page but, I get nothing response to me when I uploading a picture.
The steps:
1.create a new product.
2.select the Media Tab and click "Add"
3.click "Media Url" button and a page of "Asset Search" prompts.
4.Click Button "Upload Asset" and a page of "Upload Artifact" prompts.
5.choose my file... file the name "test.jpg", Url of "/img/sauces/test.jpg"
6.Click "Upload" button
Then.. The page shows "contacting server" and No Response. What happens? :shock: :shock: :shock:

Regards,
Jerry

Re: No response when uploading a picture

Posted: Mon Jan 21, 2013 8:44 pm
by Jerry
No Response here .. too

Re: No response when uploading a picture

Posted: Tue Jan 22, 2013 3:28 pm
by phillipuniverse
What browser are you using? Can you verify with Chrome/Firefox? We haven't had any trouble with the uploading feature. What if you don't change any of those asset values (as in, just choose the file from your hard drive and hit upload).

Re: No response when uploading a picture

Posted: Fri Feb 01, 2013 1:31 am
by Jerry
thanks for your reply.
I found this problem on Fiexfox and Chrome.

The problem is 404 not found of this url when I upload a picture
http://localhost:8081/admin/cms.upload. ... =callback0

[img]1.jpg[/img]
[img]2.jpg[/img]

It seems that the service for uploading is not started up. How to trace those services?

Regards,
Jerry

Re: No response when uploading a picture

Posted: Fri Feb 01, 2013 10:27 am
by phillipuniverse
Hm this is interesting, haven't seen this before. A couple of other questions:

1. What does your web.xml look like? Specifically the part where the servlet is defined:

Code: Select all

<servlet>
    <servlet-name>admin</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    <init-param>
       <param-name>contextConfigLocation</param-name>
        <param-value>
            classpath:/applicationContext-servlet-open-admin.xml
            classpath:/applicationContext-servlet-admin.xml
            classpath:/applicationContext-servlet-cms-contentClient.xml
            classpath:/applicationContext-servlet-cms-contentCreator.xml
            /WEB-INF/applicationContext-servlet-admin.xml
        </param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
</servlet>


That cms.upload.service is defined in applicationContext-servlet-cms-contentCreator.xml (this is a Broadleaf applicationContext).

2. What version of Broadleaf are you using?
3. Perhaps you have something declared in your applicationContext-admin-security.xml that is preventing this service to load? Incorrect security configurations can definitely manifest themselves as 404's.