Hi Pulasthi/Jasintha,

+1 to get this added to the documentation. Running AS with JDK 1.7 would
'fix' the problem, but carbon products support JDK 1.6. So, the artifacts
developed via DevS also need to comply with JDK 1.6 runtime.

Thanks,
KasunG


On Mon, May 12, 2014 at 2:43 PM, Pulasthi Supun <pulas...@wso2.com> wrote:

> Hi Jasintha,
>
> As you pointed out over chat my AS server was running on a 1.6 JVM since i
> only changed my java version to 1.7 to run eclipse. starting the server
> with 1.7 solved the problem.
>
> Regards,
> Pulasthi
>
>
> On Mon, May 12, 2014 at 2:20 PM, Pulasthi Supun <pulas...@wso2.com> wrote:
>
>> Hi Jasintha,
>>
>> This documentation only mentions that it requires java 1.7 to use DevS
>> 3.6. That is not the concern i raised in here. i am referring to a
>> different problem. That happens due to compiler compliance levels. please
>> correct me if am wrong but i did not see such a point mentioned in the
>> documentation
>>
>> Regards,
>> Pulasthi
>>
>>
>> On Mon, May 12, 2014 at 2:10 PM, Jasintha Dasanayake 
>> <jasin...@wso2.com>wrote:
>>
>>>
>>>
>>> On Mon, May 12, 2014 at 2:00 PM, Pulasthi Supun <pulas...@wso2.com>wrote:
>>>
>>>> Hi All,
>>>>
>>>> Came across $subject. This happened because Eclipse Kepler which is
>>>> used with DevS 3.6 requires java 1.7. so by default the JRE version used
>>>> will be java 1.7 and the java compiler compliance level will be 1.7 .But if
>>>> you create a simple Axis2 service and try to deploy on AS i get the
>>>> following error. This can be solved by changing the compiler compliance
>>>> level in project settings to 1.6. But i think it should be mentioned in the
>>>> documentation to avoid any future confusion.
>>>>
>>>
>>> Yes, we have already mention that in the documentation[1]
>>>
>>> [1] - https://docs.wso2.org/display/DVS360/Installation
>>>
>>> /Jasintha
>>>
>>>
>>>>
>>>> Error: java.lang.UnsupportedClassVersionError:
>>>> org/wso2/arvosample/AvroPublisher : Unsupported major.minor version 51.0 at
>>>> java.lang.ClassLoader.defineClass1(Native Method) at
>>>> java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at
>>>> java.lang.ClassLoader.defineClass(ClassLoader.java:615) at
>>>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at
>>>> java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at
>>>> java.net.URLClassLoader.access$000(URLClassLoader.java:58) at
>>>> java.net.URLClassLoader$1.run(URLClassLoader.java:197) at
>>>> java.security.AccessController.doPrivileged(Native Method) at
>>>> java.net.URLClassLoader.findClass(URLClassLoader.java:190) at
>>>> org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentClassLoader.java:78)
>>>> at
>>>> org.apache.axis2.deployment.DeploymentClassLoader.loadClass(DeploymentClassLoader.java:278)
>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at
>>>> org.apache.axis2.util.Loader.loadClass(Loader.java:218) at
>>>> org.apache.axis2.util.Utils.getServiceClass(Utils.java:799) at
>>>> org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:430) at
>>>> org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:397)
>>>> at
>>>> org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:101)
>>>> at
>>>> org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:143)
>>>> at
>>>> org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:82)
>>>> at
>>>> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
>>>> at
>>>> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
>>>> at
>>>> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
>>>> at
>>>> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
>>>> at
>>>> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
>>>> at
>>>> org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
>>>> at
>>>> org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
>>>> at
>>>> org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
>>>> at
>>>> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:79)
>>>> at
>>>> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:124)
>>>> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
>>>> at
>>>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
>>>> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) at
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
>>>> at
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
>>>> at
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
>>>> at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
>>>> at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
>>>> at java.lang.Thread.run(Thread.java:662)
>>>>
>>>> Regards,
>>>> Pulasthi
>>>> --
>>>> --
>>>> Pulasthi Supun
>>>> Software Engineer; WSO2 Inc.; http://wso2.com,
>>>> Email: pulas...@wso2.com
>>>> Mobile: +94 (71) 9258281
>>>> Blog : http://pulasthisupun.blogspot.com/
>>>> Git hub profile: https://github.com/pulasthi
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> *Jasintha Dasanayake *
>>>
>>> *Senior Software EngineerWSO2 Inc. | http://wso2.com <http://wso2.com/>
>>> lean . enterprise . middleware*
>>>
>>>
>>> *mobile :- 0711368118 <0711368118> *
>>>
>>
>>
>>
>> --
>> --
>> Pulasthi Supun
>> Software Engineer; WSO2 Inc.; http://wso2.com,
>> Email: pulas...@wso2.com
>> Mobile: +94 (71) 9258281
>> Blog : http://pulasthisupun.blogspot.com/
>> Git hub profile: https://github.com/pulasthi
>>
>
>
>
> --
> --
> Pulasthi Supun
> Software Engineer; WSO2 Inc.; http://wso2.com,
> Email: pulas...@wso2.com
> Mobile: +94 (71) 9258281
> Blog : http://pulasthisupun.blogspot.com/
> Git hub profile: https://github.com/pulasthi
>
> --
> You received this message because you are subscribed to the Google Groups
> "WSO2 Documentation" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to documentation+unsubscr...@wso2.com.
> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>



-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to